@@ -32,15 +32,16 @@ The plugin supports the following test engines:
3232
3333An example application using this plugin is available [ here] ( https://github.com/java9-modularity/gradle-modules-plugin-example ) .
3434
35- Compatability
35+ Compatibility
3636===
3737
38- | Plugin Version | Gradle Versions | Java Version | Kotlin Version | Notes |
39- | ------------------| -----------------| --------------| ----------------| --------------------------------------------------------------------------------------------|
40- | - -> 1.8.12 | 5.+ -> 7.5.+ | 11+ | 1.0.+ -> 1.6.+ | |
41- | 1.8.12 -> 1.8.13 | 5.+ -> 7.5.+ | 11+ | 1.0.+ -> 1.9.+ | Adds support for Kotlin 1.7 and above. |
42- | 1.8.14 | 5.+ -> 7.6.+ | 11+ | 1.0.+ -> 1.9.+ | Fixes compatibility issue with Gradle 7.6 |
43- | 1.8.15 -> + | 5.+ -> 8.6.+ | 11+ | 1.6.+ -> 1.9.+ | Fixes compatibility issues with Gradle 8.0.<br >Use JUnit v5.8.0 or above if using Gradle 8 |
38+ | Plugin Version | Gradle Versions | Java Version | Kotlin Version | Notes |
39+ | ---------------- | --------------- | ------------ | -------------- | ------------------------------------------------------------ |
40+ | - -> 1.8.12 | 5.+ -> 7.5.+ | 11+ | 1.0.+ -> 1.6.+ | |
41+ | 1.8.12 -> 1.8.13 | 5.+ -> 7.5.+ | 11+ | 1.0.+ -> 1.9.+ | Adds support for Kotlin 1.7 and above. |
42+ | 1.8.14 | 5.+ -> 7.6.+ | 11+ | 1.0.+ -> 1.9.+ | Fixes compatibility issue with Gradle 7.6 |
43+ | 1.8.15 -> 1.8.x | 5.+ -> 8.6.+ | 11+ | 1.6.+ -> 1.9.+ | Fixes compatibility issues with Gradle 8.0.<br >Use JUnit v5.8.0 or above if using Gradle 8 |
44+ | 2.0.0 | 8.11.+ -> 9.+ | 17+ | 1.8.+ -> 2.x+ | Adds support for Gradle 9.x.<br >Minimum Java version raised to 17 |
4445
4546Setup
4647===
@@ -76,7 +77,7 @@ The main build file should look as follows:
7677
7778``` groovy
7879plugins {
79- id 'org.javamodularity.moduleplugin' version '1.8.15 ' apply false
80+ id 'org.javamodularity.moduleplugin' version '2.0.0 ' apply false
8081}
8182
8283subprojects {
@@ -85,8 +86,8 @@ subprojects {
8586
8687 version "1.0-SNAPSHOT"
8788
88- sourceCompatibility = 11
89- targetCompatibility = 11
89+ sourceCompatibility = 17
90+ targetCompatibility = 17
9091
9192 repositories {
9293 mavenCentral()
@@ -101,19 +102,21 @@ subprojects {
101102 }
102103
103104 dependencies {
104- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
105- testImplementation 'org.junit.jupiter:junit-jupiter-params:5.3.1'
106- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
105+ testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
106+ testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.2'
107+ testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
108+ testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.10.2"
107109 }
108110}
109111```
110112</details >
113+
111114<details >
112115<summary >Kotlin DSL</summary >
113116
114117``` kotlin
115118plugins {
116- id(" org.javamodularity.moduleplugin" ) version " 1.8.15 " apply false
119+ id(" org.javamodularity.moduleplugin" ) version " 2.0.0 " apply false
117120}
118121
119122subprojects {
@@ -124,7 +127,7 @@ subprojects {
124127
125128 java {
126129 toolchain {
127- languageVersion.set(JavaLanguageVersion .of(11 ))
130+ languageVersion.set(JavaLanguageVersion .of(17 ))
128131 }
129132 }
130133
@@ -141,9 +144,10 @@ subprojects {
141144 }
142145
143146 dependencies {
144- testImplementation(" org.junit.jupiter:junit-jupiter-api:5.3.1" )
145- testImplementation(" org.junit.jupiter:junit-jupiter-params:5.3.1" )
146- testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.3.1" )
147+ testImplementation(" org.junit.jupiter:junit-jupiter-api:5.10.1" )
148+ testImplementation(" org.junit.jupiter:junit-jupiter-params:5.10.2" )
149+ testImplementation(" org.junit.jupiter:junit-jupiter-engine:5.10.2" )
150+ testRuntimeOnly(" org.junit.platform:junit-platform-launcher:1.10.2" )
147151 }
148152}
149153```
@@ -952,7 +956,7 @@ Please file issues if you run into any problems or have additional requirements!
952956Requirements
953957===
954958
955- This plugin requires JDK 11 or newer to be used when running Gradle.
959+ This plugin requires JDK 17 or newer to be used when running Gradle.
956960
957961The minimum Gradle version supported by this plugin is 5.1.
958962However, we strongly recommend to use at least Gradle 6.0, because there are a few special cases that cannot be handled correctly when using older versions.
0 commit comments