File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1- Lambda2sql
1+ Lambda2sql (lambda) -> "sql"
22==========
33
44Convert Java 8 lambdas to SQL statements.
2121---------
2222
2323```
24- Lambda2Sql.init(); // initialize on program start
24+ Lambda2Sql.init(); // initialize on program start, before predicates are created
2525
2626Predicate<Person> predicate = person -> person.getAge() < 100 && person.getHeight() > 200;
2727
@@ -49,7 +49,7 @@ Current version only works with predicates and supports the following operators:
4949Build
5050---------
5151
52- ` gradle jar `
52+ ` gradle jar ` or ` gradle fatjar ` to include dependencies.
5353
54- or you can just [ download the jar] ( http://dl.bintray.com/ajermakovics/jar/lambda2sql-0.1.jar ) .
54+ or you can just [ download the fat jar] ( http://dl.bintray.com/ajermakovics/jar/lambda2sql-0.1.jar ) .
5555
Original file line number Diff line number Diff line change @@ -21,5 +21,10 @@ dependencies {
2121jar {
2222 from sourceSets. main. allSource // include source
2323 manifest { attributes ' Implementation-Title' : ' Lambda2sql' , ' Implementation-Version' : version }
24- from configurations. compile. collect { it. isDirectory() ? it : zipTree(it) } // fat jar
24+ }
25+
26+ task fatJar (type : Jar ) {
27+ baseName = project. name + ' -all'
28+ from { configurations. compile. collect { it. isDirectory() ? it : zipTree(it) } }
29+ with jar
2530}
You can’t perform that action at this time.
0 commit comments