Skip to content

Commit fe6b3e3

Browse files
committed
Attempt to fix a maven publish auth issue
1 parent b545758 commit fe6b3e3

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

buildSrc/src/main/kotlin/entitylib.library-conventions.gradle.kts

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ tasks {
5050
}
5151

5252
publishing {
53+
repositories {
54+
maven {
55+
name = "pvphub-maven-tofaa"
56+
url = uri("https://maven.pvphub.me/tofaa")
57+
credentials {
58+
username = System.getenv("PVPHUB_MAVEN_USERNAME")
59+
password = System.getenv("PVPHUB_MAVEN_SECRET")
60+
}
61+
}
62+
}
63+
5364
publications {
5465
create<MavenPublication>("EntityLib") {
5566
groupId = project.group as String
@@ -85,23 +96,6 @@ publishing {
8596
}
8697
}
8798
}
88-
89-
repositories {
90-
maven {
91-
name = "pvphubMavenTofaa"
92-
url = uri("https://maven.pvphub.me/tofaa")
93-
credentials {
94-
username = System.getenv("PVPHUB_MAVEN_USERNAME")
95-
password = System.getenv("PVPHUB_MAVEN_SECRET")
96-
}
97-
}
98-
}
99-
}
100-
101-
signing {
102-
if (!version.toString().endsWith("-SNAPSHOT")) {
103-
sign(publishing.publications["EntityLib"])
104-
}
10599
}
106100

107101
// So that SNAPSHOT is always the latest SNAPSHOT

0 commit comments

Comments
 (0)