Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions junit-modular-world/src/build/Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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");

Expand Down Expand Up @@ -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);
}
Expand Down