This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
63 lines (51 loc) · 1.77 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
57
58
59
60
61
62
63
buildscript {
ext.kotlin_version = '1.1.2'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
ext {
androidPlugin = 'com.android.tools.build:gradle:2.1.3'
minSdkVersion = 14
targetSdkVersion = 23
compileSdkVersion = 23
buildToolsVersion = '23.0.2'
sourceCompatibilityVersion = JavaVersion.VERSION_1_7
targetCompatibilityVersion = JavaVersion.VERSION_1_7
gradleVersionsPlugin = 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
aptPlugin = 'com.neenbedankt.gradle.plugins:android-apt:1.8'
ci = 'true'.equals(System.getenv('CI'))
def supportVersion = '23.1.1'
supportAnnotations = "com.android.support:support-annotations:$supportVersion"
supportV4 = "com.android.support:support-v4:$supportVersion"
supportAppCompat = "com.android.support:appcompat-v7:$supportVersion"
javapoet = 'com.squareup:javapoet:1.7.0'
autoService = 'com.google.auto.service:auto-service:1.0-rc2'
kotlin_stdlib = "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
subprojects { project ->
repositories {
jcenter()
}
group = GROUP
version = VERSION_NAME
buildscript {
repositories {
jcenter()
}
dependencies {
classpath rootProject.ext.androidPlugin
classpath rootProject.ext.aptPlugin
classpath rootProject.ext.gradleVersionsPlugin
}
}
// project.apply plugin: 'com.github.ben-manes.versions' // ./gradlew dependencyUpdates -Drevision=release
}
task genReadMe << {
def template = file('README.template.md').text
def result = template.replaceAll("%%version%%", VERSION_NAME)
file("README.md").withWriter{ it << result }
}