Speed up Gradle sync

This commit is contained in:
Niels Andriesse 2021-05-18 14:18:16 +10:00
parent 8a20c46bd4
commit 7c3bee036c
5 changed files with 6 additions and 12 deletions

View File

@ -22,7 +22,6 @@ apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlinx-serialization'
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
exclude module: "commons-logging"
}

View File

@ -1,6 +1,5 @@
buildscript {
repositories {
mavenLocal()
google()
mavenCentral()
}
@ -14,6 +13,7 @@ buildscript {
allprojects {
repositories {
mavenCentral()
maven {
url "https://raw.github.com/signalapp/maven/master/photoview/releases/"
content {
@ -52,4 +52,8 @@ allprojects {
}
google()
}
project.ext {
androidCompileSdkVersion = 30
}
}

View File

@ -2,6 +2,7 @@ apply plugin: 'java-gradle-plugin'
repositories {
google()
mavenCentral()
}
dependencies {

View File

@ -2,7 +2,6 @@ android.useAndroidX=true
android.enableJetifier=true
org.gradle.jvmargs=-Xmx2048m
androidCompileSdkVersion=30
kotlinVersion=1.4.32
kovenantVersion=3.3.0
curve25519Version=0.5.0

View File

@ -1,19 +1,10 @@
apply plugin: 'com.android.library'
apply plugin: 'maven'
apply plugin: 'kotlin-android'
android {
compileSdkVersion androidCompileSdkVersion
}
repositories {
mavenCentral()
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
implementation "androidx.annotation:annotation:1.2.0"
implementation "com.google.protobuf:protobuf-java:$protobufVersion"