blob: 8668e3e2566d6bcef7fd8ffce3b141457490b589 (
plain)
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
|
fun properties(key: String) = providers.gradleProperty(key)
plugins {
id("java")
alias(libs.plugins.kotlin)
alias(libs.plugins.intellij)
}
group = properties("pluginGroup").get()
version = properties("pluginVersion").get()
repositories {
maven("https://repo.polyfrost.cc/releases")
}
kotlin {
jvmToolchain(17)
}
intellij {
pluginName = properties("pluginName")
version = properties("platformVersion")
plugins = properties("platformPlugins").map {
it.split(',').map(String::trim).filter(String::isNotEmpty)
}
}
tasks {
wrapper {
gradleVersion = properties("gradleVersion").get()
}
patchPluginXml {
version = properties("pluginVersion")
sinceBuild = properties("pluginSinceBuild")
untilBuild = properties("pluginUntilBuild")
}
}
|