Skip to content

Commit 15a62cf

Browse files
committed
separate jar and fatjar tasks
1 parent 40c0029 commit 15a62cf

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

README.MD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Lambda2sql
1+
Lambda2sql (lambda) -> "sql"
22
==========
33

44
Convert Java 8 lambdas to SQL statements.
@@ -21,7 +21,7 @@ Usage
2121
---------
2222

2323
```
24-
Lambda2Sql.init(); // initialize on program start
24+
Lambda2Sql.init(); // initialize on program start, before predicates are created
2525
2626
Predicate<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:
4949
Build
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

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,10 @@ dependencies {
2121
jar {
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
}

0 commit comments

Comments
 (0)