Skip to content

Commit 1cd667f

Browse files
committed
Set content filter for custom maven servers
1 parent ad2a1b8 commit 1cd667f

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ In case you want to include ViaBedrock, you have to add the Lenni0451 maven repo
5656
repositories {
5757
maven {
5858
name = "Lenni0451"
59-
url = "https://maven.lenni0451.net/everything"
59+
url = "https://maven.lenni0451.net/snapshots"
6060
}
6161
}
6262
```

build.gradle

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,36 @@ repositories {
1111
maven {
1212
name = "ViaVersion"
1313
url = "https://repo.viaversion.com"
14+
15+
content {
16+
includeGroupByRegex "com\\.viaversion(\\..+)?"
17+
includeGroupByRegex "net\\.raphimc(\\..+)?"
18+
}
1419
}
1520
maven {
1621
name = "Lenni0451"
17-
url = "https://maven.lenni0451.net/everything"
22+
url = "https://maven.lenni0451.net/snapshots"
23+
24+
content {
25+
includeGroupByRegex "net\\.lenni0451(\\..+)?"
26+
includeGroupByRegex "net\\.raphimc(\\..+)?"
27+
}
1828
}
1929
maven {
2030
name = "OpenCollab Releases"
21-
url = "https://repo.opencollab.dev/maven-releases/"
31+
url = "https://repo.opencollab.dev/maven-releases"
32+
33+
content {
34+
includeGroupByRegex "org\\.cloudburstmc(\\..+)?"
35+
}
2236
}
2337
maven {
2438
name = "OpenCollab Snapshots"
25-
url = "https://repo.opencollab.dev/maven-snapshots/"
39+
url = "https://repo.opencollab.dev/maven-snapshots"
40+
41+
content {
42+
includeGroupByRegex "org\\.cloudburstmc(\\..+)?"
43+
}
2644
}
2745
maven {
2846
name = "Minecraft Libraries"
@@ -37,7 +55,7 @@ repositories {
3755
url = "https://jitpack.io"
3856

3957
content {
40-
includeGroup "com.github.Oryxel"
58+
includeGroupByRegex "com\\.github\\..+"
4159
}
4260
}
4361
}

0 commit comments

Comments
 (0)