Skip to content

Commit 2029c99

Browse files
committed
move test app to separate sourceset
1 parent 927fee2 commit 2029c99

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

jmx-scraper/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ testing {
4343
}
4444
}
4545

46+
sourceSets {
47+
create("testApp") {
48+
}
49+
}
50+
4651
tasks {
4752
shadowJar {
4853
mergeServiceFiles()
@@ -75,7 +80,7 @@ tasks {
7580
}
7681

7782
tasks.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"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
import javax.management.MBeanServer;
1010
import javax.management.ObjectName;
1111

12+
@SuppressWarnings("all") // for busy wait + stdout
1213
public 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()) {

0 commit comments

Comments
 (0)