Skip to content

Commit fb5fbb9

Browse files
committed
disable Gradle meta-data for releases
Unfortunately the Gradle meta-data does not match the way the release artifacts are composed, i.e. that `archunit-junit` is completely merged into `archunit-junitx` and does not exist as an artifact itself. Thus at the moment as soon as Gradle is used with the current release `0.14.0`, the build breaks because of a supposedly missing artifact `archunit-junit`. Since I do not see any value the Gradle meta-data would provide, I have disabled it in general until we find any benefit. Signed-off-by: Peter Gafert <[email protected]>
1 parent f86b87a commit fb5fbb9

7 files changed

+1
-31
lines changed

build-steps/release/expected/archunit-junit4.pom

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4-
<!-- This module was also published with a richer model, Gradle metadata, -->
5-
<!-- which should be used instead. Do not delete the following line which -->
6-
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7-
<!-- that they should prefer consuming it instead. -->
8-
<!-- do_not_remove: published-with-gradle-metadata -->
94
<modelVersion>4.0.0</modelVersion>
105
<groupId>com.tngtech.archunit</groupId>
116
<artifactId>archunit-junit4</artifactId>

build-steps/release/expected/archunit-junit5-api.pom

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4-
<!-- This module was also published with a richer model, Gradle metadata, -->
5-
<!-- which should be used instead. Do not delete the following line which -->
6-
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7-
<!-- that they should prefer consuming it instead. -->
8-
<!-- do_not_remove: published-with-gradle-metadata -->
94
<modelVersion>4.0.0</modelVersion>
105
<groupId>com.tngtech.archunit</groupId>
116
<artifactId>archunit-junit5-api</artifactId>

build-steps/release/expected/archunit-junit5-engine-api.pom

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4-
<!-- This module was also published with a richer model, Gradle metadata, -->
5-
<!-- which should be used instead. Do not delete the following line which -->
6-
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7-
<!-- that they should prefer consuming it instead. -->
8-
<!-- do_not_remove: published-with-gradle-metadata -->
94
<modelVersion>4.0.0</modelVersion>
105
<groupId>com.tngtech.archunit</groupId>
116
<artifactId>archunit-junit5-engine-api</artifactId>

build-steps/release/expected/archunit-junit5-engine.pom

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4-
<!-- This module was also published with a richer model, Gradle metadata, -->
5-
<!-- which should be used instead. Do not delete the following line which -->
6-
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7-
<!-- that they should prefer consuming it instead. -->
8-
<!-- do_not_remove: published-with-gradle-metadata -->
94
<modelVersion>4.0.0</modelVersion>
105
<groupId>com.tngtech.archunit</groupId>
116
<artifactId>archunit-junit5-engine</artifactId>

build-steps/release/expected/archunit-junit5.pom

-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
33
xmlns="http://maven.apache.org/POM/4.0.0"
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5-
<!-- This module was also published with a richer model, Gradle metadata, -->
6-
<!-- which should be used instead. Do not delete the following line which -->
7-
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
8-
<!-- that they should prefer consuming it instead. -->
9-
<!-- do_not_remove: published-with-gradle-metadata -->
105
<modelVersion>4.0.0</modelVersion>
116
<groupId>com.tngtech.archunit</groupId>
127
<artifactId>archunit-junit5</artifactId>

build-steps/release/expected/archunit.pom

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4-
<!-- This module was also published with a richer model, Gradle metadata, -->
5-
<!-- which should be used instead. Do not delete the following line which -->
6-
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7-
<!-- that they should prefer consuming it instead. -->
8-
<!-- do_not_remove: published-with-gradle-metadata -->
94
<modelVersion>4.0.0</modelVersion>
105
<groupId>com.tngtech.archunit</groupId>
116
<artifactId>archunit</artifactId>

build-steps/release/publish.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ releaseProjects*.with {
1212
apply plugin: "signing"
1313

1414
tasks.withType(GenerateModuleMetadata) {
15-
enabled = isReleaseVersion // signing of these artifacts causes failure for snapshot versions
15+
enabled = false // the meta-data does not match the way the Maven artifacts are composed and thus is broken
1616
}
1717

1818
java {

0 commit comments

Comments
 (0)