rebok
10/08/2023, 1:00 PMmbonnin
10/08/2023, 1:04 PMpublishing {
publications {
withType<MavenPublication> {
artifactId = "foobar"
}
}
}
-jvm
, -macodArm64
, etc..rebok
10/08/2023, 1:14 PMmbonnin
10/08/2023, 1:16 PMpublishing {
publications {
withType<MavenPublication> {
artifactId = "foobar-${artifactId.substringBefore("-")}"
}
}
}
afterEvaluate{}
if that's not working (not pretty but 🤷 )rebok
10/08/2023, 1:17 PMpublishing {
publications {
withType<MavenPublication> {
artifactId = "foobar"
}
}
}
makes it only generate only one artifact, and i also need platform specific ones. but i can just use artifactId = "foobar-${artifactId.split()[1]}"