forked from Itiviti/slack4gerrit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
134 lines (120 loc) · 3.13 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
buildscript {
repositories {
mavenCentral()
jcenter()
}
}
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'signing'
apply plugin: 'maven-publish'
apply plugin: 'distribution'
apply plugin: 'groovy'
group = 'com.ullink.slack'
archivesBaseName = 'slack4gerrit'
version = '0.1.0-SNAPSHOT'
jar {
archiveName = 'slack4gerrit.jar'
manifest { attributes 'Main-Class': 'com.ullink.slack.review.Connector' }
}
task dist(dependsOn: 'assemble', type: Zip) {
from('/') {
include "slack4gerrit.properties"
into('/')
}
from('script') {
include "*.*"
into('/')
}
from(jar.outputs.files) { into('lib') }
from(configurations.runtime) { into('lib') }
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts { archives javadocJar, sourcesJar }
signing {
required false
sign configurations.archives
}
def pomConfig = {
name 'Slack 4 Gerrit'
description 'A Slack Bot to share your gerrit review requests'
url 'https://github.com/Ullink/slack4gerrit'
licenses {
license {
name 'Apache-2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0'
}
}
developers {
developer {
id 'bcorne'
name 'Benoit Corne'
email '[email protected]'
}
}
contributors {
contributor {
name 'CappCorp'
email '[email protected]'
url 'https://github.com/CappCorp'
}
}
scm {
connection 'scm:git:[email protected]:Ullink/slack4gerrit.git'
developerConnection 'scm:git:[email protected]:Ullink/slack4gerrit.git'
url 'https://github.com/Ullink/slack4gerrit'
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom.withXml {
asNode().children().last() + pomConfig
}
}
}
}
distributions {
main {
baseName = 'slack4gerrit'
contents {
into('lib') {
from { configurations.compile }
from { jar.getOutputs() }
}
from { 'script' }
from { 'slack4gerrit.properties' }
}
}
}
dependencies {
compile 'com.github.Ullink:simple-slack-api:-SNAPSHOT'
compile 'org.glassfish.tyrus.bundles:tyrus-standalone-client:1.13'
compile 'org.slf4j:slf4j-simple:1.7.7'
compile 'org.apache.httpcomponents:httpclient:4.5.3'
compile 'com.google.guava:guava:18.0'
compile 'com.google.code.gson:gson:2.7'
compile 'org.mapdb:mapdb:1.0.7'
compile 'com.google.inject:guice:4.1.0'
testCompile 'org.codehaus.groovy:groovy-all:2.4.4'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4'
testCompile 'org.objenesis:objenesis:2.1'
testCompile 'cglib:cglib-nodep:3.2.2'
}