diff --git a/build.gradle.kts b/build.gradle.kts index a4929f1..093f0d8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,6 +2,7 @@ import java.util.Properties plugins { kotlin("jvm") version "1.8.20" + java id("io.gitlab.arturbosch.detekt") version "1.21.0" `maven-publish` } @@ -12,9 +13,15 @@ version = "2.0.5" allprojects { apply { plugin("kotlin") + plugin("java") plugin("io.gitlab.arturbosch.detekt") } + java { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } + repositories { mavenCentral() } @@ -58,6 +65,7 @@ val spacePassword = getLocalProperty("spacePassword") configure(subprojects) { apply(plugin = "maven-publish") + apply(plugin = "java") val subprojectName = this.name diff --git a/gradle.properties b/gradle.properties index 4a78f86..7ae4795 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,6 +3,6 @@ kotlin.code.style=official pluginName = Kotlin Test Framework With IJ platformType = IC platformVersion = 2022.2.5 -platformPlugins = Kotlin +platformPlugins = Kotlin, com.intellij.java org.gradle.jvmargs = -XX:MaxMetaspaceSize=1g diff --git a/ij/common/build.gradle.kts b/ij/common/build.gradle.kts index ed440a0..0330cd3 100644 --- a/ij/common/build.gradle.kts +++ b/ij/common/build.gradle.kts @@ -3,6 +3,7 @@ version = rootProject.version plugins { id("org.jetbrains.intellij") version "1.15.0" + id("java") } fun properties(key: String) = providers.gradleProperty(key) diff --git a/ij/java-psi/build.gradle.kts b/ij/java-psi/build.gradle.kts index 1ca34e9..5e73e21 100644 --- a/ij/java-psi/build.gradle.kts +++ b/ij/java-psi/build.gradle.kts @@ -3,6 +3,7 @@ version = rootProject.version plugins { id("org.jetbrains.intellij") version "1.15.0" + id("java") } dependencies {