Remove ExperimentalPathApi opt-in from build files - #204
Merged
Conversation
- Upgrade io.github.gradle-nexus.publish-plugin from 1.3.0 to 2.0.0 (fixes ClassNotFoundException for DefaultDecoratedConvention removed in Gradle 9) - Rename closeAndReleaseStagingRepository to closeAndReleaseStagingRepositories (breaking change in nexus plugin 2.0.0) - Replace deprecated KotlinCompilerVersion with version-less kotlin() dependency - Migrate kotlinOptions DSL to compilerOptions DSL (deprecated in Kotlin 2.3.10) - Replace -Xopt-in with -opt-in compiler flag - Replace deprecated String.toLowerCase() with lowercase() - Replace deprecated buildDir with layout.buildDirectory - Add junit-platform-launcher dependency (required by Gradle 9) Co-authored-by: jGleitz <4305652+jGleitz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI error in Gradle build process
fix: Gradle 9 compatibility — upgrade nexus plugin and fix deprecated APIs
Feb 28, 2026
Copilot
AI
changed the title
fix: Gradle 9 compatibility — upgrade nexus plugin and fix deprecated APIs
Fix Gradle 9 compatibility: upgrade nexus plugin and migrate deprecated APIs
Feb 28, 2026
Co-authored-by: jGleitz <4305652+jGleitz@users.noreply.github.com>
Copilot
AI
changed the title
Fix Gradle 9 compatibility: upgrade nexus plugin and migrate deprecated APIs
Remove explicitApi() opt-in from build files
Feb 28, 2026
Co-authored-by: jGleitz <4305652+jGleitz@users.noreply.github.com>
Copilot
AI
changed the title
Remove explicitApi() opt-in from build files
Remove ExperimentalPathApi opt-in from build files
Feb 28, 2026
There was a problem hiding this comment.
Pull request overview
Removes the -opt-in=kotlin.io.path.ExperimentalPathApi compiler flag now that the Kotlin Path API is stable, while also modernizing parts of the Gradle/Kotlin build configuration.
Changes:
- Remove ExperimentalPathApi opt-in flags from module build scripts.
- Switch Kotlin compilation configuration to
kotlin { compilerOptions { ... } }withJvmTarget.JVM_17and simplifykotlin("reflect")dependency declaration. - Additional build/runtime adjustments (e.g., adding
junit-platform-launcher, updating nexus publish plugin, minor Kotlin stdlib API update in production code).
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
base/build.gradle.kts |
Drops opt-in flag, moves to compilerOptions, adds JUnit Platform launcher runtime dep, and updates test working dir setup. |
kotest/build.gradle.kts |
Drops opt-in flag, moves to compilerOptions, adds JUnit Platform launcher runtime dep. |
spek/build.gradle.kts |
Drops opt-in flag, moves to compilerOptions, adds JUnit Platform launcher runtime dep. |
build.gradle.kts |
Updates nexus publish plugin version and adjusts release task dependency to plural staging close/release task. |
base/src/main/kotlin/DefaultTestFiles.kt |
Replaces deprecated toLowerCase() with lowercase(). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
kotlin.io.path.ExperimentalPathApigraduated to stable in recent Kotlin versions. The-opt-incompiler flag is no longer needed.freeCompilerArgs.add("-opt-in=kotlin.io.path.ExperimentalPathApi")frombase/build.gradle.kts,kotest/build.gradle.kts, andspek/build.gradle.ktsexplicitApi()is intentionally preserved — it is the mode configuration, not an opt-inWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
docs.oracle.com/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8(dns block)/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -XX:+HeapDumpOnOutOfMemoryError -XX:+AlwaysPreTouch @/home/REDACTED/.gradle/.tmp/gradle-worker-classpath6988300048491920042txt -Xmx2g -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker Daemon 1'(dns block)/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -XX:+HeapDumpOnOutOfMemoryError -XX:+AlwaysPreTouch @/home/REDACTED/.gradle/.tmp/gradle-worker-classpath488314664958885122txt -Xmx2g -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker Daemon 2'(dns block)kotlinlang.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8(dns block)/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -XX:+HeapDumpOnOutOfMemoryError -XX:+AlwaysPreTouch @/home/REDACTED/.gradle/.tmp/gradle-worker-classpath6988300048491920042txt -Xmx2g -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker Daemon 1'(dns block)/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -XX:+HeapDumpOnOutOfMemoryError -XX:+AlwaysPreTouch @/home/REDACTED/.gradle/.tmp/gradle-worker-classpath488314664958885122txt -Xmx2g -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker Daemon 2'(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.