Peace Tour
10/23/2022, 8:43 AMSlackbot
10/24/2022, 10:44 AMSlackbot
10/24/2022, 3:14 PMSlackbot
10/24/2022, 7:17 PMJonathan Ryan
10/25/2022, 2:43 PMSlackbot
10/25/2022, 8:41 PMSlackbot
10/25/2022, 8:42 PMSlackbot
10/25/2022, 9:24 PMSlackbot
10/25/2022, 10:39 PMSlackbot
10/25/2022, 11:10 PMSlackbot
10/26/2022, 5:28 AMFaraz Rasheed
10/26/2022, 7:31 AMFaraz Rasheed
10/26/2022, 7:32 AMFaraz Rasheed
10/26/2022, 7:33 AMFaraz Rasheed
10/26/2022, 7:34 AMtask downloadFile(type: Download) {
preemptiveAuth true
username 'sldjfsdjf'
password 'lskdjflsdfj'
src '<https://bitbucket.org/><file>'
dest new File(getRootDir(), '1.3.json')
overwrite true
}
Faraz Rasheed
10/26/2022, 7:34 AMSlackbot
10/26/2022, 7:35 AMSlackbot
10/26/2022, 2:16 PMSlackbot
10/26/2022, 6:19 PMSlackbot
10/26/2022, 7:52 PMSlackbot
10/26/2022, 9:37 PMSlackbot
10/26/2022, 9:44 PMSlackbot
10/27/2022, 6:11 AMSlackbot
10/27/2022, 6:51 AMSlackbot
10/27/2022, 6:56 AMBrian Rosenberger
10/27/2022, 7:53 AMBrian Rosenberger
10/27/2022, 7:56 AMdependencies {
api project(path: ":cavis-native:cavis-native-lib", configuration: "runtimeElements")
}
That works so far, the correct artifact gets pulled in. Now when I am publishing using MavenPublish, the generated POM is missing the classifier
<dependency>
<groupId>net.brutex.cavis.cavis-native</groupId>
<artifactId>cavis-native-lib</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
This is how configuration runtimeElements is set in the "producing" module:
--------------------------------------------------
Variant runtimeElements
--------------------------------------------------
Elements of runtime for main.
Capabilities
- net.brutex.cavis.cavis-native:cavis-native-lib:1.0.0-SNAPSHOT (default capability)
Attributes
- org.gradle.category = library
- org.gradle.dependency.bundling = external
- org.gradle.jvm.version = 8
- org.gradle.libraryelements = jar
- org.gradle.usage = java-runtime
Artifacts
- build\libs\cavis-native-lib-1.0.0-SNAPSHOT-windows-x86_64-avx2-cpu.jar (artifactType = jar, classifier = windows-x86_64-avx2-cpu)
- build\libs\cavis-native-lib-1.0.0-SNAPSHOT-windows-x86_64-avx2-cuda.jar (artifactType = jar, classifier = windows-x86_64-avx2-cuda)
- build\libs\cavis-native-lib-1.0.0-SNAPSHOT.jar (artifactType = jar)
How can I achieve to to have the classifier included when publishing the POM dependencies ?
Here is the concept used https://docs.gradle.org/current/userguide/variant_model.html, but I am looking about mapping to maven POM, rather mapping from maven.
Gradle 7.5.1
Thank you.
Cheers
BrianSlackbot
10/27/2022, 8:01 AMSlackbot
10/27/2022, 8:13 AMSlackbot
10/27/2022, 8:34 AM