diff --git a/build-logic/src/main/kotlin/me.champeau.plugin-configuration.gradle.kts b/build-logic/src/main/kotlin/me.champeau.plugin-configuration.gradle.kts index 5553152..02a8412 100644 --- a/build-logic/src/main/kotlin/me.champeau.plugin-configuration.gradle.kts +++ b/build-logic/src/main/kotlin/me.champeau.plugin-configuration.gradle.kts @@ -61,6 +61,13 @@ tasks.jar { } } +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + withSourcesJar() + withJavadocJar() +} + gradlePlugin { website = providers.gradleProperty("POM_URL") vcsUrl = providers.gradleProperty("POM_URL") diff --git a/build.gradle.kts b/build.gradle.kts index e03399f..673d971 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -45,13 +45,6 @@ dependencies { testImplementation("commons-io:commons-io:2.16.1") } -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 - withSourcesJar() - withJavadocJar() -} - jacoco { toolVersion = "0.8.12" }