Skip to content

Commit f968bf2

Browse files
author
mtctx
committed
feat(2.0.2): Not injecting credentials into file staging repos
1 parent 88902ff commit f968bf2

File tree

2 files changed

+3
-1
lines changed

2 files changed

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

3030
repositories {
3131
mavenCentral()

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

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

4949
target.tasks.withType(PublishToMavenRepository::class.java).configureEach {
5050
doFirst {
51+
if (repository.url.scheme == "file") return@doFirst
52+
5153
val settings =
5254
loadAndValidateSettingsFile(extension, projectPath(target.project.projectDir.absolutePath))
5355
val profile = settings.profiles.find { it.name == extension.profileName }

0 commit comments

Comments
 (0)