Quarkus Upgrade with gradle kotlin dsl not working
#33046 opened on May 2, 2023
Description
Describe the bug
Below is the o/p of gradle update command
quarkus update --stream=3.0
Task :quarkusUpdate
quarkusUpdate is experimental, its options and output might change in future versions Looking for the newly published extensions in registry.quarkus.io The project does not import any Quarkus platform BOM
BUILD SUCCESSFUL in 12s
my gradle. properties
quarkusPluginId=io.quarkus quarkusPluginVersion=3.0.1.Final quarkusPlatformGroupId=io.quarkus quarkusPlatformArtifactId=quarkus-universe-bom quarkusPlatformVersion=3.0.1.Final
build.gradle.kts plugins { kotlin("jvm") version "1.8.10" kotlin("plugin.allopen") version "1.8.10" id("io.quarkus") id("org.sonarqube") version "4.0.0.2929" id("org.owasp.dependencycheck") version "8.2.1" jacoco }
repositories { mavenCentral() mavenLocal() }
val quarkusPlatformGroupId: String by project val quarkusPlatformArtifactId: String by project val quarkusPlatformVersion: String by project
dependencies { implementation(enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")) implementation(enforcedPlatform("org.jetbrains.kotlin:kotlin-bom:1.8.10")) implementation("io.quarkus:quarkus-container-image-docker") implementation("io.quarkus:quarkus-smallrye-openapi") implementation("io.quarkus:quarkus-kotlin") implementation("io.quarkus:quarkus-resteasy") implementation("io.quarkus:quarkus-resteasy-jackson") implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") implementation("io.quarkus:quarkus-arc") implementation("com.zaxxer:HikariCP:5.0.1") implementation("org.apache.commons:commons-lang3:3.12.0") implementation("com.microsoft.sqlserver:mssql-jdbc:11.2.2.jre8") implementation("io.quarkus:quarkus-smallrye-health") implementation(enforcedPlatform("software.amazon.awssdk:bom:2.18.38")) implementation("software.amazon.awssdk:secretsmanager") implementation("software.amazon.awssdk:sts")
testImplementation("io.quarkus:quarkus-junit5")
testImplementation("io.rest-assured:rest-assured")
testImplementation("io.mockk:mockk:1.13.3")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("io.quarkus:quarkus-jacoco")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 }
allOpen { annotation("javax.ws.rs.Path") annotation("jakarta.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") }
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString() kotlinOptions.javaParameters = true }
jacoco { toolVersion = "0.8.9" }
tasks.compileTestKotlin { kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } }
tasks.test { outputs.file(layout.buildDirectory.file("reports/jacoco/test/jacoco.xml")) finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run } tasks.jacocoTestReport { dependsOn(tasks.test) // tests are required to run before generating the report reports{ xml.required.set(true) xml.outputLocation.set(layout.buildDirectory.file("reports/jacoco/test/jacoco.xml")) } } tasks.jacocoTestCoverageVerification { violationRules { rule { limit { minimum = "0.8".toBigDecimal() } } } }
settings.gradle.kts
pluginManagement { val quarkusPluginVersion: String by settings val quarkusPluginId: String by settings repositories { mavenLocal() mavenCentral() gradlePluginPortal() } plugins { id(quarkusPluginId) version quarkusPluginVersion } }
Expected behavior
quarkus update changes should be applied
Actual behavior
Quarlkus not updating. Manually updated gradle.properties
How to Reproduce?
No response
Output of uname -a or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
Old Version : 2.16.5.Final
Build tool (ie. output of mvnw --version or gradlew --version)
------------------------------------------------------------ Gradle 8.0.2 ------------------------------------------------------------ Build time: 2023-03-03 16:41:37 UTC Revision: 7d6581558e226a580d91d399f7dfb9e3095c2b1d Kotlin: 1.8.10 Groovy: 3.0.13 Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021 JVM: 17.0.7 (Oracle Corporation 17.0.7+8-LTS-224) OS: Windows 10 10.0 amd64
Additional information
No response