-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathbuild.gradle
112 lines (86 loc) · 2.26 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
def pluginVersion = '1.0.4'
group 'org.fabiomsr'
version pluginVersion
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
}
}
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
compileJava {
sourceCompatibility '1.6'
targetCompatibility '1.6'
}
compileGroovy {
sourceCompatibility '1.6'
targetCompatibility '1.6'
}
repositories {
jcenter()
}
repositories {
flatDir {
dirs 'libs'
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
}
}
dependencies {
compile gradleApi()
compile localGroovy()
compile group:'com.android.tools.build', name:'gradle', version:'2.1.0'
compile group:'com.github.depsypher', name:'pngtastic', version:'1.2'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
publishing {
repositories {
maven {
url mavenLocal()
}
}
publications {
maven(MavenPublication) {
groupId 'org.fabiomsr'
artifactId 'drawable-optimizer-gradle-plugin'
version pluginVersion
from components.java
artifact (sourcesJar) {
classifier "sources"
}
}
}
}
bintray {
user = project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER')
key = project.hasProperty('BINTRAY_API_KEY') ? project.property('BINTRAY_API_KEY') : System.getenv('BINTRAY_API_KEY')
publications = ['maven']
configurations = ['archives']
pkg {
repo = 'maven'
name = 'drawable-optimizer'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/fabiomsr/drawable-optimizer-gradle-plugin.git'
version {
name = pluginVersion
desc = 'Drawable Optimizer Gradle Plugin'
vcsTag = pluginVersion
attributes = ['gradle-plugin': 'org.fabiomsr:drawable-optimizer-gradle-plugin']
}
}
}