Skip to content

Commit 0229141

Browse files
traskiNikem
andauthored
test latest deps cleanup (#5269)
* test latest deps cleanup * Revert currently irrelevant change * Update instrumentation/lettuce/lettuce-4.0/javaagent/build.gradle.kts Co-authored-by: Nikita Salnikov-Tarnovski <[email protected]> Co-authored-by: Nikita Salnikov-Tarnovski <[email protected]>
1 parent 3bbc41a commit 0229141

File tree

42 files changed

+81
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+81
-162
lines changed

conventions/src/main/kotlin/io.opentelemetry.instrumentation.base.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ extra["testLatestDeps"] = testLatestDeps
3434
abstract class TestLatestDepsRule : ComponentMetadataRule {
3535
override fun execute(context: ComponentMetadataContext) {
3636
val version = context.details.id.version
37-
if (version.contains("-alpha") || version.contains("-beta") || version.contains("-rc")) {
37+
if (version.contains("-alpha", true)
38+
|| version.contains("-beta", true)
39+
|| version.contains("-rc", true)
40+
|| version.contains("-m", true) // e.g. spring milestones are published to grails repo
41+
|| version.contains(".alpha", true) // e.g. netty
42+
|| version.contains(".beta", true) // e.g. hibernate
43+
|| version.contains(".cr", true) // e.g. hibernate
44+
) {
3845
context.details.status = "milestone"
3946
}
4047
}

docs/supported-libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ These are the supported libraries and frameworks:
2424
| [Akka Actors](https://doc.akka.io/docs/akka/current/typed/index.html) | 2.5+ |
2525
| [Akka HTTP](https://doc.akka.io/docs/akka-http/current/index.html) | 10.0+ |
2626
| [Apache Axis2](https://axis.apache.org/axis2/java/core/) | 1.6+ |
27-
| [Apache Camel](https://camel.apache.org/) | 2.20+ |
27+
| [Apache Camel](https://camel.apache.org/) | 2.20+ (not including 3.x yet) |
2828
| [Apache CXF JAX-RS](https://cxf.apache.org/) | 3.2+ |
2929
| [Apache CXF JAX-RS Client](https://cxf.apache.org/) | 3.0+ |
3030
| [Apache CXF JAX-WS](https://cxf.apache.org/) | 3.0+ |

instrumentation/apache-camel-2.20/javaagent/build.gradle.kts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ dependencies {
4949
testImplementation("org.testcontainers:localstack")
5050
testImplementation("org.testcontainers:cassandra")
5151

52-
latestDepTestLibrary("org.apache.camel:camel-core:2.+")
53-
latestDepTestLibrary("org.apache.camel:camel-spring-boot-starter:2.+")
54-
latestDepTestLibrary("org.apache.camel:camel-jetty-starter:2.+")
55-
latestDepTestLibrary("org.apache.camel:camel-http-starter:2.+")
56-
latestDepTestLibrary("org.apache.camel:camel-jaxb-starter:2.+")
57-
latestDepTestLibrary("org.apache.camel:camel-undertow:2.+")
58-
latestDepTestLibrary("org.apache.camel:camel-aws:2.+")
59-
latestDepTestLibrary("org.apache.camel:camel-cassandraql:2.+")
52+
latestDepTestLibrary("org.apache.camel:camel-core:2.+") // documented limitation
53+
latestDepTestLibrary("org.apache.camel:camel-spring-boot-starter:2.+") // documented limitation
54+
latestDepTestLibrary("org.apache.camel:camel-jetty-starter:2.+") // documented limitation
55+
latestDepTestLibrary("org.apache.camel:camel-http-starter:2.+") // documented limitation
56+
latestDepTestLibrary("org.apache.camel:camel-jaxb-starter:2.+") // documented limitation
57+
latestDepTestLibrary("org.apache.camel:camel-undertow:2.+") // documented limitation
58+
latestDepTestLibrary("org.apache.camel:camel-aws:2.+") // documented limitation
59+
latestDepTestLibrary("org.apache.camel:camel-cassandraql:2.+") // documented limitation
6060
}
6161

6262
tasks {

instrumentation/apache-dubbo-2.7/javaagent/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ dependencies {
1818
testImplementation(project(":instrumentation:apache-dubbo-2.7:testing"))
1919

2020
testLibrary("org.apache.dubbo:dubbo-config-api:2.7.0")
21-
latestDepTestLibrary("org.apache.dubbo:dubbo:2.+")
22-
latestDepTestLibrary("org.apache.dubbo:dubbo-config-api:2.+")
21+
latestDepTestLibrary("org.apache.dubbo:dubbo:2.+") // documented limitation
22+
latestDepTestLibrary("org.apache.dubbo:dubbo-config-api:2.+") // documented limitation
2323
}

instrumentation/apache-dubbo-2.7/library-autoconfigure/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ dependencies {
1111
testImplementation(project(":instrumentation:apache-dubbo-2.7:testing"))
1212

1313
testLibrary("org.apache.dubbo:dubbo-config-api:2.7.0")
14-
latestDepTestLibrary("org.apache.dubbo:dubbo:2.+")
15-
latestDepTestLibrary("org.apache.dubbo:dubbo-config-api:2.+")
14+
latestDepTestLibrary("org.apache.dubbo:dubbo:2.+") // documented limitation
15+
latestDepTestLibrary("org.apache.dubbo:dubbo-config-api:2.+") // documented limitation
1616
}

instrumentation/apache-httpclient/apache-httpclient-2.0/javaagent/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ muzzle {
1313
dependencies {
1414
library("commons-httpclient:commons-httpclient:2.0")
1515

16-
latestDepTestLibrary("commons-httpclient:commons-httpclient:3.+")
16+
latestDepTestLibrary("commons-httpclient:commons-httpclient:3.+") // see apache-httpclient-4.0 module
1717
}

instrumentation/apache-httpclient/apache-httpclient-4.3/library/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ dependencies {
1111

1212
testImplementation(project(":instrumentation:apache-httpclient:apache-httpclient-4.3:testing"))
1313

14-
latestDepTestLibrary("org.apache.httpcomponents:httpclient:4.+")
14+
latestDepTestLibrary("org.apache.httpcomponents:httpclient:4.+") // see apache-httpclient-5.0 module
1515
}

instrumentation/aws-sdk/aws-sdk-2.2/javaagent/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ dependencies {
2323
testImplementation(project(":instrumentation:apache-httpclient:apache-httpclient-4.0:javaagent"))
2424
testImplementation(project(":instrumentation:netty:netty-4.1:javaagent"))
2525

26-
latestDepTestLibrary("software.amazon.awssdk:aws-json-protocol:2.17.114")
27-
latestDepTestLibrary("software.amazon.awssdk:kinesis:2.17.114")
28-
latestDepTestLibrary("software.amazon.awssdk:aws-core:2.17.114")
26+
latestDepTestLibrary("software.amazon.awssdk:aws-json-protocol:2.17.114") // issue #5259
27+
latestDepTestLibrary("software.amazon.awssdk:kinesis:2.17.114") // issue #5259
28+
latestDepTestLibrary("software.amazon.awssdk:aws-core:2.17.114") // issue #5259
2929
}
3030

3131
tasks.withType<Test>().configureEach {

instrumentation/aws-sdk/aws-sdk-2.2/library-autoconfigure/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ dependencies {
1212

1313
testImplementation(project(":instrumentation:aws-sdk:aws-sdk-2.2:testing"))
1414

15-
latestDepTestLibrary("software.amazon.awssdk:kinesis:2.17.114")
16-
latestDepTestLibrary("software.amazon.awssdk:aws-core:2.17.114")
17-
latestDepTestLibrary("software.amazon.awssdk:aws-json-protocol:2.17.114")
15+
latestDepTestLibrary("software.amazon.awssdk:kinesis:2.17.114") // issue #5259
16+
latestDepTestLibrary("software.amazon.awssdk:aws-core:2.17.114") // issue #5259
17+
latestDepTestLibrary("software.amazon.awssdk:aws-json-protocol:2.17.114") // issue #5259
1818
}
1919

2020
tasks {

instrumentation/aws-sdk/aws-sdk-2.2/library/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ dependencies {
1313
testImplementation("org.assertj:assertj-core")
1414
testImplementation("org.mockito:mockito-core")
1515

16-
latestDepTestLibrary("software.amazon.awssdk:kinesis:2.17.114")
17-
latestDepTestLibrary("software.amazon.awssdk:aws-core:2.17.114")
18-
latestDepTestLibrary("software.amazon.awssdk:aws-json-protocol:2.17.114")
16+
latestDepTestLibrary("software.amazon.awssdk:kinesis:2.17.114") // issue #5259
17+
latestDepTestLibrary("software.amazon.awssdk:aws-core:2.17.114") // issue #5259
18+
latestDepTestLibrary("software.amazon.awssdk:aws-json-protocol:2.17.114") // issue #5259
1919
}
2020

2121
tasks {

0 commit comments

Comments
 (0)