mirror of
https://gitee.com/dcren/initializr.git
synced 2025-10-21 11:07:37 +08:00
Add JavaVersion feature
This commit is contained in:
@@ -58,6 +58,12 @@
|
||||
<input type="radio" name="packaging" value="${it.value}"${it.selected==true ? ' checked="true"' : ''}/>
|
||||
${it.name}
|
||||
</label><% } %>
|
||||
<label>Java Version:</label>
|
||||
<% javaVersions.each { %>
|
||||
<label class="radio">
|
||||
<input type="radio" name="packaging" value="${it.value}"${it.selected==true ? ' checked="true"' : ''}/>
|
||||
${it.value}
|
||||
</label><% } %>
|
||||
<button type="submit" class="btn">Generate</button>
|
||||
</form>
|
||||
</div>
|
||||
|
@@ -24,6 +24,8 @@ apply plugin: 'war'
|
||||
baseName = '${artifactId}'
|
||||
version = '${version}'
|
||||
}
|
||||
sourceCompatibility = ${javaVersion}
|
||||
targetCompatibility = ${javaVersion}
|
||||
|
||||
repositories {
|
||||
mavenCentral()<% if (!bootVersion.contains("RELEASE")) { %>
|
||||
|
@@ -33,7 +33,7 @@
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<start-class>${packageName}.Application</start-class>
|
||||
<java.version>1.7</java.version>
|
||||
<java.version>${javaVersion}</java.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
|
Reference in New Issue
Block a user