Skip to content

Commit

Permalink
useragent for sponge
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolMineman committed Sep 20, 2022
1 parent 962e7d8 commit 31eb4ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static URI uri(String uri) {
public static InputStream inputStream(URL url) {
try {
URLConnection con = url.openConnection();
con.addRequestProperty("User-Agent", "brachyura");
con.addRequestProperty("Accept-Encoding", "gzip");
long size = con.getContentLengthLong();
Logger.info("Downloading {} ({})", url, size == -1 ? "unknown size" : humanReadableByteCountSI(size));
Expand Down
4 changes: 2 additions & 2 deletions buildscript/src/main/java/Buildscript.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public final void test() {
public final BJavaModule brachyura = new BJavaModule() {
@Override
MavenId getId() {
return new MavenId(GROUP, "brachyura", "0.93");
return new MavenId(GROUP, "brachyura", "0.94");
}

@Override
Expand Down Expand Up @@ -364,7 +364,7 @@ MavenId getId() {

@Override
protected List<JavaJarDependency> createDependencies() {
return Collections.singletonList(Maven.getMavenJarDep("https://maven.fabricmc.net/", new MavenId("net.fabricmc", "sponge-mixin", "0.11.4+mixin.0.8.5")));
return Collections.singletonList(Maven.getMavenJarDep("https://repo.spongepowered.org/repository/maven-public/", new MavenId("org.spongepowered", "mixin", "0.8.3")));
}

@Override
Expand Down

0 comments on commit 31eb4ca

Please sign in to comment.