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