SpringCloud 快照版本
2023-12-11 17:04 更新
将其他快照存储库添加到您的build.gradle
文件中以使用快照版本,快照版本在每次成功构建后都会自动上载:
Maven.
<repositories> <repository> <id>spring-snapshots</id> <name>Spring Snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>spring-releases</id> <name>Spring Releases</name> <url>https://repo.spring.io/release</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>spring-snapshots</id> <name>Spring Snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>spring-releases</id> <name>Spring Releases</name> <url>https://repo.spring.io/release</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories>
Gradle.
/* We need to use the [buildscript {}] section when we have to modify the classpath for the plugins. If that's not the case this section can be skipped. If you don't need to modify the classpath (e.g. add a Pact dependency), then you can just set the [pluginManagement {}] section in [settings.gradle] file. // settings.gradle pluginManagement { repositories { // for snapshots maven {url "https://repo.spring.io/snapshot"} // for milestones maven {url "https://repo.spring.io/milestone"} // for GA versions gradlePluginPortal() } } */ buildscript { repositories { mavenCentral() mavenLocal() maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/milestone" } maven { url "https://repo.spring.io/release" } }
以上内容是否对您有帮助:
更多建议: