-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy some javacpp-preset sample project build.gradle fragment here in…
… samples. This does not really help resolving dependencies to incorrect platform- specific libs e.g. it tries to resolve rtmidi-javacpp-macos-x86_64 even on linux-x86_64 host. Looks like bytedeco/gradle-javacpp#24 is a relevant issue, but it seems unresolved forever.
- Loading branch information
1 parent
8a4e68c
commit 220e3ac
Showing
2 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,36 @@ | ||
plugins { | ||
id 'java' | ||
id 'java-library' | ||
id 'org.bytedeco.gradle-javacpp-platform' version '1.5.8' | ||
} | ||
|
||
group = 'dev.atsushieno' | ||
version = '0.1.0-SNAPSHOT' | ||
version = '0.1.0' | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
ext { | ||
// This does not really help resolving dependencies to incorrect platform-specific libs | ||
// e.g. it tries to resolve rtmidi-javacpp-macos-x86_64 even on linux-x86_64 host. | ||
// Looks like https://github.com/bytedeco/gradle-javacpp/issues/24 is a relevant issue | ||
// but it seems unresolved forever. | ||
//javacppPlatform = 'linux-x86_64' // defaults to Loader.getPlatform() | ||
} | ||
|
||
dependencies { | ||
// IDEA is not capable of supporting autocompleting generated rtmidi-javacpp API... | ||
//implementation project(':rtmidi-javacpp') | ||
//implementation 'dev.atsushieno:rtmidi-javacpp:0.1.0' | ||
implementation 'dev.atsushieno:rtmidi-javacpp-platform:0.1.0' | ||
testImplementation platform('org.junit:junit-bom:5.9.1') | ||
testImplementation 'org.junit.jupiter:junit-jupiter' | ||
api "dev.atsushieno:rtmidi-javacpp-platform:0.1.0" | ||
testImplementation 'junit:junit:4.13.2' | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
/* | ||
// Let's create a standalone "uber JAR" to see what we get in it | ||
jar { | ||
duplicatesStrategy = DuplicatesStrategy.INCLUDE // allow duplicates | ||
manifest.attributes "Main-Class": "org.bytedeco.javacv.samples.Demo" | ||
from { | ||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } | ||
} | ||
} | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters