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' apply plugin: 'kotlinx-serialization'
configurations.all { configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
exclude module: "commons-logging" exclude module: "commons-logging"
} }

View File

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

View File

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

View File

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

View File

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