forked from huawei/mindspore2022
48 lines
1.0 KiB
Groovy
48 lines
1.0 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:4.0.0"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
test {
|
|
testLogging.showStandardStreams = true
|
|
testLogging.exceptionFormat = 'full'
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'junit:junit:4.13'
|
|
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation project(':linux_x86')
|
|
}
|
|
|
|
archivesBaseName = 'mindspore-lite-java'
|
|
|
|
test {
|
|
dependsOn 'cleanTest'
|
|
useJUnit()
|
|
}
|
|
|
|
task releaseJar(type: Jar) {
|
|
from('java/common/build/classes/java/main')
|
|
from('java/linux_x86/build/classes/java/main')
|
|
from('build/classes/java/main')
|
|
from('src/main/resources')
|
|
destinationDirectory = file('build/lib/jar')
|
|
}
|
|
releaseJar.dependsOn(build) |