Browse Source

Temporarily downgrade Java compat level for AspectJ classes

AspectJ doesn't support JDK17 language level (yet).
For the time being, this commit is downgrading the language level for
the aspectJ generated classes to 1.8.

See gh-27416
pull/27419/head
Brian Clozel 3 years ago
parent
commit
4e3d1fa4e9
  1. 2
      build.gradle
  2. 9
      spring-aspects/spring-aspects.gradle

2
build.gradle

@ -6,7 +6,7 @@ plugins { @@ -6,7 +6,7 @@ plugins {
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'org.asciidoctor.jvm.pdf' version '3.3.2'
id 'de.undercouch.download' version '4.1.2'
id "io.freefair.aspectj" version '6.1.0' apply false
id "io.freefair.aspectj" version '6.2.0' apply false
id "com.github.ben-manes.versions" version '0.39.0'
id "com.github.johnrengelman.shadow" version '7.0.0' apply false
id "me.champeau.jmh" version "0.6.6" apply false

9
spring-aspects/spring-aspects.gradle

@ -10,6 +10,15 @@ sourceSets.test.java.srcDirs = files() @@ -10,6 +10,15 @@ sourceSets.test.java.srcDirs = files()
aspectj.version = dependencyManagement.managedVersions['org.aspectj:aspectjweaver']
compileAspectj {
sourceCompatibility "1.8"
targetCompatibility "1.8"
}
compileTestAspectj {
sourceCompatibility "1.8"
targetCompatibility "1.8"
}
dependencies {
api("org.aspectj:aspectjweaver")
compileOnly("org.aspectj:aspectjrt")

Loading…
Cancel
Save