diff --git a/fips-pom.xml b/fips-pom.xml new file mode 100644 index 00000000..0578782d --- /dev/null +++ b/fips-pom.xml @@ -0,0 +1,631 @@ + + 4.0.0 + com.snowflake + snowpark-fips + 1.15.0-SNAPSHOT + ${project.artifactId} + Snowflake's DataFrame API + https://www.snowflake.com/ + 2018 + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + + Snowflake Support Team + snowflake-java@snowflake.net + Snowflake Computing + https://www.snowflake.com + + + + + scm:git:git://github.com/snowflakedb/snowpark-java-scala + https://github.com/snowflakedb/snowpark-java-scala/tree/main + + + + 1.8 + 1.8 + UTF-8 + 2.12.18 + 2.12 + 4.2.0 + 3.17.0 + ${scala.compat.version} + Snowpark ${project.version} + 1.64 + 4.3.0 + 2.13.2 + 2.13.4.2 + + + + + + io.opentelemetry + opentelemetry-bom + 1.39.0 + pom + import + + + + + + + org.scala-lang + scala-library + ${scala.version} + + + org.scala-lang + scala-compiler + ${scala.version} + + + commons-io + commons-io + 2.11.0 + + + javax.xml.bind + jaxb-api + 2.2.2 + + + org.slf4j + slf4j-api + 2.0.4 + + + org.slf4j + slf4j-simple + 2.0.4 + + + commons-codec + commons-codec + 1.15 + + + + + io.opentelemetry + opentelemetry-api + + + + + + net.snowflake + snowflake-jdbc-fips + ${snowflake.jdbc.version} + + + org.bouncycastle + bc-fips + 1.0.2.1 + test + + + org.bouncycastle + bcpkix-fips + 1.0.5 + test + + + + com.github.vertical-blank + sql-formatter + 1.0.2 + + + + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.databind.version} + + + com.fasterxml.jackson.core + jackson-core + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson.version} + + + + + io.opentelemetry + opentelemetry-sdk + test + + + io.opentelemetry + opentelemetry-exporters-inmemory + 0.9.1 + test + + + junit + junit + 4.13.1 + test + + + org.mockito + mockito-core + 2.23.0 + test + + + + org.scalatest + scalatest_${scala.compat.version} + 3.0.5 + test + + + org.specs2 + specs2-core_${scala.compat.version} + ${spec2.version} + test + + + org.specs2 + specs2-junit_${scala.compat.version} + ${spec2.version} + test + + + + + src/main/java + + + src/main/resources + true + + + + + org.antipathy + mvn-scalafmt_${version.scala.binary} + 1.0.2 + + ${project.basedir}/.scalafmt.conf + false + false + false + + ${project.basedir}/src/main/scala + + + ${project.basedir}/src/test/scala + + false + + + + validate + + format + + + + + + + com.coveo + fmt-maven-plugin + 2.9.1 + + + compile + + format + + + + + + org.scalastyle + scalastyle-maven-plugin + 1.0.0 + + false + true + true + false + ${project.basedir}/src/main/scala + ${project.basedir}/src/test/scala + ${project.basedir}/scalastyle_config.xml + ${project.basedir}/scalastyle-output.xml + UTF-8 + + + + compile + + check + + + + + + + net.alchim31.maven + scala-maven-plugin + ${scalaPluginVersion} + + + scala-compile-first + + add-source + compile + + + + -dependencyfile + ${project.build.directory}/.scala_dependencies + + + + + scala-test-compile-first + + testCompile + + + + scala-doc + + doc + + prepare-package + + + -groups + -doc-footer + © 2021 Snowflake Inc. All Rights Reserved + -skip-packages + org:com.snowflake.snowpark.internal:com.snowflake.snowpark_java + + + + + + src/main/scala + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + ${java.version} + ${java.version} + true + true + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.21.0 + + true + + **/*Suite.java + + + + + org.scalatest + scalatest-maven-plugin + 2.2.0 + + ${project.build.directory}/surefire-reports + + . + TestSuiteReport.txt + ${tagsToInclude} + ${tagsToExclude} + + + + + + test + + test + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-dependencies + prepare-package + + copy-dependencies + + + runtime + ${project.build.directory}/lib + false + false + true + + + + copy-dependencies-test + package + + copy-dependencies + + + test + ${project.build.directory}/test-lib + false + false + true + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.3.0 + + + + + with-udf-dependency + package + + single + + + ${project.artifactId}-${project.version} + false + + src/assembly/with-udf-dependency.xml + + + + + with-dependencies + package + + single + + + + src/assembly/with-dependencies.xml + + + + + fat-test + package + + single + + + fat-test-${project.artifactId}-${project.version} + + src/assembly/fat-test.xml + + + + + generate-tar-zip + package + + single + + + + src/assembly/bin.xml + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-deploy-artifacts + package + + sign + + + + + + net.nicoulaj.maven.plugins + checksum-maven-plugin + 1.10 + + + package + + artifacts + + + + + + SHA-256 + md5 + + + + + + + + + + + maven-deploy-plugin + + true + + + + + + + + + test-coverage + + 2.12.15 + + + + ossrh-deploy + + + ossrh-deploy + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.3.0 + + + generate-tar-zip + none + + + with-dependencies + none + + + fat-test + none + + + + + maven-jar-plugin + 3.3.0 + + + empty-javadoc-jar + package + + jar + + + javadoc + ${basedir}/javadoc + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-deploy-artifacts + none + + + sign-and-deploy-file + deploy + + sign-and-deploy-file + + + target/${project.artifactId}-${project.version}.jar + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2 + fips-pom.xml + target/${project.artifactId}-${project.version}-javadoc.jar + ${env.GPG_KEY_ID} + ${env.GPG_KEY_PASSPHRASE} + + + + + + + + + java-9 + + (9,) + + + + + org.scalatest + scalatest-maven-plugin + + --add-opens=java.base/java.io=ALL-UNNAMED + --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED + --add-opens=java.base/java.lang.reflect=ALL-UNNAMED + --add-opens=java.base/java.util=ALL-UNNAMED + --add-exports=java.base/sun.nio.ch=ALL-UNNAMED + --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED + --add-opens=java.base/sun.security.util=ALL-UNNAMED + -DFIPS_TEST=true + + + + + maven-surefire-plugin + + --add-opens=java.base/java.io=ALL-UNNAMED + --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED + --add-opens=java.base/java.lang.reflect=ALL-UNNAMED + --add-opens=java.base/java.util=ALL-UNNAMED + --add-exports=java.base/sun.nio.ch=ALL-UNNAMED + --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED + --add-opens=java.base/sun.security.util=ALL-UNNAMED + -DFIPS_TEST=true + + + + + + + + diff --git a/java_doc.xml b/java_doc.xml new file mode 100644 index 00000000..e540869e --- /dev/null +++ b/java_doc.xml @@ -0,0 +1,115 @@ + + 4.0.0 + com.snowflake + snowpark-java + 1.15.0-SNAPSHOT + ${project.artifactId} + Snowflake's DataFrame API + https://www.snowflake.com/ + 2018 + + + Snowflake License + https://www.snowflake.com/legal/ + + + + + + Snowflake Support Team + snowflake-java@snowflake.net + Snowflake Computing + https://www.snowflake.com + + + + + scm:git:git://github.com/snowflakedb/snowpark + http://github.com/snowflakedb/snowpark/tree/master + + + + 1.8 + 1.8 + UTF-8 + Snowpark API ${project.version} + + + + + osgeo + OSGeo Release Repository + https://repo.osgeo.org/repository/release/ + false + true + + + + + com.snowflake + snowpark + ${project.version} + + + + src/main/java + + + src/main/resources + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.3.1 + + --allow-script-in-comments + © {currentYear} Snowflake Inc. All Rights Reserved + + + + + + + + + ]]> + + Snowpark Java API Reference ${project.version} +
+ + Snowpark Java API Reference ${project.version}
+ [Snowpark Developer Guide for Java] +
+ ]]> +
+ com.snowflake.*.internal + Snowpark Java API Reference ${project.version} +
+
+
+
+
diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..c0fafba3 --- /dev/null +++ b/pom.xml @@ -0,0 +1,676 @@ + + 4.0.0 + com.snowflake + snowpark + 1.15.0-SNAPSHOT + ${project.artifactId} + Snowflake's DataFrame API + https://www.snowflake.com/ + 2018 + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + + Snowflake Support Team + snowflake-java@snowflake.net + Snowflake Computing + https://www.snowflake.com + + + + + scm:git:git://github.com/snowflakedb/snowpark-java-scala + https://github.com/snowflakedb/snowpark-java-scala/tree/main + + + + 1.8 + 1.8 + UTF-8 + 2.12.18 + 2.12 + 4.2.0 + 3.17.0 + ${scala.compat.version} + Snowpark ${project.version} + 1.4.11 + 1.64 + true + 4.3.0 + 2.13.2 + 2.13.4.2 + + + + + + io.opentelemetry + opentelemetry-bom + 1.39.0 + pom + import + + + + + + + org.scala-lang + scala-library + ${scala.version} + + + org.scala-lang + scala-compiler + ${scala.version} + + + commons-io + commons-io + 2.11.0 + + + javax.xml.bind + jaxb-api + 2.2.2 + + + org.slf4j + slf4j-api + 2.0.4 + + + org.slf4j + slf4j-simple + 2.0.4 + + + commons-codec + commons-codec + 1.15 + + + + io.opentelemetry + opentelemetry-api + + + + + net.snowflake + snowflake-jdbc + ${snowflake.jdbc.version} + + + + com.github.vertical-blank + sql-formatter + 1.0.2 + + + + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.databind.version} + + + com.fasterxml.jackson.core + jackson-core + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson.version} + + + + + io.opentelemetry + opentelemetry-sdk + test + + + io.opentelemetry + opentelemetry-exporters-inmemory + 0.9.1 + test + + + junit + junit + 4.13.1 + test + + + org.mockito + mockito-core + 2.23.0 + test + + + + org.scalatest + scalatest_${scala.compat.version} + 3.0.5 + test + + + org.specs2 + specs2-core_${scala.compat.version} + ${spec2.version} + test + + + org.specs2 + specs2-junit_${scala.compat.version} + ${spec2.version} + test + + + + + src/main/java + + + src/main/resources + true + + + + + org.antipathy + mvn-scalafmt_${version.scala.binary} + 1.0.2 + + ${project.basedir}/.scalafmt.conf + false + false + false + + ${project.basedir}/src/main/scala + + + ${project.basedir}/src/test/scala + + false + + + + validate + + format + + + + + + + com.coveo + fmt-maven-plugin + 2.9.1 + + + compile + + format + + + + + + org.scalastyle + scalastyle-maven-plugin + 1.0.0 + + false + true + true + false + ${project.basedir}/src/main/scala + ${project.basedir}/src/test/scala + ${project.basedir}/scalastyle_config.xml + ${project.basedir}/scalastyle-output.xml + UTF-8 + + + + compile + + check + + + + + + + net.alchim31.maven + scala-maven-plugin + ${scalaPluginVersion} + + + scala-compile-first + + add-source + compile + + + + -dependencyfile + ${project.build.directory}/.scala_dependencies + + + + + scala-test-compile-first + + testCompile + + + + scala-doc + + doc + + prepare-package + + + -groups + -doc-footer + © 2023 Snowflake Inc. All Rights Reserved + -skip-packages + org:com.snowflake.snowpark.internal:com.snowflake.snowpark_java + + + + + + src/main/scala + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + ${java.version} + ${java.version} + true + true + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.21.0 + + true + + **/*Suite.java + + + + + org.scalatest + scalatest-maven-plugin + 2.2.0 + + ${project.build.directory}/surefire-reports + + . + TestSuiteReport.txt + ${tagsToInclude} + ${tagsToExclude} + + + + + + test + + test + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-dependencies + prepare-package + + copy-dependencies + + + runtime + ${project.build.directory}/lib + false + false + true + + + + copy-dependencies-test + package + + copy-dependencies + + + test + ${project.build.directory}/test-lib + false + false + true + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.3.0 + + + + + with-udf-dependency + package + + single + + + ${project.artifactId}-${project.version} + false + + src/assembly/with-udf-dependency.xml + + + + + with-dependencies + package + + single + + + + src/assembly/with-dependencies.xml + + + + + fat-test + package + + single + + + fat-test-${project.artifactId}-${project.version} + + src/assembly/fat-test.xml + + + + + generate-tar-zip + package + + single + + + + src/assembly/bin.xml + + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.7 + + + + prepare-agent + + + + report + test + + report + + + + **/DataTypes.class + **/snowpark_java/** + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-deploy-artifacts + package + + sign + + + + + + net.nicoulaj.maven.plugins + checksum-maven-plugin + 1.10 + + + package + + artifacts + + + + + + SHA-256 + md5 + + + + + + + + + + + maven-deploy-plugin + + true + + + + + + + + + test-coverage + + 2.12.15 + + + + + org.scoverage + scoverage-maven-plugin + ${scoverage.plugin.version} + + + + check + + prepare-package + + + + + + + + ossrh-deploy + + + ossrh-deploy + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.3.0 + + + generate-tar-zip + none + + + with-dependencies + none + + + fat-test + none + + + + + maven-jar-plugin + 3.3.0 + + + empty-javadoc-jar + package + + jar + + + javadoc + ${basedir}/javadoc + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-deploy-artifacts + none + + + sign-and-deploy-file + deploy + + sign-and-deploy-file + + + target/${project.artifactId}-${project.version}.jar + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2 + pom.xml + target/${project.artifactId}-${project.version}-javadoc.jar + ${env.GPG_KEY_ID} + ${env.GPG_KEY_PASSPHRASE} + + + + + + + + + java-9 + + (9,) + + + + + org.scalatest + scalatest-maven-plugin + + --add-opens=java.base/java.io=ALL-UNNAMED + --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED + --add-opens=java.base/java.lang.reflect=ALL-UNNAMED + --add-opens=java.base/java.util=ALL-UNNAMED + --add-exports=java.base/sun.nio.ch=ALL-UNNAMED + --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED + --add-opens=java.base/sun.security.util=ALL-UNNAMED + + + + + maven-surefire-plugin + + --add-opens=java.base/java.io=ALL-UNNAMED + --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED + --add-opens=java.base/java.lang.reflect=ALL-UNNAMED + --add-opens=java.base/java.util=ALL-UNNAMED + --add-exports=java.base/sun.nio.ch=ALL-UNNAMED + --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED + --add-opens=java.base/sun.security.util=ALL-UNNAMED + + + + + + + + + + + + org.scoverage + scoverage-maven-plugin + ${scoverage.plugin.version} + + + + report-only + + + + + + +