Hi everyone, I have a project with a few dependenc...
# gradle
a
Hi everyone, I have a project with a few dependencies (kafka, spring etc) and I'm trying to create a jar file for kafka connect with only my kafka connect relevant code and a single dependency. Since I'm already using shadow, I've tried to create the task like thi
Copy code
// Custom jars for kafka connect
create<ShadowJar>("kafkaConnectUtilsJar") {
    archiveClassifier.set("connect-utils")
    include("co/visup/kafkaProcessor/connect/**")
    include("co/visup/kafkaProcessor/serializer/**")
    dependencies {
        include(dependency("io.confluent:kafka-connect-storage-partitioner:10.2.4"))
    }
    from(project.sourceSets.main.get().output)
    configurations = listOf(project.configurations.runtimeClasspath.get())
}
however while I see the classes in
co/visup
etc, I don't see the dependency, anyone has any idea?
It seems the problem is that when you
include()
part of your directory tree it removes all the dependencies