From 1bda3a6a8f7fee06b86367af754a4349fe0b6a07 Mon Sep 17 00:00:00 2001 From: jacques Date: Tue, 3 Sep 2024 12:39:10 +0200 Subject: [PATCH] Upgrade to gradle 8.0.2 --- app/build.gradle | 6 ++++-- build.gradle | 4 ++-- gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 774107b..bf7a711 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -82,8 +82,10 @@ android { namespace 'net.foucry.pilldroid' allprojects { - tasks.withType(JavaCompile) { - options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" + tasks.withType(JavaCompile).tap { + configureEach { + options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" + } } } } diff --git a/build.gradle b/build.gradle index e12786b..cdb68e5 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:8.0.2' + classpath 'com.android.tools.build:gradle:8.6.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -33,7 +33,7 @@ allprojects { } tasks.register('clean', Delete) { - delete rootProject.buildDir + delete rootProject } dependencies {} \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index fd3cb44..da558d9 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Fri Sep 22 18:17:05 CEST 2023 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists