File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
src/testApp/java/io/opentelemetry/contrib/jmxscraper Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ testing {
4343 }
4444}
4545
46+ sourceSets {
47+ create(" testApp" ) {
48+ }
49+ }
50+
4651tasks {
4752 shadowJar {
4853 mergeServiceFiles()
@@ -75,7 +80,7 @@ tasks {
7580}
7681
7782tasks.register<Jar >(" appJar" ) {
78- from(sourceSets.get(" integrationTest " ).output)
83+ from(sourceSets.get(" testApp " ).output)
7984 archiveClassifier.set(" app" )
8085 manifest {
8186 attributes[" Main-Class" ] = " io.opentelemetry.contrib.jmxscraper.TestApp"
Original file line number Diff line number Diff line change 99import javax .management .MBeanServer ;
1010import javax .management .ObjectName ;
1111
12+ @ SuppressWarnings ("all" ) // for busy wait + stdout
1213public class TestApp implements TestAppMXBean {
1314
1415 private volatile boolean running ;
1516
16- @ SuppressWarnings ("BusyWait" )
1717 public static void main (String [] args ) {
1818 TestApp app = TestApp .start ();
1919 while (app .isRunning ()) {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments