ReaderforSelfoss/build.gradle

50 lines
1.3 KiB
Groovy
Raw Permalink Normal View History

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.3.31'
2018-10-12 18:51:36 +00:00
android_version = '1.0.0'
2019-05-12 19:17:45 +00:00
androidx_version = '1.1.0-alpha05'
lifecycle_version = '2.2.0-alpha01'
room_version = '2.1.0-beta01'
2019-05-12 19:17:45 +00:00
work_version = '1.0.1'
}
repositories {
2017-09-02 10:51:11 +00:00
google()
2018-10-12 20:50:43 +00:00
jcenter()
2017-10-21 18:10:19 +00:00
maven {
url "https://jitpack.io"
}
}
dependencies {
2019-04-06 10:42:25 +00:00
classpath 'com.android.tools.build:gradle:3.3.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
// For likebutton only
maven { url "https://jitpack.io" }
2018-10-12 20:50:43 +00:00
google()
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
}
}
}