Initialize DependencyResolutionContext with default dependency mgmt

In the absence of a @GrabMetadata annotation,
DependencyResolutionContext provided no dependency management. This
was leading to incorrect dependency versions being pulled in. This
commit intializes the context with default dependency management that
will be replaced should @GrabMetadata be encountered.

Fixes #1021
This commit is contained in:
Andy Wilkinson
2014-06-03 15:57:36 +01:00
parent 0def7644c2
commit 156dadaebe
4 changed files with 28 additions and 7 deletions

View File

@@ -0,0 +1,12 @@
@Grab('spring-boot-starter-data-jpa')
@Grab('h2')
class Sample implements CommandLineRunner {
// No Data JPA-based logic. We just want to check that the dependencies are
// resolved correctly and that the app runs
@Override
void run(String... args) {
println "Hello World"
}
}