blob: da0ea43dd9178a555d475735d1ce18423090cb21 (
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
39
40
41
42
43
44
|
fun properties(key: String) = providers.gradleProperty(key)
plugins {
id("java")
alias(libs.plugins.kotlin)
alias(libs.plugins.intellij)
alias(libs.plugins.kotlinter)
}
group = properties("pluginGroup").get()
version = properties("pluginVersion").get()
repositories {
maven("https://repo.polyfrost.org/releases")
}
kotlin {
jvmToolchain(21)
}
kotlinter {
ignoreFailures = false
reporters = arrayOf("checkstyle", "plain")
}
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")
}
}
|