diff --git a/app/build.gradle b/app/build.gradle index 54b3ba3ae..5e1625d55 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,7 +10,7 @@ apply plugin: 'checkstyle' android { compileSdkVersion 29 - buildToolsVersion '29.0.3' + buildToolsVersion '30.0.3' defaultConfig { applicationId "org.schabi.newpipe" @@ -121,7 +121,7 @@ configurations { } checkstyle { - configDir rootProject.file(".") + getConfigDirectory().set(rootProject.file(".")) ignoreFailures false showViolations true toolVersion = checkstyleVersion @@ -140,8 +140,8 @@ task runCheckstyle(type: Checkstyle) { showViolations true reports { - xml.enabled true - html.enabled true + xml.getRequired().set(true) + html.getRequired().set(true) } } @@ -151,7 +151,7 @@ def inputFiles = project.fileTree(dir: "src", include: "**/*.kt") task runKtlint(type: JavaExec) { inputs.files(inputFiles) outputs.dir(outputDir) - main = "com.pinterest.ktlint.Main" + getMainClass().set("com.pinterest.ktlint.Main") classpath = configurations.ktlint args "src/**/*.kt" } @@ -159,7 +159,7 @@ task runKtlint(type: JavaExec) { task formatKtlint(type: JavaExec) { inputs.files(inputFiles) outputs.dir(outputDir) - main = "com.pinterest.ktlint.Main" + getMainClass().set("com.pinterest.ktlint.Main") classpath = configurations.ktlint args "-F", "src/**/*.kt" } diff --git a/build.gradle b/build.gradle index f3a2f53b5..363404848 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:4.1.3' + classpath 'com.android.tools.build:gradle:4.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index e708b1c02..7454180f2 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 8cf6eb5ad..af7be50b1 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 4f906e0c8..744e882ed 100755 --- a/gradlew +++ b/gradlew @@ -72,7 +72,7 @@ case "`uname`" in Darwin* ) darwin=true ;; - MINGW* ) + MSYS* | MINGW* ) msys=true ;; NONSTOP* )