-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
89 lines (71 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
86
87
88
89
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.5'
}
}
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'com.jfrog.bintray'
group projectGroup
version projectVersion
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile localGroovy()
compile gradleApi()
compile 'commons-io:commons-io:2.1'
compile 'org.codehaus.jackson:jackson-core-asl:1.9.5'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.5'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-all:1.8.4'
}
configurations {
published
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
// Add the sourceJars to non-extractor modules
artifacts {
published sourceJar
published javadocJar
}
if (!project.hasProperty("bintrayUser")) {
ext.bintrayUser = ""
}
if (!project.hasProperty("bintrayKey")) {
ext.bintrayKey = ""
}
bintray {
user = bintrayUser
key = bintrayKey
configurations = ['published', 'archives']
pkg {
repo='maven'
name=projectName
desc='Gradle plugin that allows you to send messages to HipChat.'
websiteUrl='https://github.com/blazsolar/gradle-hipchat-plugin'
issueTrackerUrl='https://github.com/blazsolar/gradle-hipchat-plugin/issues'
vcsUrl='https://blazsolar@github.com/blazsolar/gradle-hipchat-plugin.git'
licenses=['Apache-2.0']
labels=['hipchat']
version {
name=projectVersion
attributes=['gradle-plugin':'com.github.blazsolar.hipchat:' + projectGroup + ':' + projectName]
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}