cbeust / kobalt

A Kotlin-based build system for the JVM.
Apache License 2.0
433 stars 60 forks source link

Annotation processing work #351

Closed cbeust closed 7 years ago

cbeust commented 7 years ago

[ ] Fix version-processor [ ] See if kapt can work with Kobalt now

cbeust commented 7 years ago

kapt3 adds a bunch of new flags when invoking kotlinc:

-d
/Users/cedricbeust/t/semver-example-kotlin/build/generated/source/kapt/main
-cp
/Users/cedricbeust/t/semver-example-kotlin/lib/semver-0.9.7.jar:/Users/cedricbeust/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.1.1/98e484e67f913e934559f7f55f0c94be5593f03c/kotlin-stdlib-1.1.1.jar:/Users/cedricbeust/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-js/1.1.1/260a9dc3039aee5efea1d57a6a8ee1707361ed5/kotlin-stdlib-js-1.1.1.jar:/Users/cedricbeust/.gradle/caches/modules-2/files-2.1/org.apache.velocity/velocity/1.7/2ceb567b8f3f21118ecdec129fe1271dbc09aa7a/velocity-1.7.jar:/Users/cedricbeust/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar:/Users/cedricbeust/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2.1/761ea405b9b37ced573d2df0d1e3a4e0f9edc668/commons-collections-3.2.1.jar:/Users/cedricbeust/.gradle/caches/modules-2/files-2.1/commons-lang/commons-lang/2.4/16313e02a793435009f1e458fa4af5d879f6fb11/commons-lang-2.4.jar
-no-stdlib
-no-reflect
-module
/var/folders/cn/crpfggq11n1bghcbssdx4_4h0000gp/T/kjps5824999597844040408examplekotlin_main.script.xml
-module-name
example-kotlin_main
-jvm-target
1.6
-language-version
1.1
-api-version
1.1
-Xplugin
/Users/cedricbeust/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-annotation-processing/1.1.1/9f7312cea58b39ce82368261cd227758df78eb32/kotlin-annotation-processing-1.1.1.jar
-P

plugin:org.jetbrains.kotlin.kapt3:aptOnly=true,
plugin:org.jetbrains.kotlin.kapt3:apclasspath=/Users/cedricbeust/t/semver-example-kotlin/lib/semver-0.9.7.jar,
plugin:org.jetbrains.kotlin.kapt3:apclasspath=/Users/cedricbeust/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-annotation-processing/1.1.1/9f7312cea58b39ce82368261cd227758df78eb32/kotlin-annotation-processing-1.1.1.jar,
plugin:org.jetbrains.kotlin.kapt3:apclasspath=/Users/cedricbeust/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.1.1/98e484e67f913e934559f7f55f0c94be5593f03c/kotlin-stdlib-1.1.1.jar,
plugin:org.jetbrains.kotlin.kapt3:apclasspath=/Users/cedricbeust/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar,
plugin:org.jetbrains.kotlin.kapt3:sources=/Users/cedricbeust/t/semver-example-kotlin/build/generated/source/kapt/main,
plugin:org.jetbrains.kotlin.kapt3:classes=/Users/cedricbeust/t/semver-example-kotlin/build/tmp/kapt3/classes/main,
plugin:org.jetbrains.kotlin.kapt3:apoptions=rO0ABXcEAAAAAA==,
plugin:org.jetbrains.kotlin.kapt3:useLightAnalysis=true,
plugin:org.jetbrains.kotlin.kapt3:correctErrorTypes=false,
plugin:org.jetbrains.kotlin.kapt3:stubs=/Users/cedricbeust/t/semver-example-kotlin/build/tmp/kapt3/stubs/main
cbeust commented 7 years ago

kapt3 is working for me but in some circumstances, I hit the following bug:

https://youtrack.jetbrains.com/issue/KT-17456

cbeust commented 7 years ago

kapt3 working now.