-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
46 lines (36 loc) · 1.03 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
plugins {
id "org.jetbrains.intellij" version "0.2.13"
}
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
// On travis, we don't want to deploy to Jetbrains that requires credentials
if (project.file('gradle.properties').exists()) {
apply from: "gradle.properties"
}
intellij {
version = '2017.1.5'
updateSinceUntilBuild = true
pluginName = 'Key-Promoter-X'
}
// Simple function to load change-notes.html and description.html into valid text for plugin.xml
def htmlFixer = {f -> file(f).text.replace('<html>', '').replace('</html>', '')}
patchPluginXml {
changeNotes = htmlFixer('resources/META-INF/change-notes.html')
pluginDescription = htmlFixer('resources/META-INF/description.html')
sinceBuild = '162'
untilBuild = '172.*'
}
repositories {
mavenCentral()
}
sourceSets {
main {
java.srcDir 'src'
resources.srcDir 'resources'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}
version '5.7.2'