Skip to content

Commit e49b150

Browse files
authored
Update build.gradle.kts
1 parent 7dc8ddf commit e49b150

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

build.gradle.kts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,19 @@ dependencies {
2626
publishing {
2727
repositories {
2828
maven {
29+
authentication {
30+
credentials(PasswordCredentials::class) {
31+
// Those credentials need to be set under "Settings -> Secrets -> Actions" in your repository
32+
username = System.getenv("ONELITEFEATHER_MAVEN_USERNAME")
33+
password = System.getenv("ONELITEFEATHER_MAVEN_PASSWORD")
34+
}
35+
}
2936
name = "OneLiteFeatherRepository"
3037
url = if (project.version.toString().contains("SNAPSHOT")) {
3138
uri("https://repo.onelitefeather.dev/onelitefeather-snapshots")
3239
} else {
3340
uri("https://repo.onelitefeather.dev/onelitefeather-releases")
3441
}
35-
credentials {
36-
username = System.getenv("ONELITEFEATHER_MAVEN_USERNAME")
37-
password = System.getenv("ONELITEFEATHER_MAVEN_PASSWORD")
38-
}
39-
credentials(PasswordCredentials::class)
40-
authentication {
41-
create<BasicAuthentication>("basic")
42-
}
4342
}
4443
}
4544
publications {

0 commit comments

Comments
 (0)