Open jagiellonczyk14 opened 6 years ago
This isn't an answer, but a suggestion for tracking down an answer.
jar
configuration blocks. I'm not sure how gradle handles that. It is probably safer to just have one. from {
(configurations.runtime).collect {
it.isDirectory() ? it : zipTree(it)
}
}
With so many dependencies, you might be clobbering one library's transitive dependency with another's. That is, for the transitive dependencies, the class loading order you get when you run in IDEA might be different from what you get in this "uber" jar file you're making. You might consider replacing that manual process with the shadow plugin and see if you get different results.
Plugin repo: https://github.com/johnrengelman/shadow
The plugin has fairly robust transitive dependency filtering capabilities, but as the author points out, the specifics of what you filter is still up to you. Pertinent part of docs: http://imperceptiblethoughts.com/shadow/#filtering_dependencies
buildscript {
ext.shadow_version = '2.0.3'
repositories {
jcenter()
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:$shadow_version"
}
}
apply plugin: 'com.github.johnrengelman.shadow'
Hi I am creating app with gradle. On intelij it works perfectly , hovewer after creating jar files letters like śćż and others that are coded in UTF 8 are not displayed correctly, alhough theoretically kotlin is automatically on UTF 8, what can I do? Below is my build gradle buildscript { ext.kotlin_version = '1.2.21'
P.S I all of my strings are stored in JSON and retrieved by gson and kotson libraries, still before packaging it works perfectly.