-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
102 lines (85 loc) · 2.6 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
///////////////////////////////////////////////////////////////////////////////////////
//
// etf-client
//
// https://github.com/interactive-instruments/etf-client
//
///////////////////////////////////////////////////////////////////////////////////////
buildscript {
repositories {
maven {
url "https://af.etf.interactive-instruments.de/repository/gradle-plugins"
credentials {
username 'ii-bda'
password 'AP7mb4WA6F1ckdZkaE8Qx8GSowt'
}}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath group: 'de.interactive_instruments.bda', name: 'etf-bda', version: '[2.0.8,2.0.99]'
}
dependencies {
ant.unjar src: configurations.classpath.files.find {it.path.contains('etf')}, dest: 'build/gradle'
}
}
apply from: 'build/gradle/ii-bda.gradle'
///////////////////////////////////////////////////////////////////////////////////////
group = 'de.interactive_instruments.etf'
description = 'ETF Client library'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
dependencies {
compile group: 'org.json', name: 'json', version: '20190722'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: etf_junitTestVersion
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
filter {
exclude '**/module-info.class'
}
}
compileJava {
inputs.property("moduleName", "etf.client")
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
'--add-modules', 'org.json'
]
classpath = files()
}
}
compileTestJava {
inputs.property("moduleName", "etf.client")
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
'--add-modules', 'org.json',
'--add-modules', 'org.junit.jupiter.api'
]
classpath = files()
}
}
javadoc {
exclude 'module-info.java'
exclude "**/internal/**"
destinationDir = file("$projectDir/docs/javadoc")
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}