-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
64 lines (52 loc) · 1.25 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
plugins {
id "java"
id "application"
id "jacoco"
id "com.github.johnrengelman.shadow" version "8.1.1"
id "ru.vyarus.mkdocs-build" version '4.0.1'
}
group = "org.exercism"
version = "1.0-SNAPSHOT"
mainClassName = "analyzer.AnalyzerCli"
repositories {
mavenCentral()
}
dependencies {
implementation "com.google.code.gson:gson:2.11.0"
implementation "com.github.javaparser:javaparser-core:3.25.10"
testImplementation platform("org.junit:junit-bom:5.11.1")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.25.3"
testImplementation "com.approvaltests:approvaltests:24.7.0"
}
shadowJar {
mergeServiceFiles()
archiveFileName.set("java-analyzer.jar")
}
artifacts {
archives shadowJar
}
test {
useJUnitPlatform()
testLogging {
exceptionFormat = "full"
showStandardStreams = true
events = ["passed", "failed", "skipped"]
}
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
}
}
mkdocs {
sourcesDir = "src/doc"
buildDir = file("build/docs")
publish.docPath = null
}
javadoc {
mustRunAfter(mkdocsBuild)
destinationDir = file("build/docs/api")
}