Damiano Giusti
02/27/2019, 8:35 PMtask fatJar(type: Jar) {
from {
// Add runtime dependencies to jar.
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
} Is there something wrong?
When I include the jar into another project I can only see my classes from the Java code, not the Kotlin one.artem_zin
02/27/2019, 8:52 PM<https://imperceptiblethoughts.com/shadow/>Damiano Giusti
02/27/2019, 9:02 PMmain/kotlin dir, only from main/javaartem_zin
02/27/2019, 9:03 PMartem_zin
02/27/2019, 9:03 PMDamiano Giusti
02/27/2019, 9:04 PMtask fatJar(type: Jar) {
// Add runtime dependencies to jar.
from configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
from sourceSets.main.allSource
with jar
}, so now also my sources are bundled… But this doesn’t fixDamiano Giusti
02/27/2019, 9:05 PMare you sure you’re compiling Kotlin?I’m building with
./gradlew build fatJar where fatJar is the task nameaandreyev
02/27/2019, 9:39 PMDamiano Giusti
02/27/2019, 9:41 PMkotlin dir?