Fix some issues when publishing api
This commit is contained in:
parent
99798266b4
commit
077f57d85c
|
|
@ -16,14 +16,7 @@ publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
}
|
artifactId = "${rootProject.name}-${project.name}-$version.jar"
|
||||||
}
|
|
||||||
|
|
||||||
repositories{
|
|
||||||
maven {
|
|
||||||
name = "maven"
|
|
||||||
url = uri("https://repo.destro.xyz/snapshots")
|
|
||||||
credentials(PasswordCredentials::class)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -23,6 +23,18 @@ subprojects {
|
||||||
languageVersion.set(JavaLanguageVersion.of(17))
|
languageVersion.set(JavaLanguageVersion.of(17))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
configure<PublishingExtension> {
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "maven"
|
||||||
|
url = uri("https://repo.destro.xyz/snapshots/")
|
||||||
|
credentials(PasswordCredentials::class)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
@ -51,29 +63,11 @@ tasks {
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
enabled = false
|
// enabled = false
|
||||||
// archiveFileName.set("${rootProject.name}.jar")
|
// archiveFileName.set("${rootProject.name}.jar")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
|
||||||
publications {
|
|
||||||
create<MavenPublication>("mavenJava") {
|
|
||||||
from(components["java"])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
configure<PublishingExtension> {
|
|
||||||
repositories {
|
|
||||||
maven {
|
|
||||||
name = "maven"
|
|
||||||
url = uri("https://repo.destro.xyz/snapshots/")
|
|
||||||
credentials(PasswordCredentials::class)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("com.alttd:Comet-API:1.20.4-R0.1-SNAPSHOT")
|
compileOnly("com.alttd:Comet-API:1.20.4-R0.1-SNAPSHOT")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user