<@U0ZFBBUBU> I have dagger2 + kapt2 + gradle worki...
# announcements
r
@groostav I have dagger2 + kapt2 + gradle working in an example project. Its pretty simple, here is the effective subproject definition (the parent project just defines standard stuff that shouldn't be relevant):
Copy code
apply plugin: 'kotlin'
  apply plugin: 'kotlin-kapt'

  sourceCompatibility = 1.8
  targetCompatibility = 1.8

  repositories {
    mavenCentral()
    mavenLocal()
  }

  dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
    compile project(":common")
    compile 'com.google.dagger:dagger:2.7'

    kapt 'com.google.dagger:dagger-compiler:2.7'
  }

  /* kapt1, not needed for kapt2
  kapt {
    generateStubs = true
  }
  */

  sourceSets {
    main {
      java {
        srcDir "${buildDir}/generated/source/kapt2/main"
      }
    }
  }