@@ -71,7 +71,7 @@ javadoc {
71
71
options. addStringOption(" top" ). value = " "
72
72
options. addStringOption(" doctitle" ). value = " "
73
73
options. addStringOption(" header" ). value = " "
74
- options. stylesheetFile = rootProject . file(" gradle/stylesheet.css" )
74
+ options. stylesheetFile = project . file(" gradle/stylesheet.css" )
75
75
76
76
options. links(
77
77
" https://docs.oracle.com/javase/8/docs/api/" ,
99
99
}
100
100
101
101
license {
102
- header rootProject . file(" config/license/HEADER" )
102
+ header project . file(" config/license/HEADER" )
103
103
ext. year = Calendar . getInstance(). get(Calendar . YEAR )
104
104
skipExistingHeaders true
105
105
ignoreFailures true
@@ -120,51 +120,38 @@ jmh {
120
120
}
121
121
122
122
test {
123
+ maxHeapSize = " 1200m"
124
+ }
125
+
126
+ task testNG (type : Test ) {
127
+ useTestNG()
128
+ }
129
+
130
+ check. dependsOn testNG
131
+
132
+ tasks. withType(Test ) {
123
133
testLogging {
124
- // showing skipped occasionally should prevent CI timeout due to lack of standard output
125
- events= [" skipped" , " failed" ] // "started", "passed"
126
- // showStandardStreams = true
127
- exceptionFormat= " full"
134
+ events = [" skipped" , " failed" ]
135
+ exceptionFormat = " full"
128
136
129
137
debug. events = [" skipped" , " failed" ]
130
- debug. exceptionFormat= " full"
138
+ debug. exceptionFormat = " full"
131
139
132
140
info. events = [" failed" , " skipped" ]
133
- info. exceptionFormat= " full"
134
-
141
+ info. exceptionFormat = " full"
142
+
135
143
warn. events = [" failed" , " skipped" ]
136
- warn. exceptionFormat= " full"
144
+ warn. exceptionFormat = " full"
137
145
}
138
146
139
- maxHeapSize = " 1200m"
140
-
141
147
if (System . getenv(" CI" ) == null ) {
142
148
maxParallelForks = Runtime . runtime. availableProcessors(). intdiv(2 ) ?: 1
143
149
}
144
150
}
145
151
146
- task testng (type : Test ) {
147
- useTestNG()
148
- testLogging {
149
- events= [" skipped" , " failed" ]
150
- exceptionFormat= " full"
151
-
152
- debug. events = [" skipped" , " failed" ]
153
- debug. exceptionFormat= " full"
154
-
155
- info. events = [" failed" , " skipped" ]
156
- info. exceptionFormat= " full"
157
-
158
- warn. events = [" failed" , " skipped" ]
159
- warn. exceptionFormat= " full"
160
- }
161
- }
162
-
163
- check. dependsOn testng
164
-
165
152
jacocoTestReport {
166
153
dependsOn test
167
- dependsOn testng
154
+ dependsOn testNG
168
155
169
156
reports {
170
157
xml. enabled = true
@@ -175,18 +162,18 @@ jacocoTestReport {
175
162
check. dependsOn jacocoTestReport
176
163
177
164
checkstyle {
178
- configFile = rootProject . file(" config/checkstyle/checkstyle.xml" )
165
+ configFile = project . file(" config/checkstyle/checkstyle.xml" )
179
166
configProperties = [
180
- " checkstyle.suppressions.file" : rootProject . file(" config/checkstyle/suppressions.xml" ),
181
- " checkstyle.header.file" : rootProject . file(" config/license/HEADER_JAVA" )
167
+ " checkstyle.suppressions.file" : project . file(" config/checkstyle/suppressions.xml" ),
168
+ " checkstyle.header.file" : project . file(" config/license/HEADER_JAVA" )
182
169
]
183
170
}
184
171
185
- if (rootProject. hasProperty(" releaseMode" )) {
186
- logger. lifecycle(" ReleaseMode: {}" , rootProject. releaseMode)
172
+ if (project. hasProperty(" releaseMode" )) {
173
+ logger. lifecycle(" ReleaseMode: {}" , project. releaseMode)
174
+
175
+ if (" branch" == project. releaseMode) {
187
176
188
- if (" branch" . equals(rootProject. releaseMode)) {
189
-
190
177
if (version. endsWith(" -SNAPSHOT" )) {
191
178
publishing {
192
179
repositories {
@@ -204,7 +191,7 @@ if (rootProject.hasProperty("releaseMode")) {
204
191
}
205
192
}
206
193
207
- if (" full" . equals(rootProject . releaseMode) ) {
194
+ if (" full" == project . releaseMode) {
208
195
signing {
209
196
if (project. hasProperty(" SIGNING_PRIVATE_KEY" ) && project. hasProperty(" SIGNING_PASSWORD" )) {
210
197
useInMemoryPgpKeys(project. getProperty(" SIGNING_PRIVATE_KEY" ), project. getProperty(" SIGNING_PASSWORD" ))
0 commit comments