forked from lamprosm/RADAR-Schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (57 loc) · 1.98 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
plugins {
id 'application'
}
compileJava {
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
}
configurations {
implementation {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
runtimeOnly {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
}
description = 'RADAR Schemas specification and validation tools.'
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation project(':radar-schemas-registration')
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion")
implementation group: 'net.sourceforge.argparse4j', name: 'argparse4j', version: argparseVersion
implementation group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
}
application {
mainClass.set('org.radarbase.schema.tools.CommandLineApp')
}
//---------------------------------------------------------------------------//
// Test definition //
//---------------------------------------------------------------------------//
test {
inputs.dir "${project.rootDir}/../commons"
inputs.dir "${project.rootDir}/../specifications"
testLogging {
events "skipped", "failed"
exceptionFormat "full"
showExceptions = true
showCauses = true
showStackTraces = true
showStandardStreams = true
}
}
//---------------------------------------------------------------------------//
// Publishing //
//---------------------------------------------------------------------------//
task copyDependencies(type: Copy) {
from(configurations.named("runtimeClasspath").map {it.files })
into("$buildDir/third-party/")
doLast {
println("Copied third-party runtime dependencies")
}
}
tasks.withType(Tar) {
compression = Compression.GZIP
archiveExtension.set('tar.gz')
}