mirror of
https://gitee.com/dcren/initializr.git
synced 2025-10-21 19:17:38 +08:00
Leave out repositories if not necessary
This commit is contained in:
@@ -3,9 +3,10 @@ buildscript {
|
||||
springBootVersion = '${bootVersion}'
|
||||
}
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenLocal()<% if (!bootVersion.contains("RELEASE")) { %>
|
||||
maven { url "http://repo.spring.io/snapshot" }
|
||||
maven { url "http://repo.spring.io/milestone" }
|
||||
<% } %>
|
||||
}
|
||||
dependencies {
|
||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:\${springBootVersion}")
|
||||
@@ -24,9 +25,10 @@ jar {
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenCentral()<% if (!bootVersion.contains("RELEASE")) { %>
|
||||
maven { url "http://repo.spring.io/snapshot" }
|
||||
maven { url "http://repo.spring.io/milestone" }
|
||||
<% } %>
|
||||
}
|
||||
|
||||
dependencies {<% styles.each { %>
|
||||
|
@@ -30,9 +30,7 @@
|
||||
|
||||
<properties>
|
||||
<start-class>${packageName}.Application</start-class>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<java.version>1.7</java.version>
|
||||
<java.version>1.7</java.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
@@ -42,7 +40,7 @@
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</build><% if (!bootVersion.contains("RELEASE")) { %>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
@@ -80,5 +78,6 @@
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
<% } %>
|
||||
|
||||
</project>
|
Reference in New Issue
Block a user