We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f32eb commit 76905b6Copy full SHA for 76905b6
build.gradle.kts
@@ -24,9 +24,15 @@ fun RepositoryHandler.flintRepository() {
24
distributorUrl = project.properties.getOrDefault(
25
"net.flintmc.distributor.url",
26
"https://dist.labymod.net"
27
- ).toString() + "/api/v1/maven/release"
+ ).toString()
28
}
29
30
+ if(distributorUrl.endsWith('/')) {
31
+ distributorUrl = distributorUrl.substringBeforeLast('/')
32
+ }
33
+
34
+ distributorUrl += "/api/v1/maven/release"
35
36
var bearerToken = System.getenv("FLINT_DISTRIBUTOR_BEARER_TOKEN")
37
38
if (bearerToken == null) {
0 commit comments