
dev.jeka.plugins.springboot.JkSpringRepos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springboot Show documentation
Show all versions of springboot Show documentation
A Jeka plugin for Spring boot application
package dev.jeka.plugins.springboot;
import dev.jeka.core.api.depmanagement.JkRepo;
import dev.jeka.core.api.depmanagement.JkRepoSet;
/**
* Download repositories of Spring IO company.
*/
public final class JkSpringRepos {
public static final JkRepo SNAPSHOT = JkRepo.of("https://repo.spring.io/snapshot/");
public static final JkRepo MILESTONE = JkRepo.of("https://repo.spring.io/milestone/");
public static final JkRepo RELEASE = JkRepo.of("https://repo.spring.io/release/");
public static JkRepoSet
getRepoForVersion(String releaseType) {
if ("BUILD-SNAPSHOT".equals(releaseType)) {
return SNAPSHOT.toSet();
}
if (releaseType.startsWith("M") || releaseType.startsWith("RC")) {
return MILESTONE.toSet();
}
return JkRepoSet.of();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy