gradle-intellij-plugin JPS/builderservice - JPS not working

Answered

Hi all,

I am struggling update to the most recent version of the gradle and from the Groovy to the Kotlin DSL.

I fail to add the dependency/ies needed for the builderservice. None of the org.jetbrains.jps.incremental.* imports work.

In the groovy version of gradle things worked with

intellij { 

    version = "2020.1" 

    type = 'jps' 

    plugins = ['java'] 

}

This seems no longer valid with the newer version of the plugin. 

intellij { 

    version.set("2023.1.5") 

    type.set("JPS") // ←-- NOT OK

    plugins.set(listOf(/*"jps"*/)) 

}

Results in: 

             BuildException: Specified type 'JPS' is unknown. Supported values: AI, CL, GW, GO, IC, IU, PS, PY, PC, RD, RR, FLIJ

I'm looking for pointers; example on github, documents I missed..   I already asked on the slack channel but had no luck there.

Any help much appreciated.

Best regards,

Johan

 

1
2 comments

Hi Johan,

JPS is provided as part of the Java plugin, so please try:

intellij { 
    version.set("2023.1.5") 
    type.set("IC") // ←-- IntelliJ IDEA Community
    plugins.set(listOf("com.intellij.java"))
}
0

Thank you very much Karol, it seems work! 

Regards,

Johan

0

Please sign in to leave a comment.