Skip to content

Commit

Permalink
Add task dependency for processResources on compileJava
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
stephan-gh committed Dec 10, 2016
1 parent 5292113 commit bac4799
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ class SpongePluginBasePlugin implements Plugin<Project> {
// Set up final generated metadata file
args << '-AmetadataOutputFile=' + generatedPath
}

// Add dependency on compileJava so we can generate the metadata using the annotation processor first
// See https://github.com/SpongePowered/SpongeGradle/issues/7
tasks.processResources.dependsOn tasks.compileJava
}
}

Expand Down

0 comments on commit bac4799

Please sign in to comment.