Add jenkinsfile for pipeline build and dockerfile for build
Signed-off-by: brian <brian@brutex.de>master
parent
602220e07e
commit
6f8c14c0a3
|
@ -36,8 +36,8 @@ dependencies {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
if(withCpu()) api project(path: ":cavis-native:cavis-native-lib", configuration: "cpuSupportImplementation")
|
//if(withCpu()) api project(path: ":cavis-native:cavis-native-lib", configuration: "cpuSupportImplementation")
|
||||||
if(withCuda()) api project(path: ":cavis-native:cavis-native-lib", configuration: "cudaSupportImplementation")
|
//if(withCuda()) api project(path: ":cavis-native:cavis-native-lib", configuration: "cudaSupportImplementation")
|
||||||
//if(withCuda()) api project(path: ":cavis-native:cavis-native-lib", configuration: "cudaSupportCompileClasspath")
|
//if(withCuda()) api project(path: ":cavis-native:cavis-native-lib", configuration: "cudaSupportCompileClasspath")
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -69,14 +69,6 @@ plugins {
|
||||||
id 'signing'
|
id 'signing'
|
||||||
}
|
}
|
||||||
|
|
||||||
chipList.each{ thisChip ->
|
|
||||||
|
|
||||||
configurations {
|
|
||||||
create("${thisChip}SupportImplementation")
|
|
||||||
findByName("${thisChip}SupportImplementation").setCanBeConsumed(true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
chipList.each {thisChip ->
|
chipList.each {thisChip ->
|
||||||
sourceSets.register("${thisChip}Support") {
|
sourceSets.register("${thisChip}Support") {
|
||||||
java {
|
java {
|
||||||
|
@ -114,17 +106,9 @@ java {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
configurations.each(s -> {
|
|
||||||
println "Configurations: " + s.name + " " + s.artifacts.each( x ->
|
|
||||||
{ println x.getFile().getName()})
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api platform(project(':cavis-common-platform'))
|
api platform(project(':cavis-common-platform'))
|
||||||
|
|
||||||
|
|
||||||
implementation "org.bytedeco:javacpp"
|
implementation "org.bytedeco:javacpp"
|
||||||
implementation group: "org.bytedeco", name: "javacpp", classifier: "${javacppPlatform}"
|
implementation group: "org.bytedeco", name: "javacpp", classifier: "${javacppPlatform}"
|
||||||
|
|
||||||
|
@ -422,10 +406,6 @@ chipList.each { thisChip ->
|
||||||
thisTask.with spec
|
thisTask.with spec
|
||||||
thisTask.archiveClassifier = "${javacppPlatform}${javacppPlatformExtension}-${thisChip}"
|
thisTask.archiveClassifier = "${javacppPlatform}${javacppPlatformExtension}-${thisChip}"
|
||||||
}
|
}
|
||||||
|
|
||||||
//tasks.getByName("${thisChip}SupportJar").dependsOn("javacpp${thisChip.capitalize()}SupportJar")
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Before we can compile the whole java part, we
|
//Before we can compile the whole java part, we
|
||||||
|
@ -469,10 +449,7 @@ javadoc {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(! osdetector.os.startsWith("windows")) {
|
|
||||||
//tasks.getByName("publish") {
|
|
||||||
// enabled = false
|
|
||||||
// }
|
|
||||||
tasks.getByName("generatePomFileForMavenJavaPublication") {
|
tasks.getByName("generatePomFileForMavenJavaPublication") {
|
||||||
enabled = true
|
enabled = true
|
||||||
}
|
}
|
||||||
|
@ -481,10 +458,10 @@ if(! osdetector.os.startsWith("windows")) {
|
||||||
}
|
}
|
||||||
chipList.each { thisChip ->
|
chipList.each { thisChip ->
|
||||||
artifacts {
|
artifacts {
|
||||||
archives tasks.getByName("${thisChip}SupportJar")
|
artifact tasks.getByName("${thisChip}SupportJar")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
chipList.each { thisChip ->
|
chipList.each { thisChip ->
|
||||||
|
|
Loading…
Reference in New Issue