Skip to content

Commit 08f3917

Browse files
committed
Publish to minco repo
1 parent 4e78118 commit 08f3917

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,24 @@ dependencies {
5454
tasks.withType<JavaCompile>().configureEach {
5555
options.compilerArgs.add("-Xlint:-options")
5656
}
57+
58+
publishing {
59+
repositories {
60+
System.getenv("DEPLOYMENT_REPO_PASSWORD")?.let { deploymentRepoPassword ->
61+
maven {
62+
url = if (releasing) {
63+
name = "minco.dev_releases"
64+
uri(System.getenv("DEPLOYMENT_REPO_URL_RELEASE"))
65+
} else {
66+
name = "minco.dev_snapshots"
67+
uri(System.getenv("DEPLOYMENT_REPO_URL_SNAPSHOT"))
68+
}
69+
credentials {
70+
username = System.getenv("DEPLOYMENT_REPO_USERNAME")
71+
password = deploymentRepoPassword
72+
}
73+
}
74+
}
75+
}
76+
}
77+

0 commit comments

Comments
 (0)