intellij-sjson/build.gradle.kts

51 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2024-03-25 18:57:57 +00:00
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.9.21"
2024-04-02 18:33:41 +00:00
id("org.jetbrains.intellij") version "1.17.3"
2024-03-25 18:57:57 +00:00
}
group = "ru.crabs"
version = "0.1.0"
repositories {
mavenCentral()
}
2024-04-01 09:30:13 +00:00
// Include the generated files in the source set
sourceSets {
main {
2024-04-02 18:33:41 +00:00
java {
srcDirs("src/main/gen")
}
2024-04-01 09:30:13 +00:00
}
}
2024-03-25 18:57:57 +00:00
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version.set("2023.1.5")
type.set("IC") // Target IDE Platform
2024-04-02 18:33:41 +00:00
plugins.set(listOf("com.intellij.java"))
2024-03-25 18:57:57 +00:00
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
2024-04-02 18:33:41 +00:00
sourceCompatibility = "11"
targetCompatibility = "11"
2024-03-25 18:57:57 +00:00
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
2024-04-02 18:33:41 +00:00
kotlinOptions.jvmTarget = "11"
2024-03-25 18:57:57 +00:00
}
patchPluginXml {
sinceBuild.set("231")
untilBuild.set("241.*")
}
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
}
}