Skip to content

Commit 345e6eb

Browse files
committed
fix: build failure because of bungee-chat (in central)
1 parent e309ce4 commit 345e6eb

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

build.gradle.kts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ plugins {
66
}
77

88
group = "net.azisaba"
9-
version = if(System.getenv("CI") == "true") {
10-
// If in CI environment, it requires VERSION from env.
11-
System.getenv("VERSION") ?: error("Failed to get version from environment")
12-
} else {
13-
"0.1.0-SNAPSHOT"
14-
}
9+
version =
10+
if (System.getenv("CI") == "true") {
11+
// If in CI environment, it requires VERSION from env.
12+
System.getenv("VERSION") ?: error("Failed to get version from environment")
13+
} else {
14+
"0.1.0-SNAPSHOT"
15+
}
1516

1617
description = "RyuZUPluginChat"
1718
java.sourceCompatibility = JavaVersion.VERSION_1_8
@@ -20,13 +21,14 @@ val orgName: String by project
2021
val repoUrl: String by project
2122

2223
repositories {
23-
mavenCentral()
24-
maven("https://oss.sonatype.org/content/groups/public/")
24+
mavenCentral {
25+
content {
26+
excludeGroup("net.md-5") // It can't resolve from maven central
27+
}
28+
}
29+
maven("https://repo.papermc.io/repository/maven-public/")
2530
maven("https://repo.azisaba.net/repository/maven-public/")
26-
maven("https://papermc.io/repo/repository/maven-snapshots/")
27-
maven("https://papermc.io/repo/repository/maven-public/")
2831
maven("https://repo.aikar.co/content/groups/aikar/")
29-
maven("https://repo.maven.apache.org/maven2/")
3032
}
3133

3234
dependencies {

0 commit comments

Comments
 (0)