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

@@ -92,22 +92,16 @@ subprojects {
configure<PublishingExtension> {
repositories {
maven {
name = "runelite"
url = uri("https://maven.pkg.github.com/open-osrs/runelite")
credentials {
username = System.getProperty("gpr_user")
password = System.getProperty("gpr_key")
}
url = uri("$buildDir/repo")
}
}
publications {
register("gpr", MavenPublication::class) {
register("mavenJava", MavenPublication::class) {
from(components["java"])
}
}
}
tasks {
java {
sourceCompatibility = JavaVersion.VERSION_11