Add JavaVersion feature

This commit is contained in:
Dave Syer
2014-05-30 06:18:33 +01:00
parent d6c77bb9ef
commit ba480960c3
5 changed files with 24 additions and 1 deletions

View File

@@ -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>

View File

@@ -24,6 +24,8 @@ apply plugin: 'war'
baseName = '${artifactId}'
version = '${version}'
}
sourceCompatibility = ${javaVersion}
targetCompatibility = ${javaVersion}
repositories {
mavenCentral()<% if (!bootVersion.contains("RELEASE")) { %>

View File

@@ -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>