Skip to content

Commit 37616bb

Browse files
committed
build: fix publishing
1 parent f302c4f commit 37616bb

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

build.gradle.kts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,18 @@ java {
3535
}
3636

3737
allprojects {
38-
repositories {
39-
maven(System.getenv("REPOSILITE_URL") ?: "https://reposilite.silenium.dev/snapshots") {
40-
name = "reposilite"
41-
credentials {
42-
username =
43-
System.getenv("REPOSILITE_USERNAME") ?: project.findProperty("reposiliteUser") as String? ?: ""
44-
password =
45-
System.getenv("REPOSILITE_PASSWORD") ?: project.findProperty("reposilitePassword") as String? ?: ""
38+
apply<MavenPublishPlugin>()
39+
40+
publishing {
41+
repositories {
42+
maven(System.getenv("REPOSILITE_URL") ?: "https://reposilite.silenium.dev/snapshots") {
43+
name = "reposilite"
44+
credentials {
45+
username =
46+
System.getenv("REPOSILITE_USERNAME") ?: project.findProperty("reposiliteUser") as String? ?: ""
47+
password =
48+
System.getenv("REPOSILITE_PASSWORD") ?: project.findProperty("reposilitePassword") as String? ?: ""
49+
}
4650
}
4751
}
4852
}

0 commit comments

Comments
 (0)