/
build.gradle
85 lines (71 loc) · 2.35 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
/*
* Copyright 2015 Trello, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'nu.studer.plugindev' version '1.0.6'
// Should come along with plugindev, but plugindev uses an old version
id 'com.jfrog.bintray' version '1.6'
}
apply plugin: 'groovy'
dependencies {
compile gradleApi()
compile localGroovy()
}
// This makes it easier to figure out issues with Travis CI builds
test {
testLogging.showStandardStreams = true
}
apply plugin: 'maven'
repositories {
mavenCentral()
}
// Batik dependencies
dependencies {
compile 'org.apache.xmlgraphics:batik-codec:1.9'
compile 'org.apache.xmlgraphics:batik-anim:1.9'
compile 'org.apache.xmlgraphics:xmlgraphics-commons:2.2'
compile 'com.romainpiel.svgtoandroid:svgtoandroid:0.1.0'
testCompile 'junit:junit:4.12'
}
// Plugin publishing
group = 'com.trello'
version = '1.0.0-SNAPSHOT'
plugindev {
pluginId 'com.trello.victor'
pluginName 'victor'
pluginImplementationClass 'com.trello.victor.VictorPlugin'
pluginDescription 'Gradle plugin that lets an Android project use SVGs as resources.'
pluginLicenses 'Apache-2.0'
pluginTags 'gradle', 'plugin', 'android'
authorId 'danlew42'
authorName 'Dan Lew'
authorEmail 'danlew42@gmail.com'
projectUrl 'https://github.com/trello/victor'
projectInceptionYear '2015'
done() // do not omit this
}
// If you want to upload this, make sure to set BINTRAY_USER and BINTRAY_API_KEY in gradle.properties
if (project.hasProperty('BINTRAY_USER') && project.hasProperty('BINTRAY_API_KEY')) {
bintray {
dryRun = true // Turn off when actually deploying
publish = false // Maybe someday turn this on for auto-publishing
user = "$BINTRAY_USER"
key = "$BINTRAY_API_KEY"
pkg {
repo = 'gradle-plugins'
userOrg = 'trello'
}
}
}