Skip to content

Commit

Permalink
NH-37575: use flat dir dependency for joboe stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
cleverchuk committed Jun 24, 2024
1 parent 2b4d79e commit 1aad98c
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 101 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,13 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- name: Clone apm-java-test-apps
uses: actions/checkout@v4
with:
repository: appoptics/apm-java-test-apps
path: ./apm-java-test-apps
token: ${{ secrets.GP_TOKEN }}
ref: cc/local
- name: Run application
working-directory: apm-java-test-apps
working-directory: smoke-tests
run: |
./gradlew :netty-test:run
env:
SW_APM_COLLECTOR: apm.collector.cloud.solarwinds.com
SW_APM_SERVICE_KEY: ${{ secrets.SW_APM_SERVICE_KEY }}:chubi-test
SW_APM_COLLECTOR: apm.collector.st-ssp.solarwinds.com
SW_APM_SERVICE_KEY: ${{ secrets.SW_APM_SERVICE_KEY_STAGE }}:chubi-test

smoke-test-windows:
runs-on: windows-latest
Expand All @@ -47,15 +40,8 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- name: Clone apm-java-test-apps
uses: actions/checkout@v4
with:
repository: appoptics/apm-java-test-apps
path: ./apm-java-test-apps
token: ${{ secrets.GP_TOKEN }}
ref: cc/local
- name: Run application
working-directory: apm-java-test-apps
working-directory: smoke-tests
run: |
.\gradlew.bat :netty-test:run
env:
Expand Down
63 changes: 0 additions & 63 deletions agent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -154,66 +154,3 @@ tasks.register('javadocJar', Jar) {
}
archiveClassifier.set("javadoc")
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = "${archivesBaseName}"
description = "${archivesBaseName}"
url = "www.solarwinds.com"
scm {
url = 'https://github.com/solarwinds/apm-java/'
}
developers {
developer {
id = 'APM'
name = 'The APM Library team'
}
}
licenses {
license {
name = 'Apache License, Version 2.0'
}
}
groupId = 'com.solarwinds'
artifactId = "${archivesBaseName}"
version = "${versions.agent}"
from components.java
artifact sourcesJar
artifact javadocJar
}
}

publishToMavenLocal
}
repositories {
// -- uncomment the lines below to publish the agent artifact to the Maven central --
// maven {
// name = "OSSRH"
// url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
// credentials {
// username = System.getenv("SONATYPE_USERNAME")
// password = System.getenv("SONATYPE_TOKEN")
// }
// }
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/solarwinds-cloud/maven-releases"
credentials {
username = System.getenv("GITHUB_USERNAME")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

signing {
setRequired {
gradle.taskGraph.allTasks.any { (it.getClass() == PublishToMavenRepository.class) }
}
def signingKey = System.getenv("GPG_PRIVATE_KEY")
def signingPassword = System.getenv("GPG_PRIVATE_KEY_PASSPHRASE")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
13 changes: 5 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ subprojects {
opentelemetryJavaagent: "2.4.0",
bytebuddy : "1.12.10",
guava : "30.1-jre",
joboe : "10.0.5",
joboe: "10.0.5",
agent : "2.4.0", // the custom distro agent version
autoservice : "1.0.1",
caffeine : "2.9.3",
json : "20231013",
]
versions.opentelemetryAlpha = "${versions.opentelemetry}-alpha"
versions.opentelemetrySemconv = "1.21.0-alpha"
Expand All @@ -66,15 +67,11 @@ subprojects {
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
maven {
url = uri("https://maven.pkg.github.com/solarwinds-cloud/maven-releases")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
mavenLocal()
mavenCentral()
flatDir {
dirs("$rootDir/libs")
}
}

dependencies {
Expand Down
3 changes: 2 additions & 1 deletion custom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ dependencies {
annotationProcessor 'com.google.auto.service:auto-service:1.0.1'

testImplementation project(path: ":custom:shared")
testImplementation("org.json:json:20231013")
testImplementation("org.json:json:${versions.json}")
testImplementation "com.solarwinds.joboe:core:${versions.joboe}"
}

tasks.withType(Checkstyle).configureEach {
Expand Down
4 changes: 3 additions & 1 deletion custom/lambda/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.28'
compileOnly "com.solarwinds.joboe:config:${versions.joboe}"
compileOnly "com.solarwinds.joboe:sampling:${versions.joboe}"
compileOnly "com.solarwinds.joboe:logging:${versions.joboe}"

annotationProcessor 'com.google.auto.service:auto-service:1.0.1'
compileOnly "com.google.auto.service:auto-service-annotations:1.0.1"
Expand All @@ -35,7 +36,8 @@ dependencies {
compileOnly("io.opentelemetry.javaagent:opentelemetry-javaagent-extension-api:${versions.opentelemetryJavaagentAlpha}")

testImplementation project(path: ":custom:shared")
testImplementation("org.json:json:20231013")
testImplementation "org.json:json:${versions.json}"
testImplementation "com.solarwinds.joboe:sampling:${versions.joboe}"
}

test {
Expand Down
5 changes: 4 additions & 1 deletion custom/shared/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ dependencies {
compileOnly("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling:${versions.opentelemetryJavaagentAlpha}")
compileOnly("io.opentelemetry.javaagent:opentelemetry-javaagent-extension-api:${versions.opentelemetryJavaagentAlpha}")

implementation "org.json:json:${versions.json}"
implementation "com.google.code.gson:gson:2.10.1"
implementation "com.github.ben-manes.caffeine:caffeine:${versions.caffeine}"
testImplementation("org.json:json:20231013")

testImplementation("org.json:json:${versions.json}")
testImplementation "com.solarwinds.joboe:sampling:${versions.joboe}"
}

test {
Expand Down
4 changes: 3 additions & 1 deletion instrumentation/jdbc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ apply from: "$rootDir/gradle/instrumentation.gradle"
dependencies {
compileOnly project(":bootstrap")
compileOnly "com.solarwinds.joboe:config:${versions.joboe}"
compileOnly "io.opentelemetry:opentelemetry-sdk-trace:${versions.opentelemetry}"
compileOnly "com.solarwinds.joboe:logging:${versions.joboe}"
compileOnly "org.json:json:${versions.json}"

compileOnly "io.opentelemetry:opentelemetry-sdk-trace:${versions.opentelemetry}"
compileOnly "io.opentelemetry.semconv:opentelemetry-semconv:${versions.opentelemetrySemconv}"
compileOnly "com.github.ben-manes.caffeine:caffeine:${versions.caffeine}"

Expand Down
Binary file added libs/config-10.0.5.jar
Binary file not shown.
Binary file added libs/core-10.0.5.jar
Binary file not shown.
Binary file added libs/logging-10.0.5.jar
Binary file not shown.
Binary file added libs/metrics-10.0.5.jar
Binary file not shown.
Binary file added libs/sampling-10.0.5.jar
Binary file not shown.
8 changes: 0 additions & 8 deletions solarwinds-otel-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,6 @@ publishing {
password = System.getenv("SONATYPE_TOKEN")
}
}
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/solarwinds-cloud/maven-releases"
credentials {
username = System.getenv("GITHUB_USERNAME")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

Expand Down

0 comments on commit 1aad98c

Please sign in to comment.