This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 156
/
build.gradle
53 lines (47 loc) · 1.52 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
subprojects {
buildscript {
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
}
repositories {
google()
mavenCentral()
}
group = GROUP
version = VERSION_NAME
}
ext {
minSdkVersion = 14
compileSdkVersion = 26
buildToolsVersion = '26.0.1'
assertj = 'org.assertj:assertj-core:1.7.1'
supportAnnotations = 'com.android.support:support-annotations:26.0.1'
supportV4 = 'com.android.support:support-v4:26.0.1'
supportAppCompat = 'com.android.support:appcompat-v7:26.0.1'
supportCardView = 'com.android.support:cardview-v7:26.0.1'
supportDesign = 'com.android.support:design:26.0.1'
supportGridLayout = 'com.android.support:gridlayout-v7:26.0.1'
supportMediaRouter = 'com.android.support:mediarouter-v7:26.0.1'
supportPalette = 'com.android.support:palette-v7:26.0.1'
supportRecyclerView = 'com.android.support:recyclerview-v7:26.0.1'
playServices = 'com.google.android.gms:play-services:7.5.0'
}
subprojects {
afterEvaluate {
android.libraryVariants.all { variant ->
def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
task.description = "Create jar artifact for ${variant.name}"
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
task.archiveName = "${project.name}-${variant.baseName}.jar"
artifacts.add('archives', task);
}
}
}