I'm trying to build an Android Kotlin library with...
# build-tools
h
I'm trying to build an Android Kotlin library with Gradle, but can't manage to produce a sources jar that includes my Kotlin sources. My sources are in
src/main/kotlin
(though using
src/main/java
doesn't change anything). The package structure is included, but only empty folders. I tried adding an include spec to my Jar task like this:
Copy code
task androidSourcesJar(type: Jar) {
  classifier = 'sources'
  from android.sourceSets.main.java.sourceFiles
  include "**/*"
}
but that didn't help either. Does anyone have an idea what I'm doing wrong?