forked from DeveloperUtils/spring-state-machine-chart-dumper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (83 loc) · 3.39 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
buildscript {
ext {
versions = [
spring : "5.3.+",
ssm : "1.1+",
junit : "5.7.+",
junitPlatform: "1.7.+",
]
}
ext.allRepositories = {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
repositories(allRepositories)
}
plugins {
id "io.spring.dependency-management" version "1.0.9.RELEASE" apply false
id "io.gitlab.arturbosch.detekt" version "1.5.1" apply false
id "com.palantir.git-version" version "0.12.3" apply false
}
subprojects {
apply plugin: "java"
apply plugin: "java-library"
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "io.spring.dependency-management"
apply from: "https://raw.github.com/akhikhl/unpuzzle/master/pluginScripts/unpuzzle.plugin"
group "net.workingdeveloper.ssm-chart-dumper"
version = "0.4.0-SNAPSHOT"
//jar {
// baseName = "net.workingdeveloper.java.spring.statemachine.dumper"
//
//}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories(allRepositories)
configurations {
all*.exclude module: "commons-logging"
all*.exclude module: "org.junit"
}
dependencies {
implementation "org.springframework:spring-context:${versions.spring}"
implementation "org.springframework.statemachine:spring-statemachine-core:${versions.ssm}"
implementation "org.springframework.statemachine:spring-statemachine-uml:${versions.ssm}"
implementation "org.slf4j:slf4j-api:1.+"
implementation "org.slf4j:jcl-over-slf4j:+"
implementation "org.apache.logging.log4j:log4j-api:2.+"
implementation "org.apache.logging.log4j:log4j-core:2.+"
implementation "org.apache.logging.log4j:log4j-jcl:2.+"
runtimeOnly "org.apache.logging.log4j:log4j-slf4j-impl:2.+"
testImplementation "org.springframework.statemachine:spring-statemachine-test:${versions.ssm}"
testImplementation "org.springframework:spring-test:${versions.spring}"
testImplementation "org.junit.jupiter:junit-jupiter:${versions.junit}"
testImplementation "org.assertj:assertj-core:3.15.0"
testImplementation "org.mockito:mockito-core:3.7.7"
testImplementation "org.mockito:mockito-junit-jupiter:3.7.7"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-api:${versions.junit}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${versions.junit}"
testRuntimeOnly "org.junit.platform:junit-platform-engine:${versions.junitPlatform}"
testRuntimeOnly "org.junit.platform:junit-platform-commons:${versions.junitPlatform}"
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${versions.junitPlatform}"
testRuntimeOnly "org.junit.platform:junit-platform-console:${versions.junitPlatform}"
testImplementation "org.hamcrest:hamcrest-core:1.+"
testImplementation "org.hamcrest:hamcrest-library:1.+"
}
test {
useJUnitPlatform()
environment "TESTCONTAINERS_RYUK_DISABLED", "true"
testLogging {
events "passed", "skipped", "failed"
}
reports {
html.required = true
}
}
task dumpsDirExists {
def work = new File("${buildDir}/test-results/dumps")
work.mkdirs()
}
test.dependsOn dumpsDirExists
}