jean
12/15/2020, 1:26 PMpublications {
create<MavenPublication>("maven") {
groupId = "org.my.company"
artifactId = "our-project"
version = "0.1"
}
}
repositories {
maven {
url = uri("<https://org.my.company/api/v4/projects/1/packages/maven>")
name = "GitLab"
credentials(HttpHeaderCredentials::class) {
name = extra["gitlab.name"].toString()
value = extra["gitlab.token"].toString()
}
authentication {
register("header", HttpHeaderAuthentication::class.java)
}
}
}
But that’s what being uploaded <https://org.my.company/api/v4/projects/1/packages/maven/org/mycompany/OurProject-jvm/0.1/OurProject-jvm-0.1.jar> , where OurProject comes from settings.gradle.kts
rootProject.name = "TeliaTrackingMixpanel"
How can I force it to be org.my.company:our-project:01 ?mazorius
12/15/2020, 1:42 PMmazorius
12/15/2020, 1:45 PMsettings.gradle,kts
rootProject.name = "our-project"
gradle.allprojects {
group = "<http://org.company.my|org.company.my>"
version = "0.1"
}jean
12/15/2020, 1:46 PMjean
12/15/2020, 1:47 PMgroup = "<http://org.company.my|org.company.my>"
version = "0.1
In the build.gradle.kts but it does not seem to change anythingmazorius
12/15/2020, 1:48 PMmazorius
12/15/2020, 1:49 PMmazorius
12/15/2020, 1:54 PMfrom("java")mazorius
12/15/2020, 1:54 PMmazorius
12/15/2020, 1:54 PMjean
12/16/2020, 11:41 AMjean
12/16/2020, 11:41 AMfrom(component["kotlin"]) but it did not change anythingmazorius
12/16/2020, 12:05 PM-jvm?mazorius
12/16/2020, 12:06 PMjvm is defined inside classifier .
Maybe you can set classifier = ""?mazorius
12/16/2020, 12:08 PMafterEvaluation … maybe you can try afterEvaluate which is not really a good workaround but helps you for nowjean
12/16/2020, 1:45 PMTeliaTrackingMixpanel from rootProject.name = "TeliaTrackingMixpanel" . It is not overwritten by artifactId = "our-project"