All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.jeka.plugins.springboot.JkSpringRepos Maven / Gradle / Ivy

There is a newer version: 2.0.0.RC7
Show newest version
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