Add ability to publish final jar locally

This commit is contained in:
Alexander Bezzubov 2017-08-11 09:55:22 +02:00
parent 0c60da0f48
commit b73364d147
3 changed files with 13 additions and 1 deletions

View File

@ -114,6 +114,10 @@ $ enry --json
Note that even if enry's CLI is compatible with linguist's, its main point is that, contrary to linguist, **_enry doesn't need a git repository to work!_**
Java bindings
------------
Generated Java binidings using a C shared library + JNI are located under [`./java`](https://github.com/src-d/enry/tree/master/java)
Development
------------

View File

@ -32,4 +32,5 @@ make test
make package
```
Jar will be located in `./target/enry-java-assembly-X.X.X.jar`.
Will build fatJar under `./target/enry-java-assembly-X.X.X.jar`.
One can use `./sbt publish-local` to install enry-java dependency on local machine.

View File

@ -15,3 +15,10 @@ unmanagedClasspath in Runtime += baseDirectory.value / "shared"
unmanagedClasspath in Compile += baseDirectory.value / "shared"
testOptions += Tests.Argument(TestFrameworks.JUnit)
artifact in (Compile, assembly) := {
val art = (artifact in (Compile, assembly)).value
art.copy(`classifier` = Some("assembly"))
}
addArtifact(artifact in (Compile, assembly), assembly)