Skip to content

Commit c962de0

Browse files
author
mtctx
committed
feat(2.0.6): Still fixing issues with vanniktech requiring properties
1 parent 07d08fd commit c962de0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ plugins {
2525
}
2626

2727
group = "dev.mtctx.unipub"
28-
version = "2.0.6"
28+
version = "2.0.7"
2929

3030
repositories {
3131
mavenCentral()

src/main/kotlin/dev/mtctx/unipub/UniPub.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ class UniPub : Plugin<Project> {
5858
)
5959

6060
target.pluginManager.withPlugin("com.vanniktech.maven.publish") {
61-
target.extensions.extraProperties.set("mavenCentralUsername", profile.username)
62-
target.extensions.extraProperties.set("mavenCentralPassword", profile.password)
63-
target.logger.lifecycle("UniPub: Injected Gradle properties for Vanniktech (profile '${profile.name}')")
61+
System.setProperty("org.gradle.project.mavenCentralUsername", profile.username)
62+
System.setProperty("org.gradle.project.mavenCentralPassword", profile.password)
63+
target.logger.lifecycle("> UniPub: Injected Gradle properties for Vanniktech (profile '${profile.name}')")
6464
}
6565

6666
target.tasks.withType(PublishToMavenRepository::class.java).configureEach {
@@ -72,7 +72,7 @@ class UniPub : Plugin<Project> {
7272
password = password?.takeIf { it.isNotBlank() && it.isNotEmpty() } ?: profile.password
7373
}
7474

75-
logger.lifecycle("UniPub: Injected credentials for profile '${profile.name}'")
75+
logger.lifecycle("> UniPub: Injected credentials for profile '${profile.name}'")
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)