File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
com/microsoft/applicationinsights/gradle
smoke-tests/apps/ReadOnly/src/main/java/com/microsoft/applicationinsights/smoketestapp Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ plugins {
99
1010val aiSmokeTest = extensions.getByType(AiSmokeTestExtension ::class )
1111
12- aiSmokeTest.mainClass.convention(" com.microsoft.applicationinsights.smoketestapp.SpringBootApp" )
13-
1412val shadowJar = tasks.named<ShadowJar >(" shadowJar" ) {
1513 archiveClassifier.set(" " )
1614 archiveVersion.set(" " )
@@ -23,7 +21,7 @@ val shadowJar = tasks.named<ShadowJar>("shadowJar") {
2321 mergeServiceFiles(" META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports" )
2422
2523 manifest {
26- attributes[" Main-Class" ] = aiSmokeTest.mainClass.get()
24+ attributes[" Main-Class" ] = " com.microsoft.applicationinsights.smoketestapp.SpringBootApp "
2725 }
2826}
2927
Original file line number Diff line number Diff line change @@ -10,6 +10,4 @@ abstract class AiSmokeTestExtension {
1010 abstract val testAppArtifactFilename: Property <String >
1111
1212 abstract val dependencyContainers: ListProperty <String >
13-
14- abstract val mainClass: Property <String >
1513}
Original file line number Diff line number Diff line change 88
99// Spring boot doesn't support read-only containers
1010// (https://github.com/spring-projects/spring-boot/issues/8578)
11- public class App {
11+ public class SpringBootApp {
1212
1313 private static final Logger logger = Logger .getLogger ("smoketestapp" );
1414
You can’t perform that action at this time.
0 commit comments