-
Notifications
You must be signed in to change notification settings - Fork 50
/
build.gradle.kts
80 lines (63 loc) · 2.18 KB
/
build.gradle.kts
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
plugins {
// Java support
id("java")
// gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
id("org.jetbrains.intellij") version "0.7.3"
}
// Import variables from gradle.properties file
val pluginGroup: String by project
val pluginName_: String by project
val pluginVersion: String by project
val pluginSinceBuild: String by project
val pluginUntilBuild: String by project
val pluginVerifierIdeVersions: String by project
val platformType: String by project
val platformVersion: String by project
val platformPlugins: String by project
val platformDownloadSources: String by project
val sourceVersion: String by project
val targetVersion: String by project
group = pluginGroup
// Configure project's dependencies
repositories {
mavenCentral()
// jcenter()
}
dependencies {
// https://mvnrepository.com/artifact/org.javassist/javassist
implementation("org.javassist:javassist:3.30.2-GA")
// https://mvnrepository.com/artifact/org.ow2.asm/asm
implementation("org.ow2.asm:asm:9.7")
// https://mvnrepository.com/artifact/org.ow2.asm/asm-commons
implementation("org.ow2.asm:asm-commons:9.7")
// https://mvnrepository.com/artifact/org.benf/cfr
implementation("org.benf:cfr:0.152")
// https://mvnrepository.com/artifact/org.bitbucket.mstrobel/procyon-compilertools
implementation("org.bitbucket.mstrobel:procyon-compilertools:0.6.0")
}
intellij {
pluginName = pluginName_
version = platformVersion
type = platformType
downloadSources = platformDownloadSources.toBoolean()
updateSinceUntilBuild = false
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file.
setPlugins(*platformPlugins.split(',').map(String::trim).filter(String::isNotEmpty).toTypedArray())
}
tasks {
withType<JavaCompile> {
sourceCompatibility = sourceVersion
targetCompatibility = targetVersion
options.encoding = "UTF-8"
}
patchPluginXml {
sinceBuild(pluginSinceBuild)
untilBuild(pluginUntilBuild)
}
buildSearchableOptions{
enabled = false
}
publishPlugin {
token(System.getenv("PUBLISH_TOKEN"))
}
}