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 {
7
7
8
8
val aiSmokeTest = extensions.getByType(AiSmokeTestExtension ::class )
9
9
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 {
13
13
14
14
val aiSmokeTest = extensions.getByType(AiSmokeTestExtension ::class )
15
15
16
- aiSmokeTest.testAppArtifactDir.set(tasks.getByName< War >( " war" ).destinationDirectory.get() )
16
+ aiSmokeTest.testAppArtifactDir.set(tasks.war.flatMap { it.destinationDirectory } )
17
17
aiSmokeTest.testAppArtifactFilename.set(project.name + " .war" )
18
18
19
19
dependencies {
You can’t perform that action at this time.
0 commit comments