forked from davideas/FlexibleAdapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (75 loc) · 2.64 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
//Author
developerId = "davideas"
developerName = "Davide Steduto"
developerEmail = "dave.dna@gmail.com"
//Library
libraryCode = 17
libraryVersion = "5.0.0-b7"
libraryDate = " built on " + getDate()
libraryDescription = "1 Adapter for SelectionMode, Undo, ViewHolders, Filter, FastScroller, Animations, Sticky Headers, Expandable, Draggable, Swipeable, EndlessScroll :-)"
libraryName = "FlexibleAdapter"
packageExt = "aar"
//Library Repository
bintrayRepo = "maven"
bintrayName = "flexible-adapter"
publishedGroupId = "eu.davidea"
artifact = bintrayName
siteUrl = "https://github.com/davideas/FlexibleAdapter"
gitUrl = "https://github.com/davideas/FlexibleAdapter.git"
//Support and Build tools version
minSdk = 14
targetSdk = 24
buildTools = "23.0.3"
supportLib = "24.0.0"
//Support Libraries dependencies
supportDependencies = [
design : "com.android.support:design:${supportLib}",
recyclerview : "com.android.support:recyclerview-v7:${supportLib}",
cardview : "com.android.support:cardview-v7:${supportLib}",
appcompat : "com.android.support:appcompat-v7:${supportLib}",
customtabs : "com.android.support:customtabs:${supportLib}",
support : "com.android.support:support-v13:${supportLib}",
annotations : "com.android.support:support-annotations:${supportLib}"
]
licenseName = "The Apache Software License, Version 2.0"
licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0.txt"
allLicenses = ["Apache-2.0"]
licenseDist = "repo"
}
def getDate() {
def date = new Date()
return date.format('yyyy.MM.dd')
}
//Avoid Javadoc Lint failures when using Java8
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
buildscript {
repositories {
jcenter()
maven {url = "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath "com.github.dcendents:android-maven-gradle-plugin:1.3"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6"
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {url = "http://dl.bintray.com/davideas/maven" }
maven {url = "https://oss.sonatype.org/content/repositories/snapshots/" }
}
}