-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix exclusion handling when a platform depends on a platform
See gh-360
- Loading branch information
1 parent
b36e4a0
commit d34453b
Showing
10 changed files
with
274 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/test/resources/maven-repo/test/platform-a/1.0/platform-a-1.0.module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"formatVersion": "1.1", | ||
"component": { | ||
"group": "test", | ||
"module": "platform-a", | ||
"version": "1.0", | ||
"attributes": { | ||
"org.gradle.status": "release" | ||
} | ||
}, | ||
"createdBy": { | ||
"gradle": { | ||
"version": "8.1.1" | ||
} | ||
}, | ||
"variants": [ | ||
{ | ||
"name": "apiElements", | ||
"attributes": { | ||
"org.gradle.category": "platform", | ||
"org.gradle.usage": "java-api" | ||
}, | ||
"dependencyConstraints": [ | ||
{ | ||
"group": "org.springframework", | ||
"module": "spring-core", | ||
"version": { | ||
"requires": "5.3.27" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "runtimeElements", | ||
"attributes": { | ||
"org.gradle.category": "platform", | ||
"org.gradle.usage": "java-runtime" | ||
}, | ||
"dependencyConstraints": [ | ||
{ | ||
"group": "org.springframework", | ||
"module": "spring-core", | ||
"version": { | ||
"requires": "5.3.27" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
src/test/resources/maven-repo/test/platform-a/1.0/platform-a-1.0.pom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<!-- This module was also published with a richer model, Gradle metadata, --> | ||
<!-- which should be used instead. Do not delete the following line which --> | ||
<!-- is to indicate to Gradle or any Gradle module metadata file consumer --> | ||
<!-- that they should prefer consuming it instead. --> | ||
<!-- do_not_remove: published-with-gradle-metadata --> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>test</groupId> | ||
<artifactId>platform-a</artifactId> | ||
<version>1.0</version> | ||
<packaging>pom</packaging> | ||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-core</artifactId> | ||
<version>5.3.27</version> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
</project> |
58 changes: 58 additions & 0 deletions
58
src/test/resources/maven-repo/test/platform-b/1.0/platform-b-1.0.module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"formatVersion": "1.1", | ||
"component": { | ||
"group": "test", | ||
"module": "platform-b", | ||
"version": "1.0", | ||
"attributes": { | ||
"org.gradle.status": "release" | ||
} | ||
}, | ||
"createdBy": { | ||
"gradle": { | ||
"version": "8.1.1" | ||
} | ||
}, | ||
"variants": [ | ||
{ | ||
"name": "apiElements", | ||
"attributes": { | ||
"org.gradle.category": "platform", | ||
"org.gradle.usage": "java-api" | ||
}, | ||
"dependencies": [ | ||
{ | ||
"group": "test", | ||
"module": "platform-a", | ||
"version": { | ||
"requires": "1.0" | ||
}, | ||
"attributes": { | ||
"org.gradle.category": "platform" | ||
}, | ||
"endorseStrictVersions": true | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "runtimeElements", | ||
"attributes": { | ||
"org.gradle.category": "platform", | ||
"org.gradle.usage": "java-runtime" | ||
}, | ||
"dependencies": [ | ||
{ | ||
"group": "test", | ||
"module": "platform-a", | ||
"version": { | ||
"requires": "1.0" | ||
}, | ||
"attributes": { | ||
"org.gradle.category": "platform" | ||
}, | ||
"endorseStrictVersions": true | ||
} | ||
] | ||
} | ||
] | ||
} |
25 changes: 25 additions & 0 deletions
25
src/test/resources/maven-repo/test/platform-b/1.0/platform-b-1.0.pom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<!-- This module was also published with a richer model, Gradle metadata, --> | ||
<!-- which should be used instead. Do not delete the following line which --> | ||
<!-- is to indicate to Gradle or any Gradle module metadata file consumer --> | ||
<!-- that they should prefer consuming it instead. --> | ||
<!-- do_not_remove: published-with-gradle-metadata --> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>test</groupId> | ||
<artifactId>platform-b</artifactId> | ||
<version>1.0</version> | ||
<packaging>pom</packaging> | ||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>test</groupId> | ||
<artifactId>platform-a</artifactId> | ||
<version>1.0</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
</project> |
Binary file added
BIN
+261 Bytes
src/test/resources/maven-repo/test/platform-consumer/1.0/platform-consumer-1.0.jar
Binary file not shown.
77 changes: 77 additions & 0 deletions
77
src/test/resources/maven-repo/test/platform-consumer/1.0/platform-consumer-1.0.module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"formatVersion": "1.1", | ||
"component": { | ||
"group": "test", | ||
"module": "platform-consumer", | ||
"version": "1.0", | ||
"attributes": { | ||
"org.gradle.status": "release" | ||
} | ||
}, | ||
"createdBy": { | ||
"gradle": { | ||
"version": "8.1.1" | ||
} | ||
}, | ||
"variants": [ | ||
{ | ||
"name": "apiElements", | ||
"attributes": { | ||
"org.gradle.category": "library", | ||
"org.gradle.dependency.bundling": "external", | ||
"org.gradle.jvm.version": 8, | ||
"org.gradle.libraryelements": "jar", | ||
"org.gradle.usage": "java-api" | ||
}, | ||
"files": [ | ||
{ | ||
"name": "platform-consumer-1.0.jar", | ||
"url": "platform-consumer-1.0.jar", | ||
"size": 261, | ||
"sha512": "86a5a26d8dc2dfe3e97ea8f8761a35cabe6b01025519f5427fe99b1709ca62f78b4e29a8e400b960135bc5fad3ea72fe96a04c3ebf7598ace72933c14e56a954", | ||
"sha256": "800949e7d33f8be22c0a11bbffb097a9035ab490b106da8918a9dee8d7ba99b1", | ||
"sha1": "61157ea5caf7ebdfba10833bfbb55eebd4c12a6d", | ||
"md5": "82d43140d8833264c949d20116b4d8bd" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "runtimeElements", | ||
"attributes": { | ||
"org.gradle.category": "library", | ||
"org.gradle.dependency.bundling": "external", | ||
"org.gradle.jvm.version": 8, | ||
"org.gradle.libraryelements": "jar", | ||
"org.gradle.usage": "java-runtime" | ||
}, | ||
"dependencies": [ | ||
{ | ||
"group": "test", | ||
"module": "platform-b", | ||
"version": { | ||
"requires": "1.0" | ||
}, | ||
"attributes": { | ||
"org.gradle.category": "platform" | ||
}, | ||
"endorseStrictVersions": true | ||
}, | ||
{ | ||
"group": "org.springframework", | ||
"module": "spring-core" | ||
} | ||
], | ||
"files": [ | ||
{ | ||
"name": "platform-consumer-1.0.jar", | ||
"url": "platform-consumer-1.0.jar", | ||
"size": 261, | ||
"sha512": "86a5a26d8dc2dfe3e97ea8f8761a35cabe6b01025519f5427fe99b1709ca62f78b4e29a8e400b960135bc5fad3ea72fe96a04c3ebf7598ace72933c14e56a954", | ||
"sha256": "800949e7d33f8be22c0a11bbffb097a9035ab490b106da8918a9dee8d7ba99b1", | ||
"sha1": "61157ea5caf7ebdfba10833bfbb55eebd4c12a6d", | ||
"md5": "82d43140d8833264c949d20116b4d8bd" | ||
} | ||
] | ||
} | ||
] | ||
} |
31 changes: 31 additions & 0 deletions
31
src/test/resources/maven-repo/test/platform-consumer/1.0/platform-consumer-1.0.pom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<!-- This module was also published with a richer model, Gradle metadata, --> | ||
<!-- which should be used instead. Do not delete the following line which --> | ||
<!-- is to indicate to Gradle or any Gradle module metadata file consumer --> | ||
<!-- that they should prefer consuming it instead. --> | ||
<!-- do_not_remove: published-with-gradle-metadata --> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>test</groupId> | ||
<artifactId>platform-consumer</artifactId> | ||
<version>1.0</version> | ||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>test</groupId> | ||
<artifactId>platform-b</artifactId> | ||
<version>1.0</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-core</artifactId> | ||
<scope>runtime</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |