File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ plugins {
77
88val aiSmokeTest = extensions.getByType(AiSmokeTestExtension ::class )
99
10- aiSmokeTest.testAppArtifactDir.set(tasks.getByName< Jar >( " bootJar" ).destinationDirectory.get() )
11- aiSmokeTest.testAppArtifactFilename.set(tasks.getByName< Jar >( " bootJar" ).archiveFileName.get() )
10+ aiSmokeTest.testAppArtifactDir.set(tasks.bootJar.flatMap { it.destinationDirectory } )
11+ aiSmokeTest.testAppArtifactFilename.set(tasks.bootJar.flatMap { it.archiveFileName } )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ tasks.war {
1313
1414val aiSmokeTest = extensions.getByType(AiSmokeTestExtension ::class )
1515
16- aiSmokeTest.testAppArtifactDir.set(tasks.getByName< War >( " war" ).destinationDirectory.get() )
16+ aiSmokeTest.testAppArtifactDir.set(tasks.war.flatMap { it.destinationDirectory } )
1717aiSmokeTest.testAppArtifactFilename.set(project.name + " .war" )
1818
1919dependencies {
You can’t perform that action at this time.
0 commit comments