This repository has been archived by the owner on Mar 17, 2018. It is now read-only.
forked from xiaodongus/DNSman
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.libsuperuser
executable file
·109 lines (96 loc) · 2.92 KB
/
build.gradle.libsuperuser
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
apply plugin: 'com.android.library'
//apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
android {
compileSdkVersion 23
buildToolsVersion "24.0.0 rc3"
defaultConfig {
minSdkVersion 4
targetSdkVersion 23
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
}
}
version = "1.0.0." + (new Date()).format('yyyyMMddHHmm')
group = "eu.chainfire"
bintray {
// in global gradle.properties: "systemProp.bintrayUser=chainfire", etc
user = System.properties['bintrayUser']
key = System.properties['bintrayApiKey']
configurations = ['archives']
dryRun = false
publish = true
pkg {
repo = 'maven'
name = 'libsuperuser'
desc = 'libsuperuser'
websiteUrl = 'https://github.com/Chainfire/libsuperuser'
issueTrackerUrl = 'https://github.com/Chainfire/libsuperuser/issues'
vcsUrl = 'https://github.com/Chainfire/libsuperuser.git'
licenses = ['Apache-2.0']
publicDownloadNumbers = true
}
}
/*
install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
name 'libsuperuser'
url 'https://github.com/Chainfire/libsuperuser'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'Chainfire'
name 'Jorrit Jongma'
}
}
scm {
connection 'https://github.com/Chainfire/libsuperuser.git'
developerConnection 'https://github.com/Chainfire/libsuperuser.git'
url 'https://github.com/Chainfire/libsuperuser.git'
}
}
}
}
}
*/
dependencies {
}
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))
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
task findConventions << {
println project.getConvention()
}