Skip to content

Commit

Permalink
Merge pull request #16 from vorburger/patch-1
Browse files Browse the repository at this point in the history
add eclipse to build gradle (fixes #182)
  • Loading branch information
pmlopes authored May 28, 2018
2 parents 52e7909 + 28f0beb commit fa2ebd0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ buildscript {
apply plugin: 'kotlin'
{{/if}}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'

Expand All @@ -33,6 +34,7 @@ mainClassName = 'io.vertx.core.Launcher'

dependencies {
{{#each dependencies}}
// TODO use compileOnly instead compile for codegen
compile '{{groupId}}:{{artifactId}}:{{version}}{{#if classifier}}:{{classifier}}{{/if}}'
{{/each}}
}
Expand All @@ -58,3 +60,11 @@ shadowJar {
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}

eclipse {
classpath {
file.beforeMerged { cp ->
cp.entries.add( new org.gradle.plugins.ide.eclipse.model.SourceFolder('build/classes/java/main', null) )
}
}
}

0 comments on commit fa2ebd0

Please sign in to comment.