-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (49 loc) · 1.4 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
group 'io.codecollaborate'
version '0.00'
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
}
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile 'org.eclipse.jetty.websocket:websocket-server:9.3.8.v20160314'
testCompile 'org.mockito:mockito-core:1.10.19'
compile 'org.eclipse.jetty.websocket:websocket-client:9.3.8.v20160314'
compile 'com.fasterxml.jackson.core:jackson-databind:2.7.3'
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.7'
compile 'com.google.guava:guava:19.0'
}
test {
// exclude 'integration/**'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
archiveName "${baseName}-sources.${extension}"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
archiveName "${baseName}-javadoc.${extension}"
}
shadowJar {
archiveName "${baseName}.${extension}"
dependsOn sourcesJar
}
artifacts {
shadowJar
archives sourcesJar
archives javadocJar
}