project: create poms when building, and utilize them in bootstrap. (#2259)

* project: create poms when building, and utilize them in bootstrap.

* gradle: only publish during bootstrapping

Co-authored-by: Owain van Brakel <owain.vanbrakel@gmail.com>
This commit is contained in:
Ganom
2020-01-16 20:40:02 -05:00
committed by GitHub
parent d924d5e0a9
commit 354b426b02
4 changed files with 18 additions and 10 deletions

View File

@@ -31,6 +31,11 @@ class BootstrapPlugin : Plugin<Project> {
tasks.withType<BootstrapTask> {
dependsOn(bootstrapDependencies)
dependsOn(project(":runelite-api").tasks["publish"])
dependsOn(project(":runescape-api").tasks["publish"])
dependsOn(project(":http-api").tasks["publish"])
dependsOn(project(":injected-client").tasks["publish"])
this.clientJar = clientJar.singleFile
doLast {
@@ -38,6 +43,15 @@ class BootstrapPlugin : Plugin<Project> {
from(bootstrapDependencies)
into("${buildDir}/bootstrap/${type}/")
}
copy {
from(
"${parent?.projectDir}/runelite-client/build/repo/.",
"${parent?.projectDir}/runelite-api/build/repo/.",
"${parent?.projectDir}/http-api/build/repo/.",
"${parent?.projectDir}/runescape-api/build/repo/."
)
into("${buildDir}/bootstrap/repo/")
}
}
}
}