File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,16 @@ repositories {
2828 mavenCentral()
2929}
3030
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+
3141intellij {
3242 version = System . getenv(). getOrDefault(' IDEA_VERSION' , ideaVersion)
3343 type = ideaType
@@ -37,7 +47,7 @@ intellij {
3747 pluginName = ' MapStruct-Intellij-Plugin'
3848 // The properties plugin is needed because Kotlin uses it
3949 // 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 ]
4151}
4252
4353compileKotlin {
You can’t perform that action at this time.
0 commit comments