File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,10 @@ fun MavenPom.configureMavenCentralMetadata(project: Project) {
50
50
*/
51
51
private val spacePublicationEnabled = System .getenv(" libs.space.pub" )?.equals(" true" ) ? : false
52
52
53
- fun mavenRepositoryUri (): URI {
53
+ fun Project. mavenRepositoryUri (): URI {
54
54
if (spacePublicationEnabled) {
55
- return URI (" https://maven.pkg.jetbrains.space/public/p/kotlinx-coroutines/maven" )
55
+ val spaceRepoUrl = getSensitiveProperty(" libs.space.url" )
56
+ return URI (spaceRepoUrl ? : " https://maven.pkg.jetbrains.space/public/p/kotlinx-coroutines/maven" )
56
57
}
57
58
58
59
val repositoryId: String? = System .getenv(" libs.repository.id" )
@@ -65,7 +66,7 @@ fun mavenRepositoryUri(): URI {
65
66
66
67
fun configureMavenPublication (rh : RepositoryHandler , project : Project ) {
67
68
rh.maven {
68
- url = mavenRepositoryUri()
69
+ url = project. mavenRepositoryUri()
69
70
credentials {
70
71
if (spacePublicationEnabled) {
71
72
// Configure space credentials
You can’t perform that action at this time.
0 commit comments