Skip to content

Commit

Permalink
added new build instructions for complete release
Browse files Browse the repository at this point in the history
  • Loading branch information
cansik committed Feb 7, 2021
1 parent ecc94c2 commit a04c00d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
group 'gab.opencv'
version '0.6.0'

apply plugin: 'java'
plugins {
id 'java-library'
id 'org.bytedeco.gradle-javacpp-platform' version "1.5.4"
}

sourceCompatibility = 1.8
group 'gab.opencv'
version '0.6.1'

def javaCvVersion = '1.5.4'
def outputName = 'opencv-processing'

// We can set this on the command line too this way: -PjavacppPlatform=linux-x86_64,macosx-x86_64,windows-x86_64,etc
ext {
javacppPlatform = 'linux-x86_64,macosx-x86_64,windows-x86_64,linux-armhf' // defaults to Loader.getPlatform()
}

sourceCompatibility = 1.8

repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
Expand Down Expand Up @@ -40,7 +48,7 @@ dependencies {
}

task fatJar(type: Jar) {
archiveName = "$outputName-complete.jar"
archiveName = "$outputName-combined.jar"
dependsOn configurations.runtime
from {
(configurations.runtime - configurations.processing).collect {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Contributions welcome.
To build opencv run the following command:

```bash
./gradlew fatjar
./gradlew fatjar -PjavacppPlatform=linux-x86_64,macosx-x86_64,windows-x86_64,linux-armhf
```

### Installing
Expand Down

0 comments on commit a04c00d

Please sign in to comment.