gradle: update java project template

This commit is contained in:
Vladislav.Soroka
2017-02-17 02:12:22 +03:00
parent 9033fb1292
commit 8efc44d6f6
2 changed files with 4 additions and 4 deletions
@@ -64,8 +64,8 @@ public class GradleJavaFrameworkSupportProvider extends GradleFrameworkSupportPr
@NotNull BuildScriptDataBuilder buildScriptData) {
buildScriptData
.addPluginDefinition("apply plugin: 'java'")
.addPropertyDefinition("sourceCompatibility = 1.5")
.addPropertyDefinition("sourceCompatibility = 1.8")
.addRepositoriesDefinition("mavenCentral()")
.addDependencyNotation("testCompile group: 'junit', name: 'junit', version: '4.11'");
.addDependencyNotation("testCompile group: 'junit', name: 'junit', version: '4.12'");
}
}
@@ -74,14 +74,14 @@ public class GradleProjectWizardTest extends NewProjectWizardTestCase {
"\n" +
"apply plugin: 'java'\n" +
"\n" +
"sourceCompatibility = 1.5\n" +
"sourceCompatibility = 1.8\n" +
"\n" +
"repositories {\n" +
" mavenCentral()\n" +
"}\n" +
"\n" +
"dependencies {\n" +
" testCompile group: 'junit', name: 'junit', version: '4.11'\n" +
" testCompile group: 'junit', name: 'junit', version: '4.12'\n" +
"}\n",
StringUtil.convertLineSeparators(VfsUtilCore.loadText(buildScript)));
}