bump gradle and gradle plugin as auto-applied by Android Studio Arctic Fox (2020.3.1)

Bump protobuf gradle plugin to fix build
Also bump other unrelated dependencies and fix some linting
This commit is contained in:
Andreas Shimokawa 2021-07-29 18:09:15 +02:00
parent 4b6548d5c2
commit c6bff25d29
4 changed files with 13 additions and 9 deletions

View File

@ -1,5 +1,5 @@
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin:'application'
archivesBaseName = 'gadgetbridge-daogenerator'

View File

@ -1,3 +1,7 @@
import com.github.spotbugs.SpotBugsTask
import java.nio.file.Files
apply plugin: "com.android.application"
apply plugin: "com.github.spotbugs"
apply plugin: "pmd"
@ -8,7 +12,7 @@ def ABORT_ON_CHECK_FAILURE = false
tasks.withType(Test) {
systemProperty "MiFirmwareDir", System.getProperty("MiFirmwareDir", null)
systemProperty "logback.configurationFile", System.getProperty("user.dir", null) + "/app/src/main/assets/logback.xml"
systemProperty "GB_LOGFILES_DIR", java.nio.file.Files.createTempDirectory("gblog").toString()
systemProperty "GB_LOGFILES_DIR", Files.createTempDirectory("gblog").toString()
}
android {
@ -70,16 +74,16 @@ dependencies {
testImplementation "com.google.code.gson:gson:2.8.6"
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "androidx.appcompat:appcompat:1.3.0"
implementation "androidx.appcompat:appcompat:1.3.1"
implementation "androidx.preference:preference:1.1.1"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.2.0"
implementation "androidx.recyclerview:recyclerview:1.2.1"
implementation "androidx.legacy:legacy-support-v4:1.0.0"
implementation "androidx.gridlayout:gridlayout:1.0.0"
implementation "androidx.multidex:multidex:2.0.1"
implementation "androidx.palette:palette:1.0.0"
implementation "com.google.android.material:material:1.3.0"
implementation "com.google.android.material:material:1.4.0"
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation "com.google.code.gson:gson:2.8.6"
@ -167,7 +171,7 @@ spotbugs {
reportLevel = "medium"
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
tasks.withType(SpotBugsTask) {
source = fileTree('src/main/java')
classes = files("${project.rootDir}/app/build/intermediates/javac/debug/classes")
excludeFilter = new File("${project.rootDir}/config/findbugs/findbugs-filter.xml")

View File

@ -9,10 +9,10 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:2.0.0'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.17'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip