-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
49 lines (40 loc) · 1.16 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'org.jetbrains.intellij' version '0.7.3'
}
repositories {
mavenCentral()
}
apply plugin: 'java'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:deprecation"
}
// take the version number defined in 'gradle.properties' and use that in plugin.xml
task initConfig(type: Copy) {
from('src/main/resources') {
include '**/plugin.xml'
filter(ReplaceTokens, tokens: [version: version])
}
}
apply plugin: 'idea'
idea {
project {
jdkName = javaVersion
languageLevel = javaVersion
}
}
apply plugin: 'org.jetbrains.intellij'
intellij {
pluginName 'intellij-xslfo-support'
version ideaVersion
updateSinceUntilBuild false
plugins 'xpath' // the XPathView plugin is in a directory simply named xpath in Intellij IC and IU
// SET YOUR JETBRAINS LOGIN DETAILS AS ENVIRONMENT VARIABLES SO THAT YOU CAN PUBLISH A NEW BUILD TO THE REPOSITORY
publishPlugin {
token System.getenv('MARKETPLACE_TOKEN')
}
}
version = "${version}"