mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 12:46:46 +01:00
fix: Don't publish root directory to maven repository (#3676)
* fix: Don't publish root directory (Fixes #3647) * fix: More investigations * fix: Exclude task 'jar' from root project * chore: Keep group ID in the root scope
This commit is contained in:
parent
d69f3b0893
commit
bb0aa8d5cc
@ -18,10 +18,11 @@ plugins {
|
|||||||
idea
|
idea
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group = "com.plotsquared"
|
||||||
version = "6.9.1-SNAPSHOT"
|
version = "6.9.1-SNAPSHOT"
|
||||||
|
|
||||||
allprojects {
|
subprojects {
|
||||||
group = "com.plotsquared"
|
group = rootProject.group
|
||||||
version = rootProject.version
|
version = rootProject.version
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -50,9 +51,7 @@ allprojects {
|
|||||||
url = uri("https://maven.enginehub.org/repo/")
|
url = uri("https://maven.enginehub.org/repo/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
subprojects {
|
|
||||||
apply {
|
apply {
|
||||||
plugin<JavaPlugin>()
|
plugin<JavaPlugin>()
|
||||||
plugin<JavaLibraryPlugin>()
|
plugin<JavaLibraryPlugin>()
|
||||||
@ -68,9 +67,7 @@ subprojects {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation(platform("com.intellectualsites.bom:bom-1.18.x:1.5"))
|
implementation(platform("com.intellectualsites.bom:bom-1.18.x:1.5"))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
allprojects {
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Tests
|
// Tests
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
|
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
|
||||||
@ -165,7 +162,7 @@ allprojects {
|
|||||||
developerConnection.set("scm:git://github.com/IntellectualSites/PlotSquared.git")
|
developerConnection.set("scm:git://github.com/IntellectualSites/PlotSquared.git")
|
||||||
}
|
}
|
||||||
|
|
||||||
issueManagement{
|
issueManagement {
|
||||||
system.set("GitHub")
|
system.set("GitHub")
|
||||||
url.set("https://github.com/IntellectualSites/PlotSquared/issues")
|
url.set("https://github.com/IntellectualSites/PlotSquared/issues")
|
||||||
}
|
}
|
||||||
@ -188,7 +185,6 @@ allprojects {
|
|||||||
shadowJar {
|
shadowJar {
|
||||||
this.archiveClassifier.set(null as String?)
|
this.archiveClassifier.set(null as String?)
|
||||||
this.archiveFileName.set("${project.name}-${project.version}.${this.archiveExtension.getOrElse("jar")}")
|
this.archiveFileName.set("${project.name}-${project.version}.${this.archiveExtension.getOrElse("jar")}")
|
||||||
this.destinationDirectory.set(rootProject.tasks.shadowJar.get().destinationDirectory.get())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
named("build") {
|
named("build") {
|
||||||
@ -198,7 +194,6 @@ allprojects {
|
|||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nexusPublishing {
|
nexusPublishing {
|
||||||
@ -209,3 +204,7 @@ nexusPublishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.getByName<Jar>("jar") {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user