-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.gradle
45 lines (36 loc) · 1.21 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'scala'
group = 'in.dreamlabs'
version = '1.8.2'
description = "A simple tool to convert xml to avro and their respective schemas"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven { url "https://repo.maven.apache.org/maven2" } }
dependencies {
compile 'org.scala-lang:scala-library:2.12.8'
compile 'org.scala-lang:scala-reflect:2.12.8'
compile 'org.yaml:snakeyaml:1.18'
compile 'org.apache.avro:avro:1.8.2'
compile 'xerces:xercesImpl:2.12.0'
compile 'commons-io:commons-io:2.6'
testCompile 'org.skyscreamer:jsonassert:1.2.3'
testCompile 'junit:junit:4.8.1'
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': name,
'Implementation-Version': version,
'Main-Class': 'in.dreamlabs.xmlavro.Converter'
}
baseName = project.name + '-all'
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task copyLibs(type: Copy) {
into buildDir.absolutePath + '/libs/libs'
from configurations.testRuntime
}
fatJar.dependsOn(copyLibs)
build.dependsOn(fatJar)