Skip to content

Commit

Permalink
Remove Quarkus-BOM from non-Quarkus code (#4836)
Browse files Browse the repository at this point in the history
The Quarkus-BOM references some dependencies that require at least
Java 11 (like `jboss-logging:3.5.0.Final`), which lets Iceberg's
Java 8 CI (and potentially other code running with Java 8) fail
with
```
java.lang.UnsupportedClassVersionError: org/jboss/logging/BasicLogger has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
```

This change removes all references to the `quarkus-bom` from non
Quarkus related Nessie projects.
  • Loading branch information
snazy authored Aug 1, 2022
1 parent 12978d9 commit fe12b0a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 20 deletions.
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ val versionJunit = "5.9.0"
val versionLogback = "1.2.11"
val versionMavenResolver = "1.7.3"
val versionMaven = "3.8.6"
val versionMicrometer = "1.9.2"
val versionMockito = "4.6.1"
val versionMongodbDriverSync = "4.7.1"
val versionNessieApprunner = "0.21.4"
val versionOpenapi = "3.0"
val versionOpentracing = "0.33.0"
val versionQuarkus = dependencyVersion("versionQuarkus") // ensure that plugin version is the same
val versionQuarkusAmazon = "2.11.1.Final"
val versionQuarkusLoggingSentry = "1.2.1"
Expand All @@ -105,6 +107,7 @@ versionIceberg = System.getProperty("nessie.versionIceberg", versionIceberg)
versionClientNessie = System.getProperty("nessie.versionClientNessie", versionClientNessie)

mapOf(
"versionAwssdk" to versionAwssdk,
"versionCheckstyle" to versionCheckstyle,
"versionClientNessie" to versionClientNessie,
"versionErrorProneAnnotations" to versionErrorProneAnnotations,
Expand All @@ -114,6 +117,8 @@ mapOf(
"versionGoogleJavaFormat" to versionGoogleJavaFormat,
"versionJacoco" to versionJacoco,
"versionJandex" to versionJandex,
"versionMicrometer" to versionMicrometer,
"versionOpentracing" to versionOpentracing,
"versionProtobuf" to versionProtobuf,
"versionRocksDb" to versionRocksDb,
"quarkus.builder-image" to "quay.io/quarkus/ubi-quarkus-native-image:22.1-java17"
Expand Down Expand Up @@ -157,6 +162,10 @@ dependenciesProject("nessie-deps-managed-only", "Only managed dependencies (for
api("jp.skypencil.errorprone.slf4j:errorprone-slf4j:$versionErrorProneSlf4j")
api("org.jacoco:jacoco-maven-plugin:$versionJacoco")
api("org.jboss:jandex:$versionJandex")
api("io.opentracing:opentracing-api:${dependencyVersion("versionOpentracing")}")
api("io.opentracing:opentracing-mock:${dependencyVersion("versionOpentracing")}")
api("io.opentracing:opentracing-util:${dependencyVersion("versionOpentracing")}")
api("io.micrometer:micrometer-core:${dependencyVersion("versionMicrometer")}")
}

dependenciesProject("nessie-deps-persist", "Persistence/server dependency management") {
Expand Down
8 changes: 3 additions & 5 deletions versioned/persist/adapter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ extra["maven.name"] = "Nessie - Versioned - Persist - Adapter"
dependencies {
implementation(platform(rootProject))
implementation(platform(project(":nessie-deps-persist")))
implementation(platform(project(":nessie-deps-quarkus")))
compileOnly(platform(project(":nessie-deps-build-only")))
annotationProcessor(platform(project(":nessie-deps-build-only")))
implementation(platform("io.quarkus:quarkus-bom"))

implementation(project(":nessie-versioned-spi"))
compileOnly("org.immutables:value-annotations")
Expand All @@ -42,9 +40,9 @@ dependencies {
implementation("org.slf4j:slf4j-api")
implementation("org.agrona:agrona")

implementation("io.opentracing:opentracing-api")
implementation("io.opentracing:opentracing-util")
implementation("io.micrometer:micrometer-core")
implementation("io.opentracing:opentracing-api:${dependencyVersion("versionOpentracing")}")
implementation("io.opentracing:opentracing-util:${dependencyVersion("versionOpentracing")}")
implementation("io.micrometer:micrometer-core:${dependencyVersion("versionMicrometer")}")

testImplementation(platform(project(":nessie-deps-testing")))
testImplementation(platform("org.junit:junit-bom"))
Expand Down
3 changes: 1 addition & 2 deletions versioned/persist/dynamodb/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ extra["maven.name"] = "Nessie - Versioned - Persist - DynamoDB"

dependencies {
implementation(platform(rootProject))
implementation(platform(project(":nessie-deps-quarkus")))
compileOnly(platform(project(":nessie-deps-build-only")))
annotationProcessor(platform(project(":nessie-deps-build-only")))
implementation(platform("software.amazon.awssdk:bom"))
implementation(platform("software.amazon.awssdk:bom:${dependencyVersion("versionAwssdk")}"))

implementation(project(":nessie-versioned-persist-adapter"))
implementation(project(":nessie-versioned-persist-non-transactional"))
Expand Down
6 changes: 2 additions & 4 deletions versioned/persist/tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,16 @@ extra["maven.name"] = "Nessie - Versioned - Persist - Tests"

dependencies {
implementation(platform(rootProject))
implementation(platform(project(":nessie-deps-quarkus")))
implementation(platform(project(":nessie-deps-testing")))
implementation(platform("io.quarkus:quarkus-bom"))
implementation(platform("org.junit:junit-bom"))

implementation(project(":nessie-versioned-persist-adapter"))
implementation(project(":nessie-versioned-persist-store"))
implementation(project(":nessie-versioned-spi"))
implementation(project(":nessie-versioned-tests"))
implementation("com.google.guava:guava")
implementation("io.micrometer:micrometer-core")
implementation("io.opentracing:opentracing-mock")
implementation("io.micrometer:micrometer-core:${dependencyVersion("versionMicrometer")}")
implementation("io.opentracing:opentracing-mock:${dependencyVersion("versionOpentracing")}")
implementation("com.google.protobuf:protobuf-java")

implementation("org.assertj:assertj-core")
Expand Down
15 changes: 6 additions & 9 deletions versioned/spi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ extra["maven.name"] = "Nessie - Versioned Store SPI"

dependencies {
implementation(platform(rootProject))
implementation(platform(project(":nessie-deps-quarkus")))
compileOnly(platform(project(":nessie-deps-build-only")))
annotationProcessor(platform(project(":nessie-deps-build-only")))
compileOnly(platform("io.quarkus:quarkus-bom"))

implementation("com.google.protobuf:protobuf-java")
compileOnly("org.immutables:builder")
Expand All @@ -42,7 +40,6 @@ dependencies {

testImplementation(platform(project(":nessie-deps-testing")))
testImplementation(platform("org.junit:junit-bom"))
testImplementation(platform("io.quarkus:quarkus-bom"))

testImplementation("org.assertj:assertj-core")
testImplementation("org.mockito:mockito-core")
Expand All @@ -51,10 +48,10 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")

// Need a few things from Quarkus, but don't leak the dependencies
compileOnly("io.opentracing:opentracing-api")
compileOnly("io.opentracing:opentracing-util")
compileOnly("io.micrometer:micrometer-core")
testImplementation("io.opentracing:opentracing-api")
testImplementation("io.opentracing:opentracing-util")
testImplementation("io.micrometer:micrometer-core")
compileOnly("io.opentracing:opentracing-api:${dependencyVersion("versionOpentracing")}")
compileOnly("io.opentracing:opentracing-util:${dependencyVersion("versionOpentracing")}")
compileOnly("io.micrometer:micrometer-core:${dependencyVersion("versionMicrometer")}")
testImplementation("io.opentracing:opentracing-api:${dependencyVersion("versionOpentracing")}")
testImplementation("io.opentracing:opentracing-util:${dependencyVersion("versionOpentracing")}")
testImplementation("io.micrometer:micrometer-core:${dependencyVersion("versionMicrometer")}")
}

0 comments on commit fe12b0a

Please sign in to comment.