On Wed, 9 Sep 2026 07:34:44 GMT, Nir Lisker <[email protected]> wrote:

> * Updated the `java` plugin to the `java-library` plugin, which allows 
> automatic library configurations. It has no effect in this PR, but is a 
> necessary step for correct dependency wiring.
> * Moved (as-is) the block that defines module paths above the `allprojects` 
> configuration to make the paths available for later code.
> * Unified the `ext` properties, module source paths, and verification checks 
> configurations for modular projects in `allprojects` (from their repeating 
> individual blocks).
> * Removed redundant source sets: the `java` plugin already defines the 
> [`main` and `test` source 
> sets](https://docs.gradle.org/current/userguide/java_plugin.html#source_sets) 
> and makes the project dependent on them. The `shims` are already configured 
> separately in the other `allprojects` with 
> `project.sourceSets.shims.java.srcDirs += 
> project.sourceSets.main.java.srcDirs` etc. (which is also not the right way 
> of doing it), so their current definition is redundant.
> 
> I've tested with `win.gradle`'s `WIN.compileSwing = false` and with 
> `WIN.compileSWT = false` in addition to the standard `sdk` and `test` in 
> various scenarios.
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

I don't have IntelliJ so it's hard to know what's going on there. Try to revert 
to the manual shims configuration:

        shims {
            java {
                compileClasspath += sourceSets.main.output
                runtimeClasspath += sourceSets.main.output
            }
        }

I don't know where else that change could have come from. The other properties, 
such as `project.ext.defaultModuleSourcePathShim`, were copied as-is so that 
they are available to the configuration below it. Maybe that somehow trips the 
IDE.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2305#issuecomment-6772561290

Reply via email to