rebok
10/08/2023, 1:00 PMmbonnin
10/08/2023, 1:04 PMpublishing {
publications {
withType<MavenPublication> {
artifactId = "foobar"
}
}
}
mbonnin
10/08/2023, 1:04 PMmbonnin
10/08/2023, 1:06 PM-jvm
, -macodArm64
, etc..mbonnin
10/08/2023, 1:06 PMrebok
10/08/2023, 1:14 PMmbonnin
10/08/2023, 1:16 PMpublishing {
publications {
withType<MavenPublication> {
artifactId = "foobar-${artifactId.substringBefore("-")}"
}
}
}
mbonnin
10/08/2023, 1:16 PMafterEvaluate{}
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]}"