-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
207 lines (167 loc) · 5.31 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
plugins {
id 'java'
id 'idea'
id 'eclipse'
}
java{
withSourcesJar()
withJavadocJar()
}
allprojects {
group = 'za.co.mnjonjo'
version = '0.0.1-SNAPSHOT'
repositories {
mavenCentral()
}
}
subprojects {
apply plugin :'java'
apply plugin :'idea'
apply plugin :'eclipse'
apply plugin :'maven-publish'
java{
withSourcesJar()
withJavadocJar()
}
repositories {
mavenCentral()
}
dependencies {
implementation('org.springframework:spring-context:6.1.0') {
exclude module: 'commons-logging'
}
implementation(group: 'org.springframework', name: 'spring-core', version: '6.1.0') {
exclude(module: 'commons-logging')
}
implementation(group: 'org.springframework', name: 'spring-context', version: '6.1.0') {
exclude(module: 'commons-logging')
}
implementation(group: 'org.springframework', name: 'spring-beans', version: '6.1.0') {
exclude(module: 'commons-logging')
}
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.7'
implementation(group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.20.0') {
exclude(module: 'mail')
exclude(module: 'jms')
exclude(module: 'jmxtools')
exclude(module: 'jmxri')
}
implementation group: 'org.slf4j', name: 'jcl-over-slf4j', version: '2.0.7'
implementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '2.0.7'
// testImplementation group: 'org.mockito', name: 'junit-jupiter', version: '5.8.0'
// testImplementation group: 'org.junit.jupiter', name: 'jupiter-api', version: '5.10.0'
implementation group: 'org.projectlombok', name: 'lombok', version: '1.18.30'
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testCompileOnly 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
testCompileOnly 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testCompileOnly 'org.mockito:mockito-core:5.10.0'
testCompileOnly 'org.mockito:mockito-junit-jupiter:5.10.0'
}
publishing{
publications {
myPublication(MavenPublication){
/* groupId project.group
artifactId project.name
version project.version
from components.java*/
groupId project.group
artifactId project.name
version project.version
from components.java
//artifactId sourceJar
pom {
name = "multi-module-demo"
description = ""
url = ""
licenses {
license {
name = ""
url = ""
}
}
}
/* // developers {
*//*developer {
id = "Noxolo.Mkhungo"
name = "Noxolo Mandisa Mkhungo"
email = "[email protected]"
}*//*
//}*/
}
}
}
}
//task.outputs.cacheIf { true }
tasks.withType(JavaCompile).configureEach {
//enable compilation in a separate daemon process
options.fork = true
// JDK 21
sourceCompatibility = 21
targetCompatibility = 21
}
/*
test {
// discover and execute JUnit4-based tests
useJUnit()
// discover and execute TestNG-based tests
useTestNG()
// discover and execute JUnit Platform-based tests
useJUnitPlatform()
//set a system property for the test JVM(s)
//systemProperty 'some.prop', 'value'
// explicitly include or exclude tests
include 'org/foo/**'
exclude 'org/boo/**'
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
// set heap size for the test JVM(s)
minHeapSize = "128m"
maxHeapSize = "512m"
// set JVM arguments for the test JVM(s)
jvmArgs '-XX:MaxPermSize=256m'
// listen to events in the test execution lifecycle
beforeTest { descriptor ->
logger.lifecycle("Running test: " + descriptor)
}
// fail the 'test' task on the first test failure
failFast = true
// skip an actual test execution
dryRun = true
// listen to standard out and standard error of the test JVM(s)
onOutput { descriptor, event ->
logger.lifecycle("Test: " + descriptor + " produced standard out/err: " + event.message )
}
}
*/
idea.module.iml {
beforeMerged { module ->
module.dependencies.clear()
}
whenMerged { module ->
module.dependencies*.exported = true
}
}
idea.project.ipr {
beforeMerged { project ->
project.modulePaths.clear()
}
withXml { provider ->
provider.node.component
.find { it.@name == 'VcsDirectoryMappings' }
.mapping.@vcs = 'Git'
}
}
/*sourceSets {
intTest {
java {
srcDirs = ['src/integration']
}
}
}
idea {
module {
testSources.from(sourceSets.intTest.java.srcDirs)
}
}*/