-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.gradle
86 lines (70 loc) · 2.48 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
import java.text.SimpleDateFormat
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
group = rootProject.ext.groupName
version = rootProject.ext.releaseVersion
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_7
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.android.tools.build:gradle:1.1.0'
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
}
// custom tasks for creating source/javadoc jars
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
// add javadoc/source jar tasks as artifacts
artifacts {
archives sourcesJar, javadocJar
}
// upload to local
uploadArchives {
repositories { mavenLocal() }
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
artifactId 'android-multi-channel-plugin'
}
}
}
bintray {
user = bintray_user //this usually comes from gradle.properties file in ~/.gradle
key = bintray_api_key //this usually comes from gradle.properties file in ~/.gradle
publications = ['mavenJava'] //When uploading Maven-based publication files
dryRun = false //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload
pkg {
repo = 'maven'
name = 'android-multi-channel-plugin'
desc = 'Android multi-channel generator for android developers.'
websiteUrl = 'https://github.com/promeG/android-multi-channel-tool'
issueTrackerUrl = 'https://github.com/promeG/android-multi-channel-tool/issues'
vcsUrl = 'https://github.com/promeG/android-multi-channel-tool.git'
licenses = ['Apache-2.0']
labels = ['multi-channel', 'umeng','mta','mtj' , 'android']
publicDownloadNumbers = true
//Optional version descriptor
version {
name = rootProject.ext.releaseVersion //Bintray logical version name
released = new SimpleDateFormat('yyyy-MM-dd\'T\'HH:mm:ss.SSSZZ').format(new Date()) //2 possible values: date in the format of 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ' OR a java.util.Date instance
vcsTag = '1.0.0'
}
}
}