From 8efc44d6f6ec627f9650e7cf5e7f2cdf0431febb Mon Sep 17 00:00:00 2001 From: "Vladislav.Soroka" Date: Fri, 17 Feb 2017 02:12:22 +0300 Subject: [PATCH] gradle: update java project template --- .../frameworkSupport/GradleJavaFrameworkSupportProvider.java | 4 ++-- .../org/jetbrains/plugins/gradle/GradleProjectWizardTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/frameworkSupport/GradleJavaFrameworkSupportProvider.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/frameworkSupport/GradleJavaFrameworkSupportProvider.java index 5c73ee46e1ac..44d3910499c9 100644 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/frameworkSupport/GradleJavaFrameworkSupportProvider.java +++ b/plugins/gradle/src/org/jetbrains/plugins/gradle/frameworkSupport/GradleJavaFrameworkSupportProvider.java @@ -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'"); } } diff --git a/plugins/gradle/testSources/org/jetbrains/plugins/gradle/GradleProjectWizardTest.java b/plugins/gradle/testSources/org/jetbrains/plugins/gradle/GradleProjectWizardTest.java index 40fe15abf229..e233bf47f46d 100644 --- a/plugins/gradle/testSources/org/jetbrains/plugins/gradle/GradleProjectWizardTest.java +++ b/plugins/gradle/testSources/org/jetbrains/plugins/gradle/GradleProjectWizardTest.java @@ -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))); }