File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,11 @@ task sourcesJar(type: Jar) {
138
138
from sourceSets. main. allSource
139
139
}
140
140
141
+ task testsJar (type : Jar ) {
142
+ archiveClassifier. set(' tests' )
143
+ from sourceSets. test. allSource
144
+ }
145
+
141
146
// run build before running fat jar to get classes
142
147
task fatJar (type : Jar ) {
143
148
archiveClassifier. set(' fat' )
@@ -168,7 +173,7 @@ jacocoTestReport {
168
173
}
169
174
170
175
artifacts {
171
- archives javadocJar, sourcesJar, examplesJar
176
+ archives javadocJar, sourcesJar, examplesJar, testsJar
172
177
}
173
178
174
179
nexusPublishing {
@@ -187,6 +192,7 @@ publishing {
187
192
artifact sourcesJar
188
193
artifact examplesJar
189
194
artifact javadocJar
195
+ artifact testsJar
190
196
pom {
191
197
name = ' jnats'
192
198
packaging = ' jar'
You can’t perform that action at this time.
0 commit comments