Skip to content

Commit

Permalink
fix Vert.x code generation source path in Eclipse with gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed May 25, 2018
1 parent d2f9ccc commit f8b1d25
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apply plugin: 'eclipse'

ext {
vertxVersion = '3.5.1'
}
Expand All @@ -16,16 +18,23 @@ dependencies {
testCompile "io.vertx:vertx-unit:$vertxVersion"
}

/*
TODO https://discuss.gradle.org/t/how-to-add-srcdir-only-for-eclipse-buildship/27007
sourceSets {
main {
java {
srcDir 'src/main/java'
srcDir 'build/classes/java/main/'
eclipse {
classpath {
file.beforeMerged { cp ->
cp.entries.add( new org.gradle.plugins.ide.eclipse.model.SourceFolder('build/classes/java/main', null) )
}
}
}

/*
eclipse {
sourceSets {
main {
java {
srcDir 'src/main/java'
srcDir 'build/classes/java/main'
}
}
}
}
*/

0 comments on commit f8b1d25

Please sign in to comment.