-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
85 lines (69 loc) · 1.87 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
buildscript {
repositories {
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.4"
}
group = 'com.github.splatte'
version = '2.0'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
dependencies {
repositories {
mavenCentral()
}
compile gradleApi()
compile localGroovy()
compile 'com.android.tools.build:gradle:1.0.+'
}
bintray {
user = bintray_user
key = bintray_api_key
publications = ['main']
dryRun = false
publish = false /* need to publish new version manually on https://bintray.com/splatte/maven/gradle-android-appiconoverlay */
pkg {
repo = 'maven'
name = 'gradle-android-appiconoverlay'
desc = 'Plugin for Android Gradle to automatically overlay the app icon with information about the current build.'
websiteUrl = 'https://github.com/splatte/gradle-android-appiconoverlay'
issueTrackerUrl = 'https://github.com/splatte/gradle-android-appiconoverlay'
vcsUrl = 'https://github.com/splatte/gradle-android-appiconoverlay'
licenses = ['Apache-2.0']
labels = ['android', 'gradle', 'app', 'icon', 'build']
publicDownloadNumbers = false
version {
name = '2.0'
}
}
}
tasks.withType(JavaCompile) {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
}
tasks.withType(GroovyCompile) {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
main(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}