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 -> tasks.getByName("${thisChip}SupportJar") { Jar thisTask ->
dependsOn "javacpp${thisChip.capitalize()}SupportBuildCompiler" dependsOn "javacpp${thisChip.capitalize()}SupportBuildCompiler"
dependsOn "javacpp${thisChip.capitalize()}SupportBuildCommand" dependsOn "javacpp${thisChip.capitalize()}SupportBuildCommand"
@ -405,7 +405,7 @@ chipList.each { thisChip ->
} }
return exclude 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()) { from(sourceSets.getByName("${thisChip}Support").getOutput()) {
@ -466,34 +466,36 @@ javadoc {
if(! osdetector.os.startsWith("windows")) { if(! osdetector.os.startsWith("windows")) {
tasks.getByName("publish") { //tasks.getByName("publish") {
enabled = true // enabled = false
} // }
tasks.getByName("generatePomFileForMavenJavaPublication") { tasks.getByName("generatePomFileForMavenJavaPublication") {
enabled = true enabled = true
} }
tasks.getByName("publishMavenJavaPublicationToLocalRemoteRepository") { tasks.getByName("publishMavenJavaPublicationToLocalRemoteRepository") {
enabled = true enabled = true
} }
chipList.each {thisChip -> chipList.each { thisChip ->
artifacts { artifacts {
archives tasks.getByName("${thisChip}SupportJar") archives tasks.getByName("${thisChip}SupportJar")
} }
} }
}
chipList.each { thisChip ->
publishing { chipList.each { thisChip ->
publications { publishing {
mavenJava(MavenPublication) { publications {
logger.quiet("Adding artifacts from task {} to the publication.", "${thisChip}SupportJar" ) mavenJava(MavenPublication) {
artifact tasks.getByName("${thisChip}SupportJar") logger.quiet("Adding artifacts from task {} to the publication.", "${thisChip}SupportJar" )
} artifact tasks.getByName("${thisChip}SupportJar")
} }
} }
} }
} }
if( osdetector.os.startsWith("windows")) { if( osdetector.os.startsWith("windows")) {
FileCollection collection = layout.files { file("build/libs/").listFiles() } FileCollection collection = layout.files { file("build/libs/").listFiles() }