From 96cdcad2af61512655c3ec733c6b597c5b9373e5 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 5 Apr 2020 11:19:34 +0100 Subject: [PATCH] Use tasks extension methods where possible Signed-off-by: Graham --- all/build.gradle.kts | 3 +-- build.gradle.kts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/all/build.gradle.kts b/all/build.gradle.kts index cd89e8f272..9bbaa3dc63 100644 --- a/all/build.gradle.kts +++ b/all/build.gradle.kts @@ -1,4 +1,3 @@ -import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import com.github.jk1.license.render.TextReportRenderer plugins { @@ -24,7 +23,7 @@ dependencies { implementation(project(":game")) } -tasks.withType { +tasks.shadowJar { minimize() } diff --git a/build.gradle.kts b/build.gradle.kts index 9128d081af..2871ad684c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,3 @@ -import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @@ -181,7 +180,7 @@ configure(subprojects.filter { it.free }) { val rejectVersionRegex = Regex("(?i)[._-](?:alpha|beta|rc|cr|m)") -tasks.withType { +tasks.dependencyUpdates { gradleReleaseChannel = "current" revision = "release"