mirrored from https://gitlab.com/Elypia/commandler-examples
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (71 loc) · 2.18 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
plugins {
id 'com.github.johnrengelman.shadow' version '5.2.0' apply false
id "io.spring.dependency-management" version "1.0.9.RELEASE" apply false
}
allprojects() {
apply plugin: "idea"
apply plugin: "jacoco"
group = "org.elypia"
version = "4.0.0"
description = "An example project to demonstrate the usage of Commandler."
ext {
deltaSpikeVersion = "1.9.3"
}
repositories {
mavenLocal()
mavenCentral()
}
jacoco {
toolVersion = "0.8.5"
}
}
subprojects() {
apply plugin: "java"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "io.spring.dependency-management"
/** Adds the commandlerdoc task for exporting docs for your Commandler application. */
// apply plugin: "org.elypia.commandler" version "1.0.0"
sourceCompatibility = 11
targetCompatibility = 11
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
dependencyManagement {
imports {
mavenBom "org.apache.deltaspike.distribution:distributions-bom:${deltaSpikeVersion}"
}
}
sourceSets {
main {
output.resourcesDir = output.classesDirs.singleFile
}
test {
output.resourcesDir = output.classesDirs.singleFile
}
}
dependencies {
// The core of Commandler, always required for any Commandler application.
implementation "org.elypia.commandler:core:${version}"
// A console integration for Commandler to handle commands in console.
implementation "org.elypia.commandler:console:${version}"
// Logging
implementation "org.slf4j:slf4j-api:1.7.30"
runtimeOnly "ch.qos.logback:logback-classic:1.2.3"
// Testing
testImplementation "org.junit.jupiter:junit-jupiter:5.6.0"
testImplementation "org.mockito:mockito-core:3.2.4"
}
/** Testing */
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
reports {
html.enabled = false
}
}
/** Code Coverage */
jacocoTestReport {
reports {
html.enabled = false
xml.enabled = false
}
}
}