Skip to content

Commit 7dc2791

Browse files
authored
Consistently declare JSpecify as a transitive compile-time dependency (#4703)
Prior to this commit this was only done in `junit-platform-commons` which all other modules depend on. Therefore, JSpecify was already a transitive compile-time dependency of all modules but their module descriptors listed it as an non-transitive compile-time dependency.
1 parent 442aac1 commit 7dc2791

File tree

36 files changed

+37
-35
lines changed

36 files changed

+37
-35
lines changed

documentation/documentation.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ dependencies {
5555
because("Jupiter API is used in src/main/java")
5656
}
5757

58+
compileOnlyApi(libs.jspecify)
59+
5860
// Pull in all "modular projects" to ensure that they are included
5961
// in reports generated by the ApiReportGenerator.
6062
modularProjects.forEach { apiReport(it) }

junit-jupiter-api/junit-jupiter-api.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies {
1313
api(projects.junitPlatformCommons)
1414

1515
compileOnlyApi(libs.apiguardian)
16-
compileOnly(libs.jspecify)
16+
compileOnlyApi(libs.jspecify)
1717

1818
compileOnly(kotlin("stdlib"))
1919

junit-jupiter-api/src/main/java/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
module org.junit.jupiter.api {
1717

1818
requires static transitive org.apiguardian.api;
19-
requires static org.jspecify;
19+
requires static transitive org.jspecify;
2020

2121
requires transitive org.junit.platform.commons;
2222
requires transitive org.opentest4j;

junit-jupiter-engine/junit-jupiter-engine.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies {
1212
api(projects.junitJupiterApi)
1313

1414
compileOnlyApi(libs.apiguardian)
15-
compileOnly(libs.jspecify)
15+
compileOnlyApi(libs.jspecify)
1616

1717
osgiVerification(projects.junitPlatformLauncher)
1818
}

junit-jupiter-engine/src/main/java/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
module org.junit.jupiter.engine {
2121

2222
requires static org.apiguardian.api;
23-
requires static org.jspecify;
23+
requires static transitive org.jspecify;
2424

2525
requires org.junit.jupiter.api;
2626
requires org.junit.platform.commons;

junit-jupiter-migrationsupport/junit-jupiter-migrationsupport.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies {
1212
api(projects.junitJupiterApi)
1313

1414
compileOnlyApi(libs.apiguardian)
15-
compileOnly(libs.jspecify)
15+
compileOnlyApi(libs.jspecify)
1616

1717
osgiVerification(projects.junitJupiterEngine)
1818
osgiVerification(projects.junitPlatformLauncher)

junit-jupiter-migrationsupport/src/main/java/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
module org.junit.jupiter.migrationsupport {
1717

1818
requires static transitive org.apiguardian.api;
19-
requires static org.jspecify;
19+
requires static transitive org.jspecify;
2020

2121
requires transitive junit; // 4
2222
requires transitive org.junit.jupiter.api;

junit-jupiter-params/junit-jupiter-params.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies {
1717
api(projects.junitJupiterApi)
1818

1919
compileOnlyApi(libs.apiguardian)
20-
compileOnly(libs.jspecify)
20+
compileOnlyApi(libs.jspecify)
2121

2222
shadowed(libs.fastcsv)
2323

junit-jupiter-params/src/main/java/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
module org.junit.jupiter.params {
1717

1818
requires static transitive org.apiguardian.api;
19-
requires static org.jspecify;
19+
requires static transitive org.jspecify;
2020

2121
requires transitive org.junit.jupiter.api;
2222
requires transitive org.junit.platform.commons;

junit-platform-console/junit-platform-console.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies {
1616
api(projects.junitPlatformReporting)
1717

1818
compileOnlyApi(libs.apiguardian)
19-
compileOnly(libs.jspecify)
19+
compileOnlyApi(libs.jspecify)
2020

2121
shadowed(libs.picocli)
2222

0 commit comments

Comments
 (0)