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
|
||||
}
|
||||
|
||||
group = "com.plotsquared"
|
||||
version = "6.9.1-SNAPSHOT"
|
||||
|
||||
allprojects {
|
||||
group = "com.plotsquared"
|
||||
subprojects {
|
||||
group = rootProject.group
|
||||
version = rootProject.version
|
||||
|
||||
repositories {
|
||||
@ -50,9 +51,7 @@ allprojects {
|
||||
url = uri("https://maven.enginehub.org/repo/")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
apply {
|
||||
plugin<JavaPlugin>()
|
||||
plugin<JavaLibraryPlugin>()
|
||||
@ -68,9 +67,7 @@ subprojects {
|
||||
dependencies {
|
||||
implementation(platform("com.intellectualsites.bom:bom-1.18.x:1.5"))
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
dependencies {
|
||||
// Tests
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
|
||||
@ -188,7 +185,6 @@ allprojects {
|
||||
shadowJar {
|
||||
this.archiveClassifier.set(null as String?)
|
||||
this.archiveFileName.set("${project.name}-${project.version}.${this.archiveExtension.getOrElse("jar")}")
|
||||
this.destinationDirectory.set(rootProject.tasks.shadowJar.get().destinationDirectory.get())
|
||||
}
|
||||
|
||||
named("build") {
|
||||
@ -198,7 +194,6 @@ allprojects {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
nexusPublishing {
|
||||
@ -209,3 +204,7 @@ nexusPublishing {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.getByName<Jar>("jar") {
|
||||
enabled = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user