Skip to content

Instantly share code, notes, and snippets.

@miquelbeltran
Last active September 24, 2017 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miquelbeltran/c56905a7b142f2666412d7d3481c27e5 to your computer and use it in GitHub Desktop.
Save miquelbeltran/c56905a7b142f2666412d7d3481c27e5 to your computer and use it in GitHub Desktop.
apply plugin: 'kotlin'
kapt {
generateStubs = true
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDir "${buildDir.absolutePath}/tmp/kapt/main/kotlinGenerated/"
}
}
}
dependencies {
kapt project(":generator")
compileOnly project(":generator")
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment