diff --git a/junit-modular-world/src/build/Project.java b/junit-modular-world/src/build/Project.java index 75200c1d..37067f4c 100644 --- a/junit-modular-world/src/build/Project.java +++ b/junit-modular-world/src/build/Project.java @@ -43,6 +43,7 @@ void compile() throws Exception { // // download main and test dependencies // + // with "main-SNAPSHOT" as version(s) artifacts will be retrieved from JitPack String platformVersion = "1.13.1"; String jupiterVersion = "5.13.1"; String vintageVersion = "5.13.1"; @@ -60,6 +61,7 @@ void compile() throws Exception { get("lib", "org.apiguardian", "apiguardian-api", "1.1.2"); get("lib", "org.opentest4j", "opentest4j", "1.3.0"); get("lib", "org.opentest4j.reporting", "open-test-reporting-tooling-spi", "0.2.3"); + get("lib", "org.jspecify", "jspecify", "1.0.0"); get("lib", "net.jqwik", "jqwik-api", "1.9.3"); get("lib", "net.jqwik", "jqwik-engine", "1.9.3"); @@ -400,6 +402,10 @@ Path get(String directory, URI uri) throws Exception { Path get(String directory, String group, String artifact, String version) throws Exception { String repo = "https://repo1.maven.org/maven2"; String file = artifact + "-" + version + ".jar"; + if (version.endsWith("SNAPSHOT")) { + repo = "https://jitpack.io"; + group = "com/github/junit-team/junit-framework"; + } URI uri = URI.create(String.join("/", repo, group.replace('.', '/'), artifact, version, file)); return get(directory, uri); }