Reformat publishing section of build.gradle.kts

This commit is contained in:
2023-09-01 19:57:54 +10:00
parent 0e0d0158ae
commit 0d82430968

View File

@ -13,7 +13,6 @@ repositories {
dependencies {
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.3.3")
testImplementation(kotlin("test"))
}
@ -43,15 +42,10 @@ publishing {
repositories {
mavenLocal()
var githubPackagesToken = System.getenv("GITHUB_TOKEN")
if (githubPackagesToken == null) {
githubPackagesToken = project.findProperty("github.token") as String?
}
var gitlabPackagesToken = System.getenv("GITLAB_TOKEN")
if (gitlabPackagesToken == null) {
gitlabPackagesToken = project.findProperty("gitlab.com.accessToken") as String?
}
val githubPackagesToken = System.getenv("GITHUB_TOKEN")
?: project.findProperty("github.token") as String?
val gitlabPackagesToken = System.getenv("GITLAB_TOKEN")
?: project.findProperty("gitlab.com.accessToken") as String?
maven {
name = "GitHubPackages"
@ -69,7 +63,6 @@ publishing {
name = "Private-Token"
value = gitlabPackagesToken
}
authentication {
create<HttpHeaderAuthentication>("header")
}