File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -116,23 +116,37 @@ javadoc {
116
116
exclude " org/jlab/coda/xmsg/sys/*/*.java"
117
117
}
118
118
119
+
120
+ // ✅ configure fat jar with NO classifier
121
+ shadowJar {
122
+ archiveClassifier. set(' ' ) // ← this makes it replace the default jar
123
+ archiveVersion. set(' ' ) // optional: remove version in filename
124
+ }
125
+
126
+ // ✅ publish ONLY the fat jar as main artifact
119
127
publishing {
120
128
publications {
121
129
maven(MavenPublication ) {
122
- from components . java
130
+ artifact(shadowJar) // ← no {} block, no classifier, just this
123
131
}
124
132
}
125
133
}
126
-
134
+ // publishing {
135
+ // publications {
136
+ // maven(MavenPublication) {
137
+ // from components.java
138
+ // }
139
+ // }
140
+ // }
127
141
128
142
build. dependsOn shadowJar
129
143
130
144
// creating a uber jar, including all dependencies
131
- shadowJar {
132
- archiveBaseName. set(' xmsg-2.4' )
133
- archiveClassifier. set(' ' )
134
- archiveVersion. set(' ' )
135
- }
145
+ // shadowJar {
146
+ // archiveBaseName.set('xmsg-2.4')
147
+ // archiveClassifier.set('')
148
+ // archiveVersion.set('')
149
+ // }
136
150
137
151
138
152
test {
You can’t perform that action at this time.
0 commit comments