Skip to content

Commit cc66328

Browse files
authored
chore(ci): remove one unused publishing config (#1510)
There are two configs, the other one is in https://github.com/typesafegithub/github-workflows-kt/blob/ab02d5383a06889801d25b96e98639fa6688497e/build.gradle.kts#L11. Ideally I'd like to remove this one so that publishing-related config is kept in a single place, but this one is actually used. It's easier for me to test removing something that is not used.
1 parent ab02d53 commit cc66328

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

buildSrc/src/main/kotlin/buildsrc/convention/publishing.gradle.kts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,6 @@ publishing {
4545
}
4646
}
4747
}
48-
49-
val ossrhUsername: String? by project
50-
val ossrhPassword: String? by project
51-
52-
repositories {
53-
maven {
54-
val releasesRepoUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
55-
val snapshotsRepoUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
56-
url = if (!project.version.toString().endsWith("-SNAPSHOT")) releasesRepoUrl else snapshotsRepoUrl
57-
58-
credentials {
59-
username = ossrhUsername
60-
password = ossrhPassword
61-
}
62-
}
63-
}
6448
}
6549

6650
signing {

0 commit comments

Comments
 (0)