- build.gradeに生成されたクラスをIntelliJで読み込む為の設定
apply plugin: 'java'
apply plugin: 'idea'
repositories {
maven {
url "http://dl.bintray.com/disc99/maven"
}
}
dependencies {
compile 'io.disc99.kuroko:annotation:0.1.1'
compileOnly 'io.disc99.kuroko:processor:0.1.1'
}
idea {
module {
// add annotation peocessor generated classes on classpath for idea
sourceDirs += file('build/classes/main/generated')
generatedSourceDirs += file('build/classes/main/generated')
}
}
- IntelliJでannotation processor の有効化
IntelliJ IDEA > Preferences... > Annotation Processors > Check Enable annotation processing