forked from mrmaffen/vlc-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
141 lines (121 loc) · 3.24 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
plugins {
id 'com.jfrog.bintray' version '1.7.3'
id 'com.github.dcendents.android-maven' version '1.5'
}
apply from: './config/dependencies.gradle'
apply plugin: 'com.android.library'
version = VERSION_NAME
group = GROUP
repositories {
jcenter()
google()
}
android {
compileSdkVersion rootProject.ext.compileSdk
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdk
targetSdkVersion rootProject.ext.targetSdk
versionCode VERSION_CODE as int
versionName VERSION_NAME
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile "com.android.support:support-compat:${rootProject.ext.appCompatVersion}"
compile "com.android.support:support-annotations:${rootProject.ext.appCompatVersion}"
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publish = true
configurations = ['archives']
pkg {
repo = 'maven'
name = ARTIFACT
desc = DESCRIPTION
userOrg = ORGANIZATION
websiteUrl = REPO_URL
issueTrackerUrl = URL_ISSUES
vcsUrl = SCM_URL
licenses = ['GPL-3.0']
labels = ['android', 'vlc', 'video', 'player']
publicDownloadNumbers = true
githubRepo = 'butterproject/vlc-android-sdk'
githubReleaseNotesFile = 'README.md'
}
}
install {
repositories.mavenInstaller {
pom {
project {
packaging PACKAGING
artifactId ARTIFACT
name PROJECT_NAME
url REPO_URL
licenses {
license {
name LICENSE_NAME
url LICENSE_URL
distribution 'repo'
}
}
developers {
developer {
id "aldoborrero"
name "Aldo Borrero"
}
developer {
id "blazsolar"
name "Blaz Solar"
}
}
scm {
url REPO_URL
connection SCM_URL
developerConnection SCM_URL
}
}
}
}
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
options {
encoding = 'UTF-8'
failOnError false
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}