File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,16 @@ repositories {
28
28
mavenCentral()
29
29
}
30
30
31
+ def lombokPlugin = System . getenv(). getOrDefault(' LOMBOK_PLUGIN_VERSION' , ' lombok' )
32
+ switch (System . getenv(). getOrDefault(' IDEA_VERSION' , ideaVersion)) {
33
+ case ~/ 2020\. 1.*/ :
34
+ lombokPlugin = ' Lombook Plugin:0.34-2020.1'
35
+ break
36
+ case ~/ 2020\. 2.*/ :
37
+ lombokPlugin = ' Lombook Plugin:0.34-2020.2'
38
+ break
39
+ }
40
+
31
41
intellij {
32
42
version = System . getenv(). getOrDefault(' IDEA_VERSION' , ideaVersion)
33
43
type = ideaType
@@ -37,7 +47,7 @@ intellij {
37
47
pluginName = ' MapStruct-Intellij-Plugin'
38
48
// The properties plugin is needed because Kotlin uses it
39
49
// and for some reason plugins does not transitively pull itx
40
- plugins = [' java' , ' Kotlin' , ' properties' , ' Lombook Plugin:0.34-2020.1 ' ]
50
+ plugins = [' java' , ' Kotlin' , ' properties' , lombokPlugin ]
41
51
}
42
52
43
53
compileKotlin {
You can’t perform that action at this time.
0 commit comments