You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to publish a jar without dependencies to the repositories. But as a result of publishing I have two jar files. like a disaster, fat jar. help me.
Shadow Version
'8.1.1'
Gradle Version
'8.5'
Gradle Build Script(s)
plugins {
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java-library'
id 'maven-publish'
}
...
repositories {
mavenCentral()
}
configurations {
developmentOnly
}
dependencies {
compileOnly 'com.github.spotbugs:spotbugs-annotations:4.8.2'
implementation 'org.jetbrains:annotations:24.1.0'
implementation 'org.bytedeco:javacv:1.5.9'
}
shadowJar {
mergeServiceFiles()
}
publishing {
publications {
Library(MavenPublication) {
from components.java
}
}
}
The text was updated successfully, but these errors were encountered:
Despite I also have
mergeServiceFiles()
in my config
the -all file is much larger than the non -all.I Have a project on 7.1.2 and another on 8.1.1 and both are doing that. In the past I used an older version that it would only generate 1 jar
I want to publish a jar without dependencies to the repositories. But as a result of publishing I have two jar files. like a disaster, fat jar. help me.
Shadow Version
'8.1.1'
Gradle Version
'8.5'
Gradle Build Script(s)
The text was updated successfully, but these errors were encountered: