Skip to content

Commit

Permalink
* example for eclipse manual wiring added
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuerstenau committed May 26, 2016
1 parent 4bfd299 commit 45226ce
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Expand Up @@ -290,3 +290,21 @@ afterEvaluate {
}
}
```

If one is using Eclipse and have the generated classes added to the Eclipse
buildpath one add the dependency like this instead (depends on the `eclipse` gradle plugin)

```gradle
afterEvaluate {
dependencies {
compile files (compileBuildConfig.outputs.files) {
builtBy compileBuildConfig.name
}
}
}

compileBuildConfig.dependsOn 'eclipseClasspath'
```

A project refresh is need afterwards. The folder with the generated class files
should be added to the eclipse `.classpath` file.

0 comments on commit 45226ce

Please sign in to comment.