ReaderforSelfoss/build.gradle

46 lines
1.2 KiB
Groovy
Raw Normal View History

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
2018-09-25 18:47:38 +00:00
kotlin_version = '1.2.51'
android_version = '28.0.0'
}
repositories {
jcenter()
2017-09-02 10:51:11 +00:00
google()
2017-10-21 18:10:19 +00:00
maven {
url "https://jitpack.io"
}
}
dependencies {
2018-10-12 18:36:18 +00:00
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
// For likebutton only
maven { url "https://jitpack.io" }
maven { url 'https://maven.google.com' }
jcenter()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
2017-06-11 10:04:39 +00:00
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
subprojects {
project.plugins.whenPluginAdded { plugin ->
2018-04-07 15:19:41 +00:00
if ("com.android.build.gradle.AppPlugin" == plugin.class.name) {
2017-06-11 10:04:39 +00:00
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
2018-04-07 15:19:41 +00:00
} else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) {
2017-06-11 10:04:39 +00:00
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
}