7.0Beta, Adding lombok kills the plugin

Hi,

Adding this to build.gradle and restarting CUBA Studio 7 BETA 2 results in all CUBA features disappearing (CUBA menu and CUBA projectview do not show up) [add right above “def modulePrefix”:

plugins {
    id 'io.franzbecker.gradle-lombok' version '1.14'
    id 'java'
}

lombok {
    version = '1.18.4'
    sha256 = ""
}

Adding lombok support without the gradle plugin does work (which implies adding the plugins {} blog with another plugin in it).

Am I doing something wrong or is this normal?

Hi,
we use Lombok with 6.10.x without the module, may be it will help you. Use an imported Gradle project without IDEA project generation, turn ON delegation to Gradle (Setttings->Gradle->Runner). Turn OFF annotation processing in IDEA.

buildscript {
    ext.cubaVersion = '6.10.3'
...
    repositories {
       ...
        mavenCentral()
    }
...
}
...
configure([globalModule, coreModule, webModule]) {
    apply(plugin: 'java')
...

    dependencies {
        compileOnly 'org.projectlombok:lombok:1.18.2'
        testCompileOnly 'org.projectlombok:lombok:1.18.2'
...
}

Regards,
Ilia.

Hi!

The problem with your CUBA project resolving caused by buildUberJar task defined in gradle-lombok plugin (see issue).

As a workaround you can add empty buildUberJar task to your project:

task buildUberJar(type: CubaUberJarBuilding) {
}

2 Likes