quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.81k stars 2.69k forks source link

Gradle `buildForkOptions` no longer used since quarkus 3.16.1 #44438

Open Malandril opened 1 day ago

Malandril commented 1 day ago

Describe the bug

Since quarkus 3.16.1 the buildForkOptions in the quarkus extensions is no longer used when running quarkus tasks such as quarkusBuild, or imagePush

Expected behavior

The buildForkOptions should be used to configure the build tasks, and its actions should be applied to QuarkusBuildTask.

Actual behavior

The buildForkOptions is not used, and the configuration actions are not executed

How to Reproduce?

  1. quarkus create app quarkus-bug-jib-proxy --gradle-kotlin-dsl --extension='rest'
  2. Add the following in build.gradle.kts:
    quarkus {
    buildForkOptions {
        println("Build fork options")
    }
    }

The line is never printed

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

3.16.2

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 8.10.2

Additional information

The codeGenForkOptions is still correctly used.

quarkus-bot[bot] commented 1 day ago

/cc @geoand (jib,kotlin), @glefloch, @quarkusio/devtools

geoand commented 1 day ago

cc @aloubyansky

cdsap commented 26 minutes ago

The QuarkusBuildTask is incorrectly using the CodeGenForkOptions. A fix was created in #44493.