Skip to content

Commit

Permalink
Publish to minco repo
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Feb 20, 2021
1 parent 4e78118 commit 08f3917
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,24 @@ dependencies {
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.add("-Xlint:-options")
}

publishing {
repositories {
System.getenv("DEPLOYMENT_REPO_PASSWORD")?.let { deploymentRepoPassword ->
maven {
url = if (releasing) {
name = "minco.dev_releases"
uri(System.getenv("DEPLOYMENT_REPO_URL_RELEASE"))
} else {
name = "minco.dev_snapshots"
uri(System.getenv("DEPLOYMENT_REPO_URL_SNAPSHOT"))
}
credentials {
username = System.getenv("DEPLOYMENT_REPO_USERNAME")
password = deploymentRepoPassword
}
}
}
}
}

0 comments on commit 08f3917

Please sign in to comment.