From 94b14a9c740aba5144835730cd7e959a297436fb Mon Sep 17 00:00:00 2001 From: agibsonccc Date: Thu, 18 Mar 2021 12:35:33 +0900 Subject: [PATCH] Update maven profiles in python4j allowing tests to run --- python4j/pom.xml | 132 +++++++++++++++++++++++++++++++- python4j/python4j-numpy/pom.xml | 2 +- 2 files changed, 130 insertions(+), 4 deletions(-) diff --git a/python4j/pom.xml b/python4j/pom.xml index bf67dd896..8c3e950c2 100644 --- a/python4j/pom.xml +++ b/python4j/pom.xml @@ -20,8 +20,8 @@ --> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 @@ -56,7 +56,7 @@ ch.qos.logback logback-classic ${logback.version} - test + test org.junit.jupiter @@ -81,4 +81,130 @@ 3.0.2 + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-plugin.version} + + + test + enforce-choice-of-nd4j-test-backend + + enforce + + + ${skipBackendChoice} + + + nd4j-tests-cpu,nd4j-tests-cuda + false + + + true + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + com.lewisd + lint-maven-plugin + ${maven-lint-plugin.version} + + true + + DuplicateDep + RedundantPluginVersion + + + ${project.build.directory}/maven-lint-result.xml + + + + pom-lint + validate + + check + + + + + + + pl.project13.maven + git-commit-id-plugin + + + + org.codehaus.mojo + build-helper-maven-plugin + + + net.revelc.code.formatter + formatter-maven-plugin + + + python4j-core + python4j-numpy + + + + + + + + nd4j-tests-cpu + + + org.nd4j + nd4j-native + ${nd4j.version} + test + + + org.deeplearning4j + dl4j-test-resources + ${nd4j.version} + test + + + + + nd4j-tests-cuda + + + org.nd4j + nd4j-cuda-11.0 + ${nd4j.version} + test + + + org.deeplearning4j + dl4j-test-resources + ${nd4j.version} + test + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + + + diff --git a/python4j/python4j-numpy/pom.xml b/python4j/python4j-numpy/pom.xml index cf321494d..03e683c91 100644 --- a/python4j/python4j-numpy/pom.xml +++ b/python4j/python4j-numpy/pom.xml @@ -53,7 +53,7 @@ org.nd4j python4j-core - 1.0.0-SNAPSHOT + ${project.version}