Gradle プロジェクトがあり、dagger 2.0 を使用したいと考えています。IntelliJ と gradle を構成してファイルを生成し、IntelliJ にそれらを見つけさせる方法がわかりません。
私のbuild.gradleファイルは次のようになります:
apply plugin: 'java'
apply plugin: 'idea'
version = '1.0'
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.12'
compile 'org.slf4j:slf4j-simple:1.7.12'
compile 'commons-configuration:commons-configuration:1.10'
compile 'commons-collections:commons-collections:3.2.1'
compile 'com.google.dagger:dagger:2.0'
compile 'com.google.dagger:dagger-compiler:2.0:jar-with-dependencies'
compile 'com.pi4j:pi4j-distribution:1.1-SNAPSHOT'
}
私のアプリケーションのビルド ディレクトリにDaggerXmlConfigurationComponent
は、Dagger が作成するコンポーネントであるファイルが存在します。しかし、クラスが見つからないため、IntelliJ では使用できません。
これは Android アプリケーションではなく、Raspberry Pi 用のアプリケーションです。