Skip to content

Commit

Permalink
Version 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohannes committed Aug 8, 2023
1 parent 19f8378 commit 9998f4d
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 15 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* [#45](https://github.com/gradlex-org/java-module-dependencies/issues/45) Support Capability Coordinates in mappings

## Version 1.3.1

* Fix integration with analysis plugin if root projects are involved
* Fix in module name calculation for additional source sets
* Improve dependency analysis reporting for source sets without module-info.java
Expand Down
6 changes: 3 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Add this to the build file of your convention plugin's build

```
dependencies {
implementation("org.gradlex:java-module-dependencies:1.3.1")
implementation("org.gradlex:java-module-dependencies:1.4")
}
```

Expand Down Expand Up @@ -154,14 +154,14 @@ If you have a `prefixOfYourChoice`, all your Modules **need to have the same pre
## Define Module versions in a Platform project as Dependency Constraints

Use Gradle's dependency constraints and/or platforms to define versions for the modules you depend on.
For that the plugin offers a `moduleInfo { }` block in `java-platform` projects.
For that you can combine the `java-platform` with the `org.gradlex.java-module-versions` plugin which adds a `moduleInfo { }` configuration block.
In that block, you have the `version("module.name", "1.0")` notation to define a version by Module Name instead of coordinates.
For libraries that consist of multiple components and have a BOM for version management, you might prefer to include the BOM, which you need to do by coordinates, because a BOM does not have a Module Name.

```
plugins {
id("java-platform")
id("org.gradlex.java-module-dependencies")
id("org.gradlex.java-module-versions")
}
// Define versions for Modules via the Module Name
Expand Down
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "org.gradlex"
version = "1.3.1"
version = "1.4"

java {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down Expand Up @@ -45,6 +45,9 @@ pluginPublishConventions {
gradlePlugin.plugins.create("java-module-versions") {
id = "${project.group}.${name}"
implementationClass = "org.gradlex.javamodule.dependencies.JavaModuleVersionsPlugin"
displayName = "Java Module Versions Gradle Plugin"
description = "A plugin that makes Gradle respect the dependencies defined in 'module-info.java' files."
tags = listOf("gradlex", "java", "modularity", "jigsaw", "jpms", "dependencies", "versions")
}

tasks.test {
Expand Down
4 changes: 0 additions & 4 deletions gradle/plugins/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
plugins {
`kotlin-dsl`
}

dependencies {
implementation("com.gradle.publish:plugin-publish-plugin:1.0.0")
}
2 changes: 1 addition & 1 deletion samples/configuration-cache/build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ plugins {
}

dependencies {
implementation("org.gradlex:java-module-dependencies:1.3.1")
implementation("org.gradlex:java-module-dependencies:1.4")
}
2 changes: 1 addition & 1 deletion samples/kotlin/build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ plugins {
}

dependencies {
implementation("org.gradlex:java-module-dependencies:1.3.1")
implementation("org.gradlex:java-module-dependencies:1.4")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21")
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ plugins {

dependencies {
implementation("com.autonomousapps:dependency-analysis-gradle-plugin:1.20.0")
implementation("org.gradlex:java-module-dependencies:1.3.1")
implementation("org.gradlex:java-module-dependencies:1.4")
implementation("org.gradlex:java-module-testing:1.2")
}
2 changes: 1 addition & 1 deletion samples/module-info-dsl/gradle/plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ plugins {

dependencies {
implementation("com.autonomousapps:dependency-analysis-gradle-plugin:1.20.0")
implementation("org.gradlex:java-module-dependencies:1.3.1")
implementation("org.gradlex:java-module-dependencies:1.4")
implementation("org.gradlex:java-module-testing:1.2")
}
2 changes: 1 addition & 1 deletion samples/versions-in-catalog/build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ plugins {
}

dependencies {
implementation("org.gradlex:java-module-dependencies:1.3.1")
implementation("org.gradlex:java-module-dependencies:1.4")
}
2 changes: 1 addition & 1 deletion samples/versions-in-platform/build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ plugins {
}

dependencies {
implementation("org.gradlex:java-module-dependencies:1.3.1")
implementation("org.gradlex:java-module-dependencies:1.4")
}

0 comments on commit 9998f4d

Please sign in to comment.