intellij-sjson/build.gradle.kts

51 lines
1.0 KiB
Plaintext

plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.9.21"
id("org.jetbrains.intellij") version "1.17.3"
}
group = "ru.crabs"
version = "0.1.0"
repositories {
mavenCentral()
}
// Include the generated files in the source set
sourceSets {
main {
java {
srcDirs("src/main/gen")
}
}
}
// 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
plugins.set(listOf("com.intellij.java"))
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "11"
targetCompatibility = "11"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
patchPluginXml {
sinceBuild.set("231")
untilBuild.set("241.*")
}
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
}
}