-
Notifications
You must be signed in to change notification settings - Fork 1.1k
getting started
Easy Rules is a Java library. It requires a Java 8+ runtime.
To build Easy Rules from sources, you need to have git and maven installed and set up.
Please follow these instructions :
$ git clone https://github.com/j-easy/easy-rules.git
$ cd easy-rules
$ mvn install
To use Easy Rules, you have to add the jar easy-rules-core-4.1.0.jar to your application's classpath. Easy Rules has a single dependency: SLF4J. You can choose which SLF4J implementation you like and add it to the classpath as well.
If you use maven, add the following dependency to your pom.xml :
<dependency>
<groupId>org.jeasy</groupId>
<artifactId>easy-rules-core</artifactId>
<version>4.1.0</version>
</dependency>
The current development version is 4.1.1-SNAPSHOT
. To use this snapshot version, you need to decalre sonatype's snapshot repository in your pom.xml
:
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
or download the jar directly from this repository.
The quick start archetype generates a skeleton project with the right dependency to Easy Rules. In order to generate a quick start project, run the following command:
$>mvn archetype:generate \
-DarchetypeGroupId=org.jeasy \
-DarchetypeArtifactId=easy-rules-archetype \
-DarchetypeVersion=4.1.0
You will be asked for your project's groupId, artifactId, version and base package. Once finished, you will get a fully functional sample application that you can run with the following command:
&>cd ${your.artifactId}
$>mvn compile exec:java -Dexec.mainClass=${your.base.package}.Launcher
where ${your.base.package}
is the value of the base package you were asked for when creating the project.
Easy Rules is created by Mahmoud Ben Hassine with the help of some awesome contributors
-
Introduction
-
User guide
-
Tutorials
-
Get involved