Core is Core

This commit is contained in:
N0tMyFaultOG 2020-08-13 21:25:17 +02:00
parent 5efdef19cf
commit ffe1e1e40d
2 changed files with 11 additions and 11 deletions

View File

@ -41,24 +41,24 @@ processResources {
} }
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
jar.archiveFileName = "PlotSquared-${project.parent.version}.jar" jar.archiveFileName = "PlotSquared-Core-${project.parent.version}.jar"
jar.destinationDirectory = file("../mvn/com/plotsquared/PlotSquared/" + project.parent.version) jar.destinationDirectory = file("../mvn/com/plotsquared/PlotSquared-Core/" + project.parent.version)
task createPom { task createPom {
doLast { doLast {
pom { pom {
project { project {
groupId = rootProject.group groupId = rootProject.group
artifactId = "PlotSquared" artifactId = "PlotSquared-Core"
version = project.parent.version version = project.parent.version
} }
}.writeTo("../mvn/com/plotsquared/PlotSquared/${project.parent.version}/PlotSquared-${project.parent.version}.pom") }.writeTo("../mvn/com/plotsquared/PlotSquared-Core/${project.parent.version}/PlotSquared-Core-${project.parent.version}.pom")
pom { pom {
project { project {
groupId = rootProject.group groupId = rootProject.group
artifactId = "PlotSquared" artifactId = "PlotSquared-Core"
version = "latest" version = "latest"
} }
}.writeTo("../mvn/com/plotsquared/PlotSquared/latest/PlotSquared-latest.pom") }.writeTo("../mvn/com/plotsquared/PlotSquared-Core/latest/PlotSquared-Core-latest.pom")
.writeTo("pom.xml") .writeTo("pom.xml")
} }
} }
@ -66,10 +66,10 @@ task createPom {
task copyFiles { task copyFiles {
doLast { doLast {
copy { copy {
from("../mvn/com/plotsquared/PlotSquared/${project.parent.version}/") from("../mvn/com/plotsquared/PlotSquared-Core/${project.parent.version}/")
into("../mvn/com/plotsquared/PlotSquared/latest/") into("../mvn/com/plotsquared/PlotSquared-Core/latest/")
include("*.jar") include("PlotSquared-Core*.jar")
rename("PlotSquared-${project.parent.version}.jar", "PlotSquared-latest.jar") rename("PlotSquared-Core-${project.parent.version}.jar", "PlotSquared-Core-latest.jar")
} }
} }
} }

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.plotsquared</groupId> <groupId>com.plotsquared</groupId>
<artifactId>PlotSquared</artifactId> <artifactId>PlotSquared-Core</artifactId>
<version>latest</version> <version>latest</version>
<dependencies> <dependencies>
<dependency> <dependency>