ReaderforSelfoss/build.gradle

43 lines
1.1 KiB
Groovy
Raw Normal View History

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
2018-03-27 17:59:34 +00:00
ext.kotlin_version = '1.2.31'
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 {
classpath 'com.android.tools.build:gradle:3.1.3'
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
}
}
}