compile nd4j but exclude 120MB of dependencies
I don't know how to exclude platform-specific versions since they all come under one maven module,
e.g.
@@ -22,7 +22,16 @@ archivesBaseName = "keanu"
dependencies {
compile 'org.apache.commons:commons-math3:3.6.1'
- shadow 'org.nd4j:nd4j-native-platform:1.0.0-beta2'
+ compile('org.nd4j:nd4j-native-platform:1.0.0-beta2') {
+ exclude module: "mkl" // 9MB
+ exclude module: "mkl-dnn" // 110MB
+ exclude module: "guava" // 2MB
+ exclude module: "jackson" // 2MB
+ exclude module: "commons-codec" // 0.3MB
+ exclude module: "commons-compress" // 0.5MB
+ exclude module: "commons-lang3" // 0.5MB
+ exclude module: "commons-math3" // 2MB
+ }
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile 'com.google.guava:guava:20.0'
compile group: 'com.opencsv', name: 'opencsv', version: '4.2'
