mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Add Bukkit module to maven
This commit is contained in:
parent
d1115d62a7
commit
6ec3951e4e
@ -41,8 +41,40 @@ processResources {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// We only want the shadow jar produced
|
|
||||||
jar.enabled = false
|
//noinspection GroovyAssignabilityCheck
|
||||||
|
jar.archiveFileName = "PlotSquared-BukkitAPI-${project.parent.version}.jar"
|
||||||
|
jar.destinationDirectory = file("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-BukkitAPI/" + project.parent.version)
|
||||||
|
task createPom {
|
||||||
|
doLast {
|
||||||
|
pom {
|
||||||
|
project {
|
||||||
|
groupId = "com.github.intellectualsites.plotsquared"
|
||||||
|
artifactId = "PlotSquared-BukkitAPI"
|
||||||
|
version = project.parent.version
|
||||||
|
}
|
||||||
|
}.writeTo("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-BukkitAPI/${project.parent.version}/PlotSquared-BukkitAPI-${project.parent.version}.pom")
|
||||||
|
pom {
|
||||||
|
project {
|
||||||
|
groupId = "com.github.intellectualsites.plotsquared"
|
||||||
|
artifactId = "PlotSquared-BukkitAPI"
|
||||||
|
version = "latest"
|
||||||
|
}
|
||||||
|
}.writeTo("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-BukkitAPI/latest/PlotSquared-BukkitAPI-latest.pom")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
task copyFiles {
|
||||||
|
doLast {
|
||||||
|
copy {
|
||||||
|
from("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-BukkitAPI/${project.parent.version}/")
|
||||||
|
into("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-BukkitAPI/latest/")
|
||||||
|
include("PlotSquared-BukkitAPI*.jar")
|
||||||
|
rename("PlotSquared-BukkitAPI-${project.parent.version}.jar", "PlotSquared-BukkitAPI-latest.jar")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -69,3 +101,5 @@ shadowJar.doLast {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build.dependsOn(shadowJar)
|
build.dependsOn(shadowJar)
|
||||||
|
build.finalizedBy(copyFiles)
|
||||||
|
copyFiles.dependsOn(createPom)
|
||||||
|
Loading…
Reference in New Issue
Block a user