mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-15 23:20:44 +00:00
Add debug output for publish
This commit is contained in:
@@ -19,6 +19,10 @@ project.extensions.configure<GradleEnterpriseExtension> {
|
|||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
|
||||||
|
// TODO: We probably don't want to apply these to every project
|
||||||
|
apply(plugin = "java-library")
|
||||||
|
apply(plugin = "maven-publish")
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
||||||
@@ -48,20 +52,21 @@ allprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pluginManager.withPlugin("maven-publish") {
|
|
||||||
configure<PublishingExtension> {
|
|
||||||
val githubActor = System.getenv("GITHUB_ACTOR")
|
|
||||||
val githubToken = System.getenv("GITHUB_TOKEN")
|
|
||||||
|
|
||||||
repositories {
|
configure<PublishingExtension> {
|
||||||
if (githubActor != null && githubToken != null) {
|
val githubActor = System.getenv("GITHUB_ACTOR")
|
||||||
maven {
|
val githubToken = System.getenv("GITHUB_TOKEN")
|
||||||
name = "GitHubPackages"
|
|
||||||
url = uri("https://maven.pkg.github.com/CivMC/Civ")
|
repositories {
|
||||||
credentials {
|
logger.info("GITHUB_ACTOR: ${githubActor != null}")
|
||||||
username = githubActor
|
logger.info("GITHUB_TOKEN: ${githubToken != null}")
|
||||||
password = githubToken
|
if (githubActor != null && githubToken != null) {
|
||||||
}
|
maven {
|
||||||
|
name = "GitHubPackages"
|
||||||
|
url = uri("https://maven.pkg.github.com/CivMC/Civ")
|
||||||
|
credentials {
|
||||||
|
username = githubActor
|
||||||
|
password = githubToken
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -94,9 +99,3 @@ allprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: We probably don't want to apply this to every subproject
|
|
||||||
subprojects {
|
|
||||||
apply(plugin = "java-library")
|
|
||||||
apply(plugin = "maven-publish")
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user