https://kotlinlang.org logo
Title
l

lkonya

04/17/2019, 9:00 AM
Hi guys! Is there a way, to include annotation processed files into zip? I have a task:
task buildZip(type: Zip) {
    from compileKotlin
    from processResources
    into("lib") {
        from configurations.compileClasspath
    }
}
But this include only the classes I created, not classes created by annotation processing. The build process create the classes made by annotation processing under
tmp/kapt3/classes/main
. Do you know a way to include these files as well?
If anyone is looking for the solution for the same problem:
task buildZip(type: Zip) {
  from sourceSets.main.output
  into('lib') {
    from(configurations.compileClasspath)
  }
}