File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ fun MavenPom.configureMavenCentralMetadata(project: Project) {
48
48
* dev build into 'https://maven.pkg.jetbrains.space/public/p/kotlinx-coroutines/maven' Maven repository.
49
49
* In order to use it, pass the corresponding ENV to the TC 'Deploy' task.
50
50
*/
51
- private val spacePublicationEnabled = System .getenv(" libs.space.pub" )?.equals(" true" ) ? : false
51
+ private val Project .spacePublicationEnabled: Boolean
52
+ get() = getSensitiveProperty(" libs.space.pub" )?.equals(" true" ) ? : false
52
53
53
54
fun Project.mavenRepositoryUri (): URI {
54
55
if (spacePublicationEnabled) {
@@ -68,7 +69,7 @@ fun configureMavenPublication(rh: RepositoryHandler, project: Project) {
68
69
rh.maven {
69
70
url = project.mavenRepositoryUri()
70
71
credentials {
71
- if (spacePublicationEnabled) {
72
+ if (project. spacePublicationEnabled) {
72
73
// Configure space credentials
73
74
username = project.getSensitiveProperty(" libs.space.user" )
74
75
password = project.getSensitiveProperty(" libs.space.password" )
You can’t perform that action at this time.
0 commit comments