Skip to content

Commit be19f6c

Browse files
committed
Update February 2025
1 parent 3859d85 commit be19f6c

File tree

7 files changed

+20
-11
lines changed

7 files changed

+20
-11
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
.gradle
2-
.idea
3-
build
1+
.gradle/
2+
.idea/
3+
.kotlin/
4+
build/

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,20 @@ With that accidental complexity in the module setup is avoided.
1616

1717
### Learn more
1818

19+
- Browse slides of my 2025 talk [Combining Java Modules and Gradle for elegant project structures](docs/java-modules-and-gradle-2025.pdf) which is based on this sample
1920
- Watch my 2024 talk [Boosting Developer Productivity Through Better Modularity](https://dpe.org/sessions/jendrik-johannes/boosting-developer-productivity-through-better-modularity)) (and [browse the slides](docs/developer-productivity-and-modularity-2024.pdf)) which uses this example
2021
- Browse slides of my 2024 talk [Combining Java Modules and Gradle for elegant project structures](docs/java-modules-and-gradle-2024.pdf) which is based on this sample
2122
- Browse slides of my 2023 talk [Modularizing Projects with the Java Module System and Gradle](docs/java-modules-and-gradle-2023.pdf) which gives more background on the modularity concepts in Java and Gradle
2223
- Watch my YouTube playlist [Understanding Gradle – Java Modularity](https://www.youtube.com/playlist?list=PLWQK2ZdV4Yl092zlY7Dy1knCmi0jhTH3H) for even more information on modularity in Java and how it is handled in Gradle
2324

25+
### In action: projects that use this setup
26+
27+
- [hiero-ledger/hiero-gradle-conventions](https://github.com/hiero-ledger/hiero-gradle-conventions) use by
28+
- [hiero-ledger/hiero-consensus-node](https://github.com/hiero-ledger/hiero-consensus-node)
29+
- [hiero-ledger/hiero-sdk-java](https://github.com/hiero-ledger/hiero-sdk-java)
30+
- ...and other [hiero-ledger](https://github.com/hiero-ledger) projects
31+
- [jjohannes/gradle-project-setup-howto/java_module_system](https://github.com/jjohannes/gradle-project-setup-howto/tree/java_module_system)
32+
2433
### Build the example
2534

2635
- Run `./gradlew check` to run tests and check integrity of the module setup
4.08 MB
Binary file not shown.

gradle/plugins/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ repositories {
77
}
88

99
dependencies {
10-
implementation("com.autonomousapps:dependency-analysis-gradle-plugin:2.4.2")
11-
implementation("com.gradle:develocity-gradle-plugin:3.17.5")
12-
implementation("org.gradlex:extra-java-module-info:1.9")
10+
implementation("com.autonomousapps:dependency-analysis-gradle-plugin:2.8.2")
11+
implementation("com.gradle:develocity-gradle-plugin:3.19.1")
12+
implementation("org.gradlex:extra-java-module-info:1.11")
1313
implementation("org.gradlex:java-module-dependencies:1.8")
1414
implementation("org.gradlex:java-module-packaging:1.0")
15-
implementation("org.gradlex:java-module-testing:1.5")
15+
implementation("org.gradlex:java-module-testing:1.6")
1616
implementation("org.gradlex:jvm-dependency-conflict-resolution:2.1.2")
1717
}

gradle/wrapper/gradle-wrapper.jar

122 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum
@@ -206,7 +205,7 @@ fi
206205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
207206

208207
# Collect all arguments for the java command:
209-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
210209
# and any embedded shellness will be escaped.
211210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
212211
# treated as '${Hostname}' itself on the command line.

0 commit comments

Comments
 (0)