Skip to content

Commit e940aee

Browse files
committed
build.gradle update
1 parent 2c9f388 commit e940aee

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

build.gradle

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,23 +116,37 @@ javadoc {
116116
exclude "org/jlab/coda/xmsg/sys/*/*.java"
117117
}
118118

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
119127
publishing {
120128
publications {
121129
maven(MavenPublication) {
122-
from components.java
130+
artifact(shadowJar) // ← no {} block, no classifier, just this
123131
}
124132
}
125133
}
126-
134+
//publishing {
135+
// publications {
136+
// maven(MavenPublication) {
137+
// from components.java
138+
// }
139+
// }
140+
//}
127141

128142
build.dependsOn shadowJar
129143

130144
// 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+
//}
136150

137151

138152
test {

0 commit comments

Comments
 (0)