Compare commits

..

2 commits

Author SHA1 Message Date
d076592803
[maven-release-plugin] prepare release jarupdater-0.1.7 2024-10-27 16:10:15 +01:00
8508ad1d8b
fix this 2024-10-27 16:10:10 +01:00
2 changed files with 8 additions and 9 deletions

View file

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>eu.m724</groupId>
<artifactId>jarupdater</artifactId>
<version>0.1.7-SNAPSHOT</version>
<version>0.1.7</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
@ -63,6 +63,6 @@
<scm>
<developerConnection>scm:git:git@git.m724.eu:Minecon724/jarupdater.git</developerConnection>
<tag>HEAD</tag>
<tag>jarupdater-0.1.7</tag>
</scm>
</project>

View file

@ -1,15 +1,14 @@
package jarupdater;
import eu.m724.jarupdater.live.MetadataDAO;
import eu.m724.jarupdater.object.Version;
import java.io.IOException;
import java.nio.file.NoSuchFileException;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException;
import eu.m724.jarupdater.live.MetadataDAO;
import eu.m724.jarupdater.object.Version;
public class MockMetadataDAO implements MetadataDAO {
@Override
@ -25,13 +24,13 @@ public class MockMetadataDAO implements MetadataDAO {
switch (versionLabel) {
case "1.0":
version = new Version(1, 100, "1.0", fileUrl, "dd3822ed965b2820aa0800f04b86f26d0b656fca3b97ddd264046076f81e3a24");
version = new Version(1, 100, "1.0", fileUrl, null, "dd3822ed965b2820aa0800f04b86f26d0b656fca3b97ddd264046076f81e3a24");
break;
case "1.1":
version = new Version(2, 200, "1.1", fileUrl, "4d59994f607b89987d5bff430a4229edbbb045b3da9eaf1c63fa8e5fb208d824");
version = new Version(2, 200, "1.1", fileUrl, null,"4d59994f607b89987d5bff430a4229edbbb045b3da9eaf1c63fa8e5fb208d824");
break;
case "latest":
version = new Version(2, 200, "1.1", fileUrl, "4d59994f607b89987d5bff430a4229edbbb045b3da9eaf1c63fa8e5fb208d824");
version = new Version(2, 200, "1.1", fileUrl, null, "4d59994f607b89987d5bff430a4229edbbb045b3da9eaf1c63fa8e5fb208d824");
break;
default:
return CompletableFuture.failedFuture(new CompletionException(new IOException("no such version")));