@@ -18,6 +18,7 @@ package com.netflix.nebula.lint.rule.dependency
18
18
import nebula.test.IntegrationTestKitSpec
19
19
import nebula.test.dependencies.Coordinate
20
20
import nebula.test.dependencies.maven.Pom
21
+ import spock.lang.IgnoreIf
21
22
import spock.lang.Subject
22
23
import spock.lang.Unroll
23
24
@@ -26,7 +27,7 @@ class UndeclaredDependencyRuleSpec extends IntegrationTestKitSpec {
26
27
private static final def sample = new Coordinate (' sample' , ' alpha' , ' 1.0' )
27
28
private static final def commonsLogging = new Coordinate (' commons-logging' , ' commons-logging' , ' 1.2' )
28
29
private static final def commonsLang = new Coordinate (' commons-lang' , ' commons-lang' , ' 2.6' )
29
- private static final def lombok = new Coordinate (' org.projectlombok' , ' lombok' , ' 1.18.22 ' )
30
+ private static final def lombok = new Coordinate (' org.projectlombok' , ' lombok' , ' 1.18.30 ' )
30
31
private static final def junit = new Coordinate (' junit' , ' junit' , ' 4.12' )
31
32
32
33
def main = '''
@@ -134,6 +135,7 @@ class UndeclaredDependencyRuleSpec extends IntegrationTestKitSpec {
134
135
}
135
136
136
137
@Unroll
138
+ @IgnoreIf ({ jvm.isJava21() })
137
139
def ' adds dependencies alphabetically for #configuration configuration' () {
138
140
given :
139
141
def repo = new File (projectDir, ' repo' )
@@ -157,7 +159,7 @@ class UndeclaredDependencyRuleSpec extends IntegrationTestKitSpec {
157
159
}
158
160
}
159
161
dependencies {
160
- classpath "io.freefair.gradle:lombok-plugin:6.6.1 "
162
+ classpath "io.freefair.gradle:lombok-plugin:8.3 "
161
163
}
162
164
}
163
165
@@ -645,6 +647,7 @@ class UndeclaredDependencyRuleSpec extends IntegrationTestKitSpec {
645
647
sample | ' compile'
646
648
}
647
649
650
+ @IgnoreIf ({ jvm.isJava21() })
648
651
def ' when using compileOnly configuration, transitives are resolved before linting so no changes are made' () {
649
652
given :
650
653
def repo = new File (projectDir, ' repo' )
@@ -665,7 +668,7 @@ class UndeclaredDependencyRuleSpec extends IntegrationTestKitSpec {
665
668
}
666
669
}
667
670
dependencies {
668
- classpath "io.freefair.gradle:lombok-plugin:6.6.1 "
671
+ classpath "io.freefair.gradle:lombok-plugin:8.3 "
669
672
}
670
673
}
671
674
0 commit comments