Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document upper version limits #6436

Merged
merged 1 commit into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -e

grep -r --include build.gradle.kts latestDepTestLibrary instrumentation \
| grep -v :+\" \
| grep -v "// see .* module" \
| grep -v "// documented limitation"
2 changes: 1 addition & 1 deletion docs/supported-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ These are the supported libraries and frameworks:
| [gRPC](https://github.com/grpc/grpc-java) | 1.6+ |
| [Guava ListenableFuture](https://guava.dev/releases/snapshot/api/docs/com/google/common/util/concurrent/ListenableFuture.html) | 10.0+ |
| [GWT](http://www.gwtproject.org/) | 2.0+ |
| [Hibernate](https://github.com/hibernate/hibernate-orm) | 3.3+ |
| [Hibernate](https://github.com/hibernate/hibernate-orm) | 3.3+ (not including 6.x yet) |
| [HikariCP](https://github.com/brettwooldridge/HikariCP) | 3.0+ |
| [HttpURLConnection](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/HttpURLConnection.html) | Java 8+ |
| [Hystrix](https://github.com/Netflix/Hystrix) | 1.4+ |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ dependencies {
// Ensure no cross interference
testInstrumentation(project(":instrumentation:azure-core:azure-core-1.19:javaagent"))

latestDepTestLibrary("com.azure:azure-core:1.18.+") // see azure-core-1.19
latestDepTestLibrary("com.azure:azure-core:1.18.+") // see azure-core-1.19 module
}
4 changes: 0 additions & 4 deletions instrumentation/cdi-testing/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ dependencies {
testLibrary("org.jboss.weld:weld-core:2.3.0.Final")
testLibrary("org.jboss.weld.se:weld-se:2.3.0.Final")
testLibrary("org.jboss.weld.se:weld-se-core:2.3.0.Final")

latestDepTestLibrary("org.jboss.weld:weld-core:2.+")
latestDepTestLibrary("org.jboss.weld.se:weld-se:2.+")
latestDepTestLibrary("org.jboss.weld.se:weld-se-core:2.+")
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ dependencies {

testImplementation("org.testcontainers:couchbase")

latestDepTestLibrary("com.couchbase.client:java-client:3.1.+")
latestDepTestLibrary("com.couchbase.client:java-client:3.1.+") // see couchbase-3.2 module
}

tasks {
test {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].getService())
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ dependencies {

testImplementation("org.testcontainers:couchbase")

latestDepTestLibrary("com.couchbase.client:java-client:3.1.5")
latestDepTestLibrary("com.couchbase.client:java-client:3.1.5") // see couchbase-3.1.6 module
}

tasks {
test {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].getService())
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ dependencies {
testImplementation("javax.xml.bind:jaxb-api:2.3.1")
testImplementation("org.glassfish.jaxb:jaxb-runtime:2.3.3")

latestDepTestLibrary("org.hibernate:hibernate-core:5.+")
latestDepTestLibrary("org.hibernate:hibernate-entitymanager:5.+")
latestDepTestLibrary("org.hibernate:hibernate-core:5.+") // documented limitation
latestDepTestLibrary("org.hibernate:hibernate-entitymanager:5.+") // documented limitation
}

tasks.withType<Test>().configureEach {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ dependencies {
testImplementation("javax.xml.bind:jaxb-api:2.2.3")
testImplementation("org.eclipse.jetty:jetty-webapp:9.4.6.v20170531")

latestDepTestLibrary("org.glassfish.jersey.core:jersey-server:2.+")
latestDepTestLibrary("org.glassfish.jersey.containers:jersey-container-servlet:2.+")
latestDepTestLibrary("org.glassfish.jersey.containers:jersey-container-servlet:2.+")
latestDepTestLibrary("org.glassfish.jersey.inject:jersey-hk2:2.+")
latestDepTestLibrary("org.glassfish.jersey.core:jersey-server:2.+") // see jaxrs-3.0-jersey-3.0 module
latestDepTestLibrary("org.glassfish.jersey.containers:jersey-container-servlet:2.+") // see jaxrs-3.0-jersey-3.0 module
latestDepTestLibrary("org.glassfish.jersey.containers:jersey-container-servlet:2.+") // see jaxrs-3.0-jersey-3.0 module
latestDepTestLibrary("org.glassfish.jersey.inject:jersey-hk2:2.+") // see jaxrs-3.0-jersey-3.0 module
}

if (!(findProperty("testLatestDeps") as Boolean)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ dependencies {
testLibrary("io.undertow:undertow-servlet:1.4.28.Final")
testLibrary("org.jboss.resteasy:resteasy-servlet-initializer:3.0.4.Final")

latestDepTestLibrary("org.jboss.resteasy:resteasy-servlet-initializer:3.0.+")
latestDepTestLibrary("org.jboss.resteasy:resteasy-jaxrs:3.0.+")
latestDepTestLibrary("org.jboss.resteasy:resteasy-undertow:3.0.+") {
latestDepTestLibrary("org.jboss.resteasy:resteasy-servlet-initializer:3.0.+") // see jaxrs-3.0-resteasy-3.1 module
latestDepTestLibrary("org.jboss.resteasy:resteasy-jaxrs:3.0.+") // see jaxrs-3.0-resteasy-3.1 module
latestDepTestLibrary("org.jboss.resteasy:resteasy-undertow:3.0.+") { // see jaxrs-3.0-resteasy-3.1 module
exclude("org.jboss.resteasy", "resteasy-client")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ dependencies {
implementation(project(":instrumentation:jetty-httpclient:jetty-httpclient-9.2:library"))

library("org.eclipse.jetty:jetty-client:$jettyVers_base9")
latestDepTestLibrary("org.eclipse.jetty:jetty-client:9.+")

testImplementation(project(":instrumentation:jetty-httpclient:jetty-httpclient-9.2:testing"))

latestDepTestLibrary("org.eclipse.jetty:jetty-client:9.+") // documented limitation
}
4 changes: 2 additions & 2 deletions instrumentation/ktor/ktor-1.0/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ dependencies {

testLibrary("io.ktor:ktor-server-netty:1.0.0")

latestDepTestLibrary("io.ktor:ktor-server-core:1.+")
latestDepTestLibrary("io.ktor:ktor-server-netty:1.+")
latestDepTestLibrary("io.ktor:ktor-server-core:1.+") // see ktor-2.0 module
latestDepTestLibrary("io.ktor:ktor-server-netty:1.+") // see ktor-2.0 module
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ dependencies {

testImplementation(project(":instrumentation:log4j:log4j-context-data:log4j-context-data-common:testing"))

latestDepTestLibrary("org.apache.logging.log4j:log4j-core:2.16.+") // see log4j-context-data-2.17
latestDepTestLibrary("org.apache.logging.log4j:log4j-core:2.16.+") // see log4j-context-data-2.17 module
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {
testInstrumentation(project(":instrumentation:netty:netty-3.8:javaagent"))
testInstrumentation(project(":instrumentation:netty:netty-4.1:javaagent"))

latestDepTestLibrary("io.netty:netty-codec-http:4.0.+")
latestDepTestLibrary("io.netty:netty-codec-http:4.0.+") // see netty-4.1 module
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ dependencies {
testImplementation(project(":instrumentation:reactor:reactor-3.1:testing"))
testImplementation(project(":instrumentation-annotations"))
testImplementation("io.opentelemetry:opentelemetry-extension-annotations")

// Looks like later versions on reactor need this dependency for some reason even though it is marked as optional.
latestDepTestLibrary("io.micrometer:micrometer-core:1.+")
}

testing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ dependencies {
testLibrary("io.projectreactor:reactor-test:3.1.0.RELEASE")

testImplementation(project(":instrumentation:reactor:reactor-3.1:testing"))

// Looks like later versions on reactor need this dependency for some reason even though it is marked as optional.
latestDepTestLibrary("io.micrometer:micrometer-core:1.+")
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ dependencies {

testImplementation(project(":instrumentation:redisson:redisson-common:testing"))

latestDepTestLibrary("org.redisson:redisson:3.16.+")
latestDepTestLibrary("org.redisson:redisson:3.16.+") // see redisson-3.17 module
}

tasks.test {
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].getService())
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,4 @@ dependencies {
testInstrumentation(project(":instrumentation:jetty:jetty-8.0:javaagent"))
testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))

latestDepTestLibrary("org.restlet:org.restlet:1.1.+")
latestDepTestLibrary("com.noelios.restlet:com.noelios.restlet:1.1.+")
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ dependencies {
library("com.noelios.restlet:com.noelios.restlet:1.1.5")

testImplementation(project(":instrumentation:restlet:restlet-1.0:testing"))

latestDepTestLibrary("org.restlet:org.restlet:1.1.+")
latestDepTestLibrary("com.noelios.restlet:com.noelios.restlet:1.1.+")
}