You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin is maintained by me, [Jendrik Johannes](https://github.com/jjohannes).
19
+
This [GradleX](https://gradlex.org)plugin is maintained by me, [Jendrik Johannes](https://github.com/jjohannes).
17
20
I offer consulting and training for Gradle and/or the Java Module System - please [reach out](mailto:jendrik.johannes@gmail.com) if you are interested.
18
21
There is also my [YouTube channel](https://www.youtube.com/playlist?list=PLWQK2ZdV4Yl2k2OmC_gsjDpdIBTN0qqkE) on Gradle topics.
19
22
20
-
If you have a suggestion or a question, please [open an issue](https://github.com/jjohannes/java-module-dependencies/issues/new).
23
+
If you have a suggestion or a question, please [open an issue](https://github.com/gradlex-org/java-module-dependencies/issues/new).
21
24
22
25
There is a [CHANGELOG.md](CHANGELOG.md).
23
26
24
27
# Java Modules with Gradle
25
28
26
29
If you plan to build Java Modules with Gradle, you should consider using these plugins on top of Gradle core:
Only if your (existing) project cannot avoid using non-module legacy Jars
34
37
35
-
[Here is a sample](https://github.com/jjohannes/java-module-testing/tree/main/samples/use-all-java-module-plugins)
38
+
[Here is a sample](https://github.com/gradlex-org/java-module-testing/tree/main/samples/use-all-java-module-plugins)
36
39
that shows all plugins in combination.
37
40
38
41
[Full Java Module System Project Setup](https://github.com/jjohannes/gradle-project-setup-howto/tree/java_module_system) is a full-fledged Java Module System project setup using these plugins.
@@ -51,11 +54,11 @@ you can check out my [Understanding Gradle video series](https://www.youtube.com
51
54
## Plugin dependency
52
55
53
56
Add this to the build file of your convention plugin's build
54
-
(e.g. `build-logic/build.gradle(.kts)` or `buildSrc/build.gradle(.kts)`).
57
+
(e.g. `gradle/plugins/build.gradle(.kts)` or `buildSrc/build.gradle(.kts)`).
@@ -66,7 +69,7 @@ In your convention plugin, apply the plugin.
66
69
```
67
70
plugins {
68
71
...
69
-
id("de.jjohannes.java-module-dependencies")
72
+
id("org.gradlex.java-module-dependencies")
70
73
}
71
74
```
72
75
@@ -76,8 +79,8 @@ You may define additional mappings from _Module Name_ to _group:name (GA) coordi
76
79
77
80
The plugin already knows about Modules available on Maven Central. The information is stored in:
78
81
79
-
-[modules.properties](src/main/resources/de/jjohannes/gradle/moduledependencies/modules.properties) - [please open a PR](https://github.com/jjohannes/extra-java-module-info/pulls) if you miss an entry
80
-
-[unique_modules.properties](src/main/resources/de/jjohannes/gradle/moduledependencies/unique_modules.properties) - this information is extracted from [modules.properties](https://github.com/sormuras/modules/blob/main/com.github.sormuras.modules/com/github/sormuras/modules/modules.properties) by [@sormuras](https://github.com/sormuras)
82
+
-[modules.properties](src/main/resources/org/gradlex/javamodule/dependencies/modules.properties) - [please open a PR](https://github.com/gradlex-org/extra-java-module-info/pulls) if you miss an entry
83
+
-[unique_modules.properties](src/main/resources/org/gradlex/javamodule/dependencies/unique_modules.properties) - this information is extracted from [modules.properties](https://github.com/sormuras/modules/blob/main/com.github.sormuras.modules/com/github/sormuras/modules/modules.properties) by [@sormuras](https://github.com/sormuras)
81
84
82
85
You can define additional entries (or overwrite entries from the plugin) as follows:
83
86
@@ -116,7 +119,7 @@ For libraries that consist of multiple components and have a BOM for version man
116
119
```
117
120
plugins {
118
121
id("java-platform")
119
-
id("de.jjohannes.java-module-dependencies")
122
+
id("org.gradlex.java-module-dependencies")
120
123
}
121
124
122
125
// Define versions for Modules via the Module Name
- This may be ok if you use the Classpath (aka ALL-UNNAMED) in addition to the Module Path (automatic modules can see ALL-UNNAMED)
256
259
- Remove the dependencies or upgrade to higher versions
257
-
- Patch legacy Jars to Modules: https://github.com/jjohannes/extra-java-module-info
260
+
- Patch legacy Jars to Modules: https://github.com/gradlex-org/extra-java-module-info
258
261
```
259
262
260
263
## Migrate existing Java projects to Java Modules
@@ -266,13 +269,13 @@ This is not a sophisticated migration tool, but useful, in combination with `ana
266
269
267
270
## Integration with the Extra Java Module Info plugin
268
271
269
-
This plugin integrates with the [Extra Java Module Info](https://github.com/jjohannes/extra-java-module-info) plugin if both are applied.
272
+
This plugin integrates with the [Extra Java Module Info](https://github.com/gradlex-org/extra-java-module-info) plugin if both are applied.
270
273
Module Name mappings for Jars that were patched with extra module info will be automatically registered.
271
274
272
275
```
273
276
plugins {
274
-
id("de.jjohannes.extra-java-module-info")
275
-
id("de.jjohannes.java-module-dependencies")
277
+
id("org.gradlex.extra-java-module-info")
278
+
id("org.gradlex.java-module-dependencies")
276
279
}
277
280
278
281
extraJavaModuleInfo {
@@ -296,3 +299,7 @@ feature of Gradle, the result of the configuration phase is cached, avoiding par
296
299
org.gradle.unsafe.configuration-cache=true
297
300
```
298
301
302
+
# Disclaimer
303
+
304
+
Gradle and the Gradle logo are trademarks of Gradle, Inc.
305
+
The GradleX project is not endorsed by, affiliated with, or associated with Gradle or Gradle, Inc. in any way.
0 commit comments