cavis/brutex-extended-tests/build.gradle

104 lines
3.9 KiB
Groovy
Raw Normal View History

/*
*
* ******************************************************************************
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NOTICE file distributed with this work for additional
* * information regarding copyright ownership.
* * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* * License for the specific language governing permissions and limitations
* * under the License.
* *
* * SPDX-License-Identifier: Apache-2.0
* *****************************************************************************
*
*/
2023-03-10 11:20:32 +01:00
plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
apply from: "${project.rootProject.projectDir}/createTestBackends.gradle"
ext {
buildTarget = rootProject.ext.buildTarget
scalaVersion = rootProject.ext.scalaVersion
}
dependencies {
implementation platform(projects.cavisCommonPlatform)
implementation "com.fasterxml.jackson.core:jackson-databind"
implementation "com.google.guava:guava"
implementation projects.cavisDnn.cavisDnnCore
implementation projects.cavisUi.cavisUiStandalone
implementation projects.cavisDatavec.cavisDatavecApi
implementation projects.cavisDatavec.cavisDatavecSpark.cavisDatavecSparkCore
implementation projects.cavisDnn.cavisDnnCommon
implementation projects.cavisDnn.cavisDnnCommonTests
implementation projects.cavisDnn.cavisDnnApi
implementation "org.slf4j:slf4j-api"
implementation "org.apache.hadoop:hadoop-client"
compileOnly "org.apache.spark:spark-core_${scalaVersion}"
compileOnly "org.apache.spark:spark-sql_${scalaVersion}"
compileOnly "org.scala-lang:scala-library"
testImplementation "org.apache.spark:spark-core_${scalaVersion}"
testImplementation "org.apache.spark:spark-sql_${scalaVersion}"
testCompileOnly "org.scala-lang:scala-library"
//Rest Client
// define any required OkHttp artifacts without version
implementation("com.squareup.okhttp3:okhttp")
implementation("com.squareup.okhttp3:logging-interceptor")
implementation "org.bytedeco:javacv"
implementation "org.bytedeco:opencv"
implementation group: "org.bytedeco", name: "opencv", classifier: buildTarget
implementation "it.unimi.dsi:fastutil-core:8.5.8"
implementation projects.cavisDnn.cavisDnnSpark.cavisDnnSparkCore
implementation projects.cavisDnn.cavisDnnSpark.cavisDnnSparkParameterserver
implementation projects.cavisDnn.cavisDnnNnParent.cavisDnnNnCore
implementation projects.cavisDnn.cavisDnnNn
2023-03-10 11:20:32 +01:00
implementation projects.cavisUi.cavisUiCommon
implementation projects.cavisUi.cavisUiVertx
implementation projects.cavisUi.cavisUiModel
implementation projects.cavisNd4j.cavisNd4jParameterServer.cavisNd4jParameterServerCore
implementation projects.cavisNd4j.cavisNd4jParameterServer.cavisNd4jParameterServerNode
implementation projects.cavisDnn.cavisDnnData.cavisDnnDataDatasets
implementation projects.cavisDnn.cavisDnnData.cavisDnnDataDatavecIterators
implementation projects.cavisDnn.cavisDnnData.cavisDnnDataUtilityIterators
implementation projects.cavisDatavec.cavisDatavecData.cavisDatavecDataImage
implementation projects.cavisDnn.cavisDnnParallelwrapper
implementation projects.cavisZoo.cavisZooModels
2022-10-06 13:22:06 +02:00
testRuntimeOnly "net.brutex.ai:dl4j-test-resources:1.0.1-SNAPSHOT"
}
2023-03-10 11:20:32 +01:00
test {
2023-03-10 11:20:32 +01:00
enabled true
dependsOn shadowJar
}
2023-03-10 11:20:32 +01:00
shadowJar {
enabled true;
zip64 true //need this to support jars with more than 65535 entries
archiveClassifier.set('all')
from sourceSets.test.output
}