File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test-published-dependencies Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ dependencies {
1919 testImplementation(' org.junit.jupiter:junit-jupiter' )
2020}
2121
22- test {
22+ tasks . named( " test" ) {
2323 dependsOn(' jar' )
2424 useJUnitPlatform()
2525 testLogging {
2929 jvmArgs " -Dtest.published.dependencies.jar=${ tasks.jar.archiveFile.get()} "
3030}
3131
32- jar {
32+ tasks . named( " jar" ) {
3333 manifest {
3434 attributes(' Main-Class' : ' test.published.dependencies.App' )
3535 }
@@ -39,7 +39,7 @@ application {
3939 mainClass = ' test.published.dependencies.App'
4040}
4141
42- compileTestJava {
42+ tasks . named( " compileTestJava" ) {
4343 sourceCompatibility = JavaVersion . VERSION_1_8
4444 targetCompatibility = JavaVersion . VERSION_1_8
4545}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ dependencies {
1313 testImplementation(' org.junit.jupiter:junit-jupiter' )
1414}
1515
16- test {
16+ tasks . named( " test" ) {
1717 useJUnitPlatform()
1818 testLogging {
1919 events " passed" , " skipped" , " failed"
You can’t perform that action at this time.
0 commit comments