* 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).

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

Commit messages:
 - Replace module flag
 - Merge branch 'master' into 8391905_Consolidate_modular_projects_configuration
 - Initial commit
 - Add toolchain also for root
 - Whitespaces
 - Remove CLI execs
 - Add the toolchain

Changes: https://git.openjdk.org/jfx/pull/2305/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2305&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8391905
  Stats: 295 lines in 1 file changed: 47 ins; 238 del; 10 mod
  Patch: https://git.openjdk.org/jfx/pull/2305.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2305/head:pull/2305

PR: https://git.openjdk.org/jfx/pull/2305

Reply via email to