build plugin(lombok) for intellij idea 2019

Answered

I'm trying to build the `lombok` plugin (because the market's is not up to date). So I downloaded the source from `github` and when I import the idea, I get the following exception:

> Configure project :
IdeaVersion is : 2019.2
ArtifactVersion is : 0.35-2019.2
Building for IntelliJ version: 2019.2
Generating Parser for GrammerKit: 2020.1
Generating Lexer for JFlexRelease: 1.7.0-1

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'lombok-plugin'.
> Failed to notify project evaluation listener.
   > Could not resolve all files for configuration ':compileOnly'.
      > Could not resolve com.jetbrains:ideaIC:2019.2.
        Required by:
            project :
         > Could not resolve com.jetbrains:ideaIC:2019.2.
            > Could not get resource 'https://jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/ideaIC/2019.2/ideaIC-2019.2.pom'.
               > Could not GET 'https://jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/ideaIC/2019.2/ideaIC-2019.2.pom'. Received status code 502 from server: Bad Gateway
      > Could not resolve unzipped.com.jetbrains.plugins:java:ideaIC-IC-192.5728.98-withSources.
        Required by:
            project :
         > Could not resolve unzipped.com.jetbrains.plugins:java:ideaIC-IC-192.5728.98-withSources.
            > Could not get resource 'https://jetbrains.bintray.com/intellij-third-party-dependencies/unzipped/com/jetbrains/plugins/java/ideaIC-IC-192.5728.98-withSources/java-ideaIC-IC-192.5728.98-withSources.pom'.
               > Could not GET 'https://jetbrains.bintray.com/intellij-third-party-dependencies/unzipped/com/jetbrains/plugins/java/ideaIC-IC-192.5728.98-withSources/java-ideaIC-IC-192.5728.98-withSources.pom'. Received status code 502 from server: Bad Gateway
   > Could not resolve all files for configuration ':compileOnly'.
      > Could not resolve com.jetbrains:ideaIC:2019.2.
        Required by:
            project :
         > Could not resolve com.jetbrains:ideaIC:2019.2.
            > Could not get resource 'https://jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/ideaIC/2019.2/ideaIC-2019.2.pom'.
               > Could not GET 'https://jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/ideaIC/2019.2/ideaIC-2019.2.pom'. Received status code 502 from server: Bad Gateway
      > Could not resolve unzipped.com.jetbrains.plugins:java:ideaIC-IC-192.5728.98-withSources.
        Required by:
            project :
         > Could not resolve unzipped.com.jetbrains.plugins:java:ideaIC-IC-192.5728.98-withSources.
            > Could not get resource 'https://jetbrains.bintray.com/intellij-third-party-dependencies/unzipped/com/jetbrains/plugins/java/ideaIC-IC-192.5728.98-withSources/java-ideaIC-IC-192.5728.98-withSources.pom'.
               > Could not GET 'https://jetbrains.bintray.com/intellij-third-party-dependencies/unzipped/com/jetbrains/plugins/java/ideaIC-IC-192.5728.98-withSources/java-ideaIC-IC-192.5728.98-withSources.pom'. Received status code 502 from server: Bad Gateway

 

build.gradle (changelist)

gradle.properties(changelist)

setting.gradle(changelist)

project structure

5 comments
Comment actions Permalink

Lombok plugin is bundled in IntelliJ IDEA. Why do you need to build it separately?

0
Comment actions Permalink

Because this version does not support the latest lombok configuration. For example `lombok.accessors.capitalization`, in the IDE, the `get/set` method generated by the property `xAxis` is `getXAxis/setXAxis`, but I use maven to generate `getxAxis/setxAxis`. Refer to the lombok link

0
Comment actions Permalink

I'm afraid but JetBrains doesn't support the original Lombok plugin project. For sure, some updates are required in the build script. e.g. IntelliJ Gradle Plugin version https://github.com/mplushnikov/lombok-intellij-plugin/blob/master/build.gradle#L2

0
Comment actions Permalink

I know there is a problem with the build script, I have searched  `org.jetbrains.intellij.gradle.plugin` in internet, but found nothing. I  have no idea to make my first build plugin work. Could you have any suggestions?

0

Please sign in to leave a comment.