Skip to content

Instantly share code, notes, and snippets.

@ismits
Created May 15, 2017 13:14
Show Gist options
  • Save ismits/20a4904966d153b3cae2dd6a11baa4d6 to your computer and use it in GitHub Desktop.
Save ismits/20a4904966d153b3cae2dd6a11baa4d6 to your computer and use it in GitHub Desktop.
Load Ant jobs
final Configuration antlrConfiguration = project.getConfigurations().create(ANTLR_CONFIGURATION_NAME)
.setVisible(false)
.setDescription("The Antlr libraries to be used for this project.")
antlrConfiguration.defaultDependencies(new Action<DependencySet>() {
@Override
public void execute(DependencySet dependencies) {
dependencies.add(project.getDependencies().create("antlr:antlr:2.7.7@jar"))
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment