-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
76 lines (66 loc) · 1.73 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven-publish'
sourceSets {
main {
java {
srcDirs = ['src']
}
}
test {
java {
srcDirs = ['test']
}
resources {
srcDirs = ['test']
include '**/*.exml.xml'
}
}
}
repositories {
mavenCentral()
}
task getDeps(type: Copy) {
from configurations.runtime
into 'lib/'
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
build.finalizedBy(getDeps)
dependencies {
compile group: 'com.fasterxml', name: 'aalto-xml', version: '0.9.9'
compile group: 'org.codehaus.woodstox', name: 'stax2-api', version: '3.1.4'
compile group: 'com.google.guava', name: 'guava', version: '15.0'
compile group: 'org.eclipse.collections', name: 'eclipse-collections-api', version: '8.1.0'
compile group: 'org.eclipse.collections', name: 'eclipse-collections', version: '8.1.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.3.2'
compile group: 'org.ow2.asm', name: 'asm', version: '5.0.3'
compile 'org.msgpack:msgpack-core:0.8.13'
compile 'org.xerial.snappy:snappy-java:1.1.4'
compile 'net.jpountz.lz4:lz4:1.3.0'
testCompile 'junit:junit:4.12'
}
publishing {
publications {
maven(MavenPublication) {
groupId 'de.versley'
artifactId 'exportxml'
version '1.1.0'
from components.java
artifact javadocJar
artifact sourcesJar
}
}
}