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:
@@ -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/")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user