-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
101 lines (88 loc) · 4.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.versions = ['minSdk' : 14,
'compileSdk' : 26,
'supportLibrary': '26.1.0',
'arch' : '1.0.0-rc1',
'androidPlugin' : '3.0.0',
'androidTools' : '26.0.2',
'major' : '0.1']
ext.deps = [android : [gradle : "com.android.tools.build:gradle:${versions.androidPlugin}",
runtime: 'com.google.android:android:4.1.1.4'],
support : [compat : "com.android.support:support-compat:${versions.supportLibrary}",
fragment : "com.android.support:support-fragment:${versions.supportLibrary}",
design : "com.android.support:design:${versions.supportLibrary}",
constraint : 'com.android.support.constraint:constraint-layout:1.0.2',
appcompat : "com.android.support:appcompat-v7:${versions.supportLibrary}",
annotations: "com.android.support:support-annotations:${versions.supportLibrary}",
test : [runner : 'com.android.support.test:runner:1.0.1',
espresso: 'com.android.support.test.espresso:espresso-core:3.0.1'],],
arch : [lifecycle : [java8 : "android.arch.lifecycle:common-java8:${versions.arch}",
extensions: "android.arch.lifecycle:extensions:${versions.arch}"],
persistence: [room: "android.arch.persistence.room:runtime:${versions.arch}"]],
lint : ['core' : "com.android.tools.lint:lint:${versions.androidTools}",
'api' : "com.android.tools.lint:lint-api:${versions.androidTools}",
'checks': "com.android.tools.lint:lint-checks:${versions.androidTools}",
'tests' : "com.android.tools.lint:lint-tests:${versions.androidTools}",],
annotations: 'org.jetbrains:annotations:15.0',
javapoet : 'com.squareup:javapoet:1.9.0',
google : [auto : 'com.google.auto.service:auto-service:1.0-rc3',
truth : "com.google.truth:truth:0.36",
compile: 'com.google.testing.compile:compile-testing:0.12',
guava : 'com.google.guava:guava:23.0-android'],
junit : 'junit:junit:4.12',
groovy : 'org.codehaus.groovy:groovy-all:2.4.12',
spock : [spock : 'org.spockframework:spock-core:1.1-groovy-2.4',
genesis: 'com.nagternal:spock-genesis:0.6.0'],]
repositories {
google()
jcenter()
}
dependencies {
classpath deps.android.gradle
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.16.0'
}
def gitCommitCount() {
try {
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-list', '--count', 'HEAD'
standardOutput = stdout
}
def commitCount = stdout.toString().trim().toInteger()
return commitCount
} catch (ignored) {
return 0
}
}
//release configuration
ext {
bintrayRepo = 'maven'
bintrayName = 'ActivityBuilder'
licenses = ['MIT']
publishedGroupId = 'info.dourok.builder'
libraryName = 'ActivityBuilder'
libraryDescription =
'ActivityBuilder is a annotation base library using builder pattern to make inner activity communication more easier.'
siteUrl = 'https://github.com/douo/ActivityBuilder'
gitUrl = 'https://github.com/douo/ActivityBuilder.git'
libraryVersion = "${versions.major}.${gitCommitCount()}"
developerId = 'douo'
developerName = 'Tiou Lims'
developerEmail = '[email protected]'
licenseName = 'MIT License'
licenseUrl = 'https://raw.githubusercontent.com/douo/ActivityBuilder/master/LICENSE'
allLicenses = ["MIT"]
}
allprojects {
repositories {
mavenLocal()
google()
jcenter()
}
}