From 4e18245063bc8358de1ed1c0d1756545d82d72c4 Mon Sep 17 00:00:00 2001 From: Zongle Wang Date: Mon, 2 Sep 2024 03:18:38 -0400 Subject: [PATCH] Rearrange blocks (#954) --- build.gradle | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 207a51fd6..5b7215803 100644 --- a/build.gradle +++ b/build.gradle @@ -20,6 +20,17 @@ apply from: file('gradle/vuepress.gradle') apply from: file('gradle/ghPages.gradle') apply from: file('gradle/dependencies.gradle') +java { + sourceCompatibility = '1.8' + targetCompatibility = '1.8' +} + +idea { + project { + languageLevel = '1.8' + } +} + tasks.withType(Test).configureEach { useJUnitPlatform() @@ -50,19 +61,10 @@ tasks.named('shadowJar', ShadowJar) { enableRelocation true } -idea { - project { - languageLevel = '1.8' - } -} - tasks.named('ideaModule') { notCompatibleWithConfigurationCache("https://github.com/gradle/gradle/issues/13480") } -sourceCompatibility = '1.8' -targetCompatibility = '1.8' - tasks.register('downloadDependencies', Exec) { dependsOn configurations.testRuntimeClasspath commandLine 'echo', 'Downloaded all dependencies'