-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (55 loc) · 1.35 KB
/
build.gradle
File metadata and controls
69 lines (55 loc) · 1.35 KB
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 "java"
id "application"
id "jacoco"
id 'com.gradleup.shadow' version '9.4.1'
id "ru.vyarus.mkdocs-build" version '4.0.1'
}
group = "org.exercism"
version = "1.0-SNAPSHOT"
application {
mainClass = "analyzer.AnalyzerCli"
}
repositories {
mavenCentral()
}
dependencies {
implementation "com.google.code.gson:gson:2.13.2"
implementation "com.github.javaparser:javaparser-core:3.28.0"
testImplementation platform("org.junit:junit-bom:5.11.4")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core:3.27.4"
testImplementation "com.approvaltests:approvaltests:30.1.0"
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
def analyzerJar = shadowJar {
mergeServiceFiles()
archiveFileName.set("java-analyzer.jar")
}
tasks.named("assemble") {
dependsOn(analyzerJar)
}
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")
}