This repository has been archived by the owner on Apr 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
56 lines (51 loc) · 2.19 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.41'
ext.build_tool_version = '3.3.0'
ext.android_license_tools_version = '1.7.0'
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$build_tool_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "com.cookpad.android.licensetools:license-tools-plugin:$android_license_tools_version"
}
}
subprojects {
repositories {
//https://plus.google.com/109385828142935151413/posts/hF7W59uZ7rX
maven { url "http://dl.bintray.com/populov/maven" }
maven { url 'https://maven.google.com' }
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url "https://dl.bintray.com/kotlin/ktor" }
maven { url "https://dl.bintray.com/nephyproject/stable" }
maven { url "https://dl.bintray.com/nephyproject/dev" }
mavenCentral()
jcenter()
}
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin" == plugin.class.name) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
} else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
}
// http://www.gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html
project.ext {
compileSdkVersion = 28
buildToolsVersion = '28.0.3'
// see http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance.
// CIサーバなどでは -PdisablePreDex をつける。 preDexが省略されてビルドが速くなる
preDexLibs = !project.hasProperty('disablePreDex')
kotlin_coroutines_version = '1.2.2'
android_support_version = "28.0.3"
anko_version = '0.10.8'
ktor_version = '1.2.3-rc'
kotlin_serialization_version = '0.10.0'
penicillin_version = '4.2.3-eap-36'
}