Add jenkinsfile for pipeline build and dockerfile for build

Signed-off-by: brian <brian@brutex.de>
master
Brian Rosenberger 2022-10-12 20:39:12 +02:00
parent 1ee6b7a231
commit 941275df3a
1 changed files with 15 additions and 13 deletions

View File

@ -388,7 +388,7 @@ chipList.each { thisChip ->
//}
}
// Generates jnijavacpp.cpp and jniNativeLibrary.cpp, compiles and links it
// Create Jar with classifier
tasks.getByName("${thisChip}SupportJar") { Jar thisTask ->
dependsOn "javacpp${thisChip.capitalize()}SupportBuildCompiler"
dependsOn "javacpp${thisChip.capitalize()}SupportBuildCommand"
@ -405,7 +405,7 @@ chipList.each { thisChip ->
}
return exclude
}
into "${javacppPlatform}/" //we need it in a platform, that javacpp Loader understands
into "${javacppPlatform}/" //path within jar, we need it in a platform, that javacpp Loader understands
}
from(sourceSets.getByName("${thisChip}Support").getOutput()) {
@ -466,34 +466,36 @@ javadoc {
if(! osdetector.os.startsWith("windows")) {
tasks.getByName("publish") {
enabled = true
}
//tasks.getByName("publish") {
// enabled = false
// }
tasks.getByName("generatePomFileForMavenJavaPublication") {
enabled = true
}
tasks.getByName("publishMavenJavaPublicationToLocalRemoteRepository") {
enabled = true
}
chipList.each {thisChip ->
chipList.each { thisChip ->
artifacts {
archives tasks.getByName("${thisChip}SupportJar")
}
}
}
chipList.each { thisChip ->
publishing {
publications {
mavenJava(MavenPublication) {
logger.quiet("Adding artifacts from task {} to the publication.", "${thisChip}SupportJar" )
artifact tasks.getByName("${thisChip}SupportJar")
}
chipList.each { thisChip ->
publishing {
publications {
mavenJava(MavenPublication) {
logger.quiet("Adding artifacts from task {} to the publication.", "${thisChip}SupportJar" )
artifact tasks.getByName("${thisChip}SupportJar")
}
}
}
}
if( osdetector.os.startsWith("windows")) {
FileCollection collection = layout.files { file("build/libs/").listFiles() }