diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index ccebba77..c1962a79 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index bdc9a83b..0c85a1f7 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 79a61d42..aeb74cbb 100755 --- a/gradlew +++ b/gradlew @@ -85,9 +85,6 @@ done APP_BASE_NAME=${0##*/} APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum @@ -197,6 +194,10 @@ if "$cygwin" || "$msys" ; then done fi + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + # Collect all arguments for the java command; # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of # shell script including quotes and variable substitutions, so put them in diff --git a/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/MavenPublishPluginPlatformTest.kt b/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/MavenPublishPluginPlatformTest.kt index 51d11fa6..031df32a 100644 --- a/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/MavenPublishPluginPlatformTest.kt +++ b/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/MavenPublishPluginPlatformTest.kt @@ -316,7 +316,7 @@ class MavenPublishPluginPlatformTest { assertThat(result).module().isSigned() assertThat(result).sourcesJar().exists() assertThat(result).sourcesJar().isSigned() - if (kotlinVersion < KotlinVersion.KT_1_8_BETA) { + if (kotlinVersion < KotlinVersion.KT_1_8_20) { assertThat(result).sourcesJar().containsAllSourceFiles() } else { assertThat(result).sourcesJar().containsSourceSetFiles("commonMain") @@ -402,7 +402,7 @@ class MavenPublishPluginPlatformTest { assertThat(result).module().isSigned() assertThat(result).sourcesJar().exists() assertThat(result).sourcesJar().isSigned() - if (kotlinVersion < KotlinVersion.KT_1_8_BETA) { + if (kotlinVersion < KotlinVersion.KT_1_8_20) { assertThat(result).sourcesJar().containsAllSourceFiles() } else { assertThat(result).sourcesJar().containsSourceSetFiles("commonMain") diff --git a/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/MavenPublishPluginSpecialCaseTest.kt b/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/MavenPublishPluginSpecialCaseTest.kt index e74838e3..fad629fc 100644 --- a/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/MavenPublishPluginSpecialCaseTest.kt +++ b/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/MavenPublishPluginSpecialCaseTest.kt @@ -39,7 +39,7 @@ class MavenPublishPluginSpecialCaseTest { ) assertThat(result).module().exists() assertThat(result).sourcesJar().exists() - if (kotlinVersion < KotlinVersion.KT_1_8_BETA) { + if (kotlinVersion < KotlinVersion.KT_1_8_20) { assertThat(result).sourcesJar().containsAllSourceFiles() } else { assertThat(result).sourcesJar().containsSourceSetFiles("commonMain") @@ -105,7 +105,7 @@ class MavenPublishPluginSpecialCaseTest { ) assertThat(result).module().exists() assertThat(result).sourcesJar().exists() - if (kotlinVersion < KotlinVersion.KT_1_8_BETA) { + if (kotlinVersion < KotlinVersion.KT_1_8_20) { assertThat(result).sourcesJar().containsAllSourceFiles() } else { assertThat(result).sourcesJar().containsSourceSetFiles("commonMain") diff --git a/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/TestOptions.kt b/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/TestOptions.kt index abc288e7..f15ec0c9 100644 --- a/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/TestOptions.kt +++ b/plugin/src/integrationTest/kotlin/com/vanniktech/maven/publish/TestOptions.kt @@ -54,13 +54,10 @@ enum class AgpVersion( enum class KotlinVersion(val value: String) { // minimum supported - KT_1_7("1.7.0"), + KT_1_7_0("1.7.0"), // stable - KT_1_8("1.8.10"), - - // preview - KT_1_8_BETA("1.8.20"), + KT_1_8_20("1.8.20"), } enum class GradleVersion(val value: String) { @@ -68,16 +65,14 @@ enum class GradleVersion(val value: String) { GRADLE_7_4("7.4"), // stable - GRADLE_8_0("8.0.2"), - - // preview - GRADLE_8_1("8.1-rc-2"), + GRADLE_8_1("8.1"), ; companion object { // aliases for the skipped version to be able to reference the correct one in AgpVersion - val GRADLE_7_5 = GRADLE_8_0 - val GRADLE_7_6 = GRADLE_8_0 + val GRADLE_7_5 = GRADLE_8_1 + val GRADLE_7_6 = GRADLE_8_1 + val GRADLE_8_0 = GRADLE_8_1 } } @@ -86,5 +81,5 @@ enum class GradlePluginPublish(val version: String) { GRADLE_PLUGIN_PUBLISH_1_0("1.0.0"), // stable - GRADLE_PLUGIN_PUBLISH_1_1("1.1.0"), + GRADLE_PLUGIN_PUBLISH_1_2("1.2.0"), } diff --git a/plugin/src/main/kotlin/com/vanniktech/maven/publish/Platform.kt b/plugin/src/main/kotlin/com/vanniktech/maven/publish/Platform.kt index b522341b..64e788d5 100644 --- a/plugin/src/main/kotlin/com/vanniktech/maven/publish/Platform.kt +++ b/plugin/src/main/kotlin/com/vanniktech/maven/publish/Platform.kt @@ -9,7 +9,6 @@ import org.gradle.api.plugins.jvm.internal.JvmModelingServices import org.gradle.api.plugins.jvm.internal.JvmVariantBuilder import org.gradle.api.provider.Provider import org.gradle.api.publish.maven.MavenPublication -import org.gradle.api.tasks.SourceSet import org.gradle.api.tasks.TaskProvider import org.gradle.configurationcache.extensions.serviceOf import org.gradle.jvm.tasks.Jar @@ -493,13 +492,13 @@ private fun setupTestFixtures(project: Project, sourcesJar: Boolean) { val action = Action { it.withSourcesJar().published() } - if (GradleVersion.current() >= GradleVersion.version("8.1-rc-1")) { + if (GradleVersion.current() >= GradleVersion.version("8.1")) { val extension = project.extensions.getByType(JavaPluginExtension::class.java) val testFixturesSourceSet = extension.sourceSets.maybeCreate(variant) - val method = services.javaClass.getMethod("createJvmVariant", String::class.java, SourceSet::class.java, Action::class.java) - method.invoke(services, variant, testFixturesSourceSet, action) + services.createJvmVariant(variant, testFixturesSourceSet, action) } else { - project.serviceOf().createJvmVariant(variant, action) + val method = services.javaClass.getMethod("createJvmVariant", String::class.java, Action::class.java) + method.invoke(services, variant, action) } }