You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
easy-rules/easyrules-gradle
Will Gilbert e1a6a66842 In the 'build.gradle' move the classpath definition to a common task; DRY - Don't Repeat Yourself\! 8 years ago
..
gradle/wrapper Add Easy Rules tutorial using Groovy beans with a Gradle build 8 years ago
src/main Add Easy Rules tutorial using Groovy beans with a Gradle build 8 years ago
README.md Add Easy Rules tutorial using Groovy beans with a Gradle build 8 years ago
build.gradle In the 'build.gradle' move the classpath definition to a common task; DRY - Don't Repeat Yourself\! 8 years ago
gradlew Add Easy Rules tutorial using Groovy beans with a Gradle build 8 years ago
gradlew.bat Add Easy Rules tutorial using Groovy beans with a Gradle build 8 years ago

README.md

EasyRules-Gradle

Easy Rules and Java/Maven Tutorials

Usage:

NB: Use '--quiet' or '-q' to supress Gradle build output lines

./gradlew usage
   Prints following usage to the console

./gradlew FizzBuzz
   Baseline FizzBuzz using code.
   Prints the numbers from 1 to 100. But for multiples of 3 print 'Fizz' instead 
   of the number and for the multiples of 5 print 'Buzz'. For numbers which are 
   multiples of both three and five print 'FizzBuzz'.
   
./gradlew FizzBuzzER
   FizzBuzz implementation using EasyRules.
   
./gradlew Simple
   Very simple EasyRules examples with one, always true, rule.
   
./gradlew HelloWorld -q
   Obligatory 'Hello, world' example where the input is evaluated by a rule.
   
./gradlew Shop -P person=Tommy -P age=15
   Rule to evaluate drinking age (US 21); Nmae and age can be passed in via the command line
   or system properties; Default is 'Tom' at age '17'.
   
./gradlew Scheduling -q
   A rule which implements scheduling; Reports when the time seconds count is even
   
./gradlew Spring
   Similiar to 'Simple' but the rule is injected by Spring
   
./gradlew clean
 Remove all reports and artifacts from './build'