-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (62 loc) · 2 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
plugins {
id 'java-library'
//id 'org.asciidoctor.convert' version '1.5.6' apply false
}
configure(subprojects.findAll { it.name.startsWith('geo') }) {
apply plugin: 'java'
// apply plugin: 'checkstyle'
dependencies {
// for my various geometric calculations
implementation 'org.locationtech.jts:jts:1.17.0'
implementation 'org.locationtech.jts.io:jts-io-common:1.17.0'
//implementation group: 'math.geom2d', name: 'javaGeom', version: '0.11.1'
// https://github.com/vsch/flexmark-java
//implementation 'com.vladsch.flexmark:flexmark-all:0.62.2'
// new an improved logging framework, no more slf4j
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.1'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.1'
// JUnit framework for unit tests
testImplementation 'junit:junit:4.12'
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.7.0")
testImplementation(platform('org.junit:junit-bom:5.7.0'))
testImplementation('org.junit.jupiter:junit-jupiter')
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
}
configurations {
jaxDoclet
}
dependencies {
//jaxDoclet "some.interesting:Dependency:1.0"
}
tasks.withType(JavaCompile).all {
options.compilerArgs.add("-Xlint:all")
}
task generateRestApiDocs(type: Javadoc) {
source = sourceSets.main.allJava
destinationDir = reporting.file("rest-api-docs")
options.docletpath = configurations.jaxDoclet.files.asType(List)
options.doclet = "com.lunatech.doclets.jax.jaxrs.JAXRSDoclet"
options.addStringOption("jaxrscontext", "http://localhost:8080/myapp")
}
allprojects {
repositories {
mavenCentral()
}
task hello { doLast { task ->
println "I'm $task.project.name"
}
}
}
subprojects {
hello {
doLast {
println "- I depend on water"
}
}
}