@@ -12,6 +12,7 @@ buildscript {
1212plugins {
1313 id " java"
1414 id " org.springframework.boot" version " 3.3.1"
15+ id " org.springframework.boot.aot" version " 3.3.1"
1516 id " idea"
1617 id " com.adarshr.test-logger" version " 4.0.0"
1718}
@@ -39,7 +40,7 @@ configurations {
3940
4041idea {
4142 module {
42- testSourceDirs + = file(' src/inttest/java' )
43+ testSources = files( file(" src/test/java " ), file( " src/ inttest/java" ) )
4344 }
4445}
4546
@@ -66,7 +67,7 @@ configurations {
6667}
6768
6869
69- task inttest ( type : Test ) {
70+ tasks . register( ' inttest ' , Test ) {
7071 group = LifecycleBasePlugin . VERIFICATION_GROUP
7172 description = " Runs the integration tests."
7273
@@ -105,13 +106,14 @@ configurations {
105106 codacy
106107}
107108
108- task sendCoverageToCodacy (type : JavaExec , dependsOn : jacocoTestReport) {
109+ tasks. register(' sendCoverageToCodacy' , JavaExec ) {
110+ dependsOn jacocoTestReport
109111 mainClass = " com.codacy.CodacyCoverageReporter"
110112 classpath = configurations. codacy
111113 args = [" report" , " -l" , " Java" , " -r" , " ${ buildDir} /reports/jacoco/test/jacocoTestReport.xml" ]
112114}
113115
114- configurations. all {
116+ configurations. configureEach {
115117 // Cache -SNAPSHOT for 60 seconds only
116118 resolutionStrategy. cacheChangingModulesFor 60 , ' seconds'
117119}
0 commit comments