diff options
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..8668e3e --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,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") + } +} |