Skip to content

Commit 93b6fcc

Browse files
committed
Re-add checks for BOM in published POMs and GMM
This reverts commit 424316b.
1 parent 4f801d0 commit 93b6fcc

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/GradleModuleFileTests.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ void jupiterAggregatorGradleModuleMetadataVariants() throws Exception {
4949
" },", //
5050
" \"dependencies\": [", //
5151
" {", //
52+
" \"group\": \"org.junit\",", //
53+
" \"module\": \"junit-bom\",", //
54+
" \"version\": {", //
55+
">> VERSION >>", //
56+
" },", //
57+
" \"attributes\": {", //
58+
" \"org.gradle.category\": \"platform\"", //
59+
" },", //
60+
" \"endorseStrictVersions\": true", //
61+
" },", //
62+
" {", //
5263
" \"group\": \"org.junit.jupiter\",", //
5364
" \"module\": \"junit-jupiter-api\",", //
5465
" \"version\": {", //
@@ -80,6 +91,17 @@ void jupiterAggregatorGradleModuleMetadataVariants() throws Exception {
8091
" },", //
8192
" \"dependencies\": [", //
8293
" {", //
94+
" \"group\": \"org.junit\",", //
95+
" \"module\": \"junit-bom\",", //
96+
" \"version\": {", //
97+
">> VERSION >>", //
98+
" },", //
99+
" \"attributes\": {", //
100+
" \"org.gradle.category\": \"platform\"", //
101+
" },", //
102+
" \"endorseStrictVersions\": true", //
103+
" },", //
104+
" {", //
83105
" \"group\": \"org.junit.jupiter\",", //
84106
" \"module\": \"junit-jupiter-api\",", //
85107
" \"version\": {", //

platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/MavenPomFileTests.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ class MavenPomFileTests {
2727
void jupiterAggregatorPomDependencies() throws Exception {
2828

2929
var expected = List.of(">> HEAD >>", //
30+
" <dependencyManagement>", //
31+
" <dependencies>", //
32+
" <dependency>", //
33+
" <groupId>org.junit</groupId>", //
34+
" <artifactId>junit-bom</artifactId>", //
35+
">> VERSION >>", //
36+
" <type>pom</type>", //
37+
" <scope>import</scope>", //
38+
" </dependency>", //
39+
" </dependencies>", //
40+
" </dependencyManagement>", //
3041
" <dependencies>", //
3142
" <dependency>", //
3243
" <groupId>org.junit.jupiter</groupId>", //

0 commit comments

Comments
 (0)