Skip to content

Commit 00e7479

Browse files
author
mtctx
committed
feat(2.0.5): Fixed issues with vanniktech requiring properties
1 parent 5503bf2 commit 00e7479

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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.4"
28+
version = "2.0.5"
2929

3030
repositories {
3131
mavenCentral()

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ class UniPub : Plugin<Project> {
5959

6060
val usesVanniktechMavenPublish = target.plugins.hasPlugin("com.vanniktech.maven.publish")
6161
if (usesVanniktechMavenPublish) {
62-
target.gradle.startParameter.projectProperties["mavenCentralUsername"] = profile.username
63-
target.gradle.startParameter.projectProperties["mavenCentralPassword"] = profile.password
62+
target.setProperty("mavenCentralUsername", profile.username)
63+
target.setProperty("mavenCentralPassword", profile.password)
6464
target.logger.lifecycle("UniPub: Injected Gradle properties for Vanniktech (profile '${profile.name}')")
6565
}
6666

0 commit comments

Comments
 (0)