plugins { id 'java' id 'org.jetbrains.intellij' version '1.17.1' id 'org.jetbrains.kotlin.jvm' version '1.9.22' id 'jacoco' } group = 'de.platon42' version = '0.11' sourceCompatibility = 17 targetCompatibility = 17 repositories { mavenCentral() } /* To run tests in IntelliJ use these VM Options for run configuration -ea -Didea.system.path=build/idea-sandbox/system-test -Didea.config.path=build/idea-sandbox/config-test -Didea.plugins.path=build/idea-sandbox/plugins-test */ dependencies { implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' testImplementation 'org.assertj:assertj-core:3.25.3' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2' testImplementation "org.jetbrains.kotlin:kotlin-test" testImplementation "org.jetbrains.kotlin:kotlin-reflect" testImplementation 'org.junit.platform:junit-platform-launcher:1.10.2' // testImplementation "org.jetbrains.kotlin:kotlin-test-junit" } intellij { setVersion("2022.3") // LATEST-EAP-SNAPSHOT setUpdateSinceUntilBuild(false) // setPlugins(["com.intellij.java"]) } runPluginVerifier { ideVersions = ["IC-203.6682.168", "IC-233.14015.106", // 2020.3 - 2023.3 "CL-203.8084.11", "CL-233.14015.92"] // 2020.3 - 2023.3 downloadDir = System.getProperty("user.home") + "/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/verifier" } patchPluginXml { setChangeNotes("""

V0.10 (20-Feb-24)

Full changelog available at Gitea project site.

""") } sourceSets.main.java.srcDirs('src/main/gen', 'src/main/java') test { useJUnitPlatform() testLogging { events "passed", "skipped", "failed" } runIde { jvmArgs '--add-exports', 'java.base/jdk.internal.vm=ALL-UNNAMED' } } jacoco { toolVersion = '0.8.8' } jacocoTestReport { reports { xml.required.set(true) csv.required.set(false) } } publishPlugin { setToken(intellijPublishToken) }