Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.06 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.06 KB

Groovy application using Spring IoC template

Features

  • Programmatic Spring configuration using Environment
  • JSR 330 singleton and prototype annotations
  • Spock unit tests that override Environment values with test ones
  • Example of JSR 330 Provider usage
  • Gradle build script that builds, tests the application and creates standalone JAR

Building from source

This sample Groovy application uses a Gradle-based build system. Use the instructions below to build the sample:

Check out sources

git clone https://github.com/vlasenko/groovy-spring-example.git

Compile and test, build standalone jar

./gradlew

Check standalone jar launching

java -jar build/libs/groovy-spring-example-1.0.jar Guest

License

This example is released under Public Domain License.