@@ -100,19 +100,22 @@ allprojects {
100100
101101 // Configure JUnit tests
102102 tasks. withType(Test ) {
103- reports. junitXml. destination = project. file(" ${ ->project.buildDir} /test-results" )
103+ reports. junitXml. outputLocation = project. file(" ${ ->project.buildDir} /test-results" )
104104 }
105105
106+ def projectName = it. name
107+ def projectVersion = it. version
108+
106109 // Configure JAR generation
107110 tasks. jar. configure {
108111 description = " Produces a Jar with the main classes in .out/."
109112 manifest {
110113 attributes " Built-JDK" : System . getProperty(" java.version" ),
111- " Specification-Title" : project . name ,
112- " Specification-Version" : " ${ -> project.version } " ,
114+ " Specification-Title" : projectName ,
115+ " Specification-Version" : " ${ -> projectVersion } " ,
113116 " Specification-Vendor" : " Apple Inc." ,
114- " Implementation-Title" : project . name ,
115- " Implementation-Version" : " ${ -> project.version } " ,
117+ " Implementation-Title" : projectName ,
118+ " Implementation-Version" : " ${ -> projectVersion } " ,
116119 " Implementation-Vendor" : " Apple Inc."
117120 }
118121 doFirst {
@@ -182,8 +185,10 @@ allprojects {
182185subprojects {
183186 apply from : rootProject. file(' gradle/testing.gradle' )
184187
185- sourceCompatibility = JavaVersion . VERSION_11
186- targetCompatibility = JavaVersion . VERSION_11
188+ java {
189+ sourceCompatibility = JavaVersion . VERSION_11
190+ targetCompatibility = JavaVersion . VERSION_11
191+ }
187192
188193 def publishBuild = Boolean . parseBoolean(findProperty(' publishBuild' ) ?: ' false' )
189194 def autoServiceVersion = publishBuild ? libs. versions. autoService. asProvider(). get() : libs. versions. autoService. development. get()
0 commit comments