Skip to content

Commit

Permalink
Try a more minimal publish for test time
Browse files Browse the repository at this point in the history
  • Loading branch information
rnc committed Oct 4, 2024
1 parent 30a5e3a commit bcfcbb5
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,17 @@ public void testOpenTelemetryJavaInstrumentation() throws IOException, URISyntax

final BuildResult buildResult = TestUtils.createGradleRunner()
.withProjectDir(opentelemetryProjectRoot)
.withArguments("-q", "-Potel.stable=true", "-Dorg.gradle.java.home=" + JDK17_DIR, "publish", "-x", "test", "-x",
"spotlessCheck", "-x", "checkstyleMain", "-x", "javadoc")
.withArguments("-q", "-Potel.stable=true", "-Dorg.gradle.java.home=" + JDK17_DIR,
"--no-parallel", ":bom:publish")
// "publish", "-x", "test", "-x", "spotlessCheck", "-x", "checkstyleMain", "-x", "javadoc")
.forwardOutput()
.withDebug(false)
.withPluginClasspath()
.build();

assertThat(buildResult.task(":bom:publish").getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
assertThat(new File(publishDirectory,
"io/opentelemetry/javaagent/opentelemetry-javaagent/2.5.0.redhat-00001/opentelemetry-javaagent-2.5.0.redhat-00001.jar"))
"io/opentelemetry/instrumentation/opentelemetry-instrumentation-bom/2.5.0.redhat-00001/opentelemetry-instrumentation-bom-2.5.0.redhat-00001.pom"))
.exists();
}
}

0 comments on commit bcfcbb5

Please sign in to comment.