Add jenkinsfile for pipeline build and dockerfile for build

Signed-off-by: brian <brian@brutex.de>
master
Brian Rosenberger 2022-10-30 05:52:19 +01:00
parent 9bc4009d10
commit e61068da55
1 changed files with 3 additions and 3 deletions

View File

@ -26,19 +26,19 @@ dependencies {
&& !sproj.name.equals("cavis-nd4j") && !sproj.name.equals("cavis-nd4j")
&& !sproj.name.equals("cavis-ui") && !sproj.name.equals("cavis-ui")
&& !sproj.name.equals("cavis-zoo")) { && !sproj.name.equals("cavis-zoo")) {
implementation project(path: sproj.path, configuration: 'runtimeElements') api project(path: sproj.path, configuration: 'runtimeElements')
} }
} }
// if(withCpu) api project(path: ":cavis-native:cavis-native-lib", configuration: "cpuSupportApiElements") // if(withCpu) api project(path: ":cavis-native:cavis-native-lib", configuration: "cpuSupportApiElements")
// if(withCuda) api project(path: ":cavis-native:cavis-native-lib", configuration: "cudaSupportApiElements") // if(withCuda) api project(path: ":cavis-native:cavis-native-lib", configuration: "cudaSupportApiElements")
implementation(projects.cavisNative.cavisNativeLib) { api(projects.cavisNative.cavisNativeLib) {
capabilities { capabilities {
//if(withCuda()) it.requireCapability(group: "net.brutex.cavis.cavis-native", name: "cavis-native-lib-cuda-support", version: project.version) //if(withCuda()) it.requireCapability(group: "net.brutex.cavis.cavis-native", name: "cavis-native-lib-cuda-support", version: project.version)
if (withCpu()) it.requireCapability(group: "net.brutex.cavis.cavis-native", name: "cavis-native-lib-cpu-support", version: project.version) if (withCpu()) it.requireCapability(group: "net.brutex.cavis.cavis-native", name: "cavis-native-lib-cpu-support", version: project.version)
} }
} }
implementation(projects.cavisNative.cavisNativeLib) { api(projects.cavisNative.cavisNativeLib) {
capabilities { capabilities {
if (withCuda()) it.requireCapability(group: "net.brutex.cavis.cavis-native", name: "cavis-native-lib-cuda-support", version: project.version) if (withCuda()) it.requireCapability(group: "net.brutex.cavis.cavis-native", name: "cavis-native-lib-cuda-support", version: project.version)
//if(withCpu()) it.requireCapability(group: "net.brutex.cavis.cavis-native", name: "cavis-native-lib-cpu-support", version: project.version) //if(withCpu()) it.requireCapability(group: "net.brutex.cavis.cavis-native", name: "cavis-native-lib-cpu-support", version: project.version)