Skip to content

Commit 315948c

Browse files
committed
Fix some issues reported by Gradle about the build script
1 parent 1201867 commit 315948c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ buildscript {
3232
}
3333

3434
plugins { id 'com.diffplug.spotless' version "6.23.3" apply false }
35-
plugins { id 'me.champeau.jmh' version '0.6.8' apply false }
35+
plugins { id 'me.champeau.jmh' version '0.7.2' apply false }
3636
plugins { id 'org.sonarqube' version '4.3.1.3277' apply false }
3737

3838
description = 'ASM, a very small and fast Java bytecode manipulation framework'
@@ -54,8 +54,10 @@ subprojects {
5454
repositories { mavenCentral() }
5555
apply plugin: 'java-library'
5656
apply plugin: 'jacoco'
57-
sourceCompatibility = '11'
58-
targetCompatibility = '11'
57+
java {
58+
sourceCompatibility = '11'
59+
targetCompatibility = '11'
60+
}
5961
test { useJUnitPlatform() }
6062
ext.provides = [] // The provided java packages, e.g. ['org.objectweb.asm']
6163
ext.requires = [] // The required Gradle projects, e.g. [':asm-test']
@@ -168,8 +170,10 @@ project(':tools') {
168170

169171
project(':tools:retrofitter') {
170172
description = "JDK 1.5 class retrofitter based on ${rootProject.description}"
171-
sourceCompatibility = '11'
172-
targetCompatibility = '11'
173+
java {
174+
sourceCompatibility = '11'
175+
targetCompatibility = '11'
176+
}
173177
// TODO: this compiles asm twice (here and in :asm).
174178
sourceSets.main.java.srcDirs += project(':asm').sourceSets.main.java.srcDirs
175179
}

0 commit comments

Comments
 (0)