Add jenkinsfile for pipeline build and dockerfile for build
parent
d767abdeba
commit
931841d669
|
@ -11,5 +11,3 @@ RUN wget -nv https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.
|
||||||
rm cmake-3.24.2-linux-x86_64.sh
|
rm cmake-3.24.2-linux-x86_64.sh
|
||||||
|
|
||||||
|
|
||||||
RUN echo "nameserver 8.8.8.8" >> /etc/resolv.conf
|
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ ext {
|
||||||
|
|
||||||
scalaVersion = "2.12"
|
scalaVersion = "2.12"
|
||||||
logger.quiet("Scala main version is set to {}", scalaVersion)
|
logger.quiet("Scala main version is set to {}", scalaVersion)
|
||||||
|
logger.quiet("Running java {}", JavaVersion.current())
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations.all {
|
configurations.all {
|
||||||
|
@ -63,8 +64,8 @@ allprojects { Project proj ->
|
||||||
|
|
||||||
|
|
||||||
plugins.withType(JavaPlugin) {
|
plugins.withType(JavaPlugin) {
|
||||||
sourceCompatibility = 11
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.release = 8
|
options.release = 8
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,3 +130,15 @@ echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf
|
||||||
|
|
||||||
-P\<xxx>\
|
-P\<xxx>\
|
||||||
CAVIS_AVX_EXTENSION = {avx2 | avx512}, default is avx2
|
CAVIS_AVX_EXTENSION = {avx2 | avx512}, default is avx2
|
||||||
|
|
||||||
|
# Zeppelin Spark dependencies #
|
||||||
|
3
|
||||||
|
|
||||||
|
|
||||||
|
To add the dependency to the language models, use the following format in the Dependencies section of the of the Spark Interpreter configuration (Interpreters -> Spark -> Edit -> Dependencies):
|
||||||
|
|
||||||
|
groupId:artifactId:packaging:classifier:version
|
||||||
|
|
||||||
|
In your case it should work with
|
||||||
|
|
||||||
|
edu.stanford.nlp:stanford-corenlp:jar:models:3.8.0
|
|
@ -16,7 +16,8 @@ dependencies {
|
||||||
api "com.fasterxml.jackson.datatype:jackson-datatype-joda:2.10.5"
|
api "com.fasterxml.jackson.datatype:jackson-datatype-joda:2.10.5"
|
||||||
api 'org.slf4j:slf4j-simple:2.0.3'
|
api 'org.slf4j:slf4j-simple:2.0.3'
|
||||||
api 'org.slf4j:slf4j-api:2.0.3'
|
api 'org.slf4j:slf4j-api:2.0.3'
|
||||||
//api group: "org.bytedeco", name: "javacpp", classifier: "linux-x64_86"
|
api group: "org.bytedeco", name: "javacpp", classifier: "linux-x64_86"
|
||||||
|
api group: 'net.brutex.cavis-native', name: 'cavis-native-lib', version: '1.0.0-SNAPSHOT', classifier: "linux-x86_64-avx2-cpu"
|
||||||
|
|
||||||
rootProject.getAllprojects().each { Project sproj ->
|
rootProject.getAllprojects().each { Project sproj ->
|
||||||
if(!sproj.name.equals(name) && !sproj.name.equals("cavis-common-platform")
|
if(!sproj.name.equals(name) && !sproj.name.equals("cavis-common-platform")
|
||||||
|
|
|
@ -84,7 +84,7 @@ chipList.each {thisChip ->
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//if(osdetector.os.startsWith("windows")) {
|
if(osdetector.os.startsWith("windows")) {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
|
@ -93,7 +93,7 @@ chipList.each {thisChip ->
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//}
|
}
|
||||||
|
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
@ -212,7 +212,7 @@ tasks.withType(org.bytedeco.gradle.javacpp.BuildTask) {
|
||||||
// Disable the standard javacpp generated tasks and use own
|
// Disable the standard javacpp generated tasks and use own
|
||||||
// versions below. This allows to build for each variant
|
// versions below. This allows to build for each variant
|
||||||
[javacppBuildParser, javacppBuildCommand, javacppCompileJava, javacppBuildCompiler].each {
|
[javacppBuildParser, javacppBuildCommand, javacppCompileJava, javacppBuildCompiler].each {
|
||||||
it.enabled false
|
it.enabled false;
|
||||||
}
|
}
|
||||||
|
|
||||||
chipList.each { thisChip ->
|
chipList.each { thisChip ->
|
||||||
|
@ -488,7 +488,6 @@ chipList.each { thisChip ->
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
mavenJava(MavenPublication) {
|
mavenJava(MavenPublication) {
|
||||||
artifact jar
|
|
||||||
artifact tasks.getByName("${thisChip}SupportJar")
|
artifact tasks.getByName("${thisChip}SupportJar")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue