blob: 26f721eb20e10ee770a25c5dde391ac577e07909 [file] [log] [blame]
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# 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.
java_binary(
name = "BeamExample",
srcs = [
"BeamExample.java",
"MovieMetrics.java",
"MovieView.java",
],
main_class = "com.google.privacy.differentialprivacy.pipelinedp4j.examples.BeamExample",
runtime_deps = [
"@maven//:org_apache_beam_beam_runners_direct_java",
],
deps = [
"@com_google_privacy_differentialprivacy_pipielinedp4j//main/com/google/privacy/differentialprivacy/pipelinedp4j/api",
"@maven//:com_google_guava_guava",
"@maven//:org_apache_beam_beam_sdks_java_core",
"@maven//:org_apache_beam_beam_sdks_java_extensions_avro",
"@maven//:org_jetbrains_kotlin_kotlin_stdlib",
# For logging to console.
"@maven//:org_slf4j_slf4j_jdk14",
],
)
java_binary(
name = "SparkExample",
srcs = [
"MovieMetrics.java",
"MovieView.java",
"SparkExample.java",
],
main_class = "com.google.privacy.differentialprivacy.pipelinedp4j.examples.SparkExample",
deps = [
"@com_google_privacy_differentialprivacy_pipielinedp4j//main/com/google/privacy/differentialprivacy/pipelinedp4j/api",
"@maven//:com_fasterxml_jackson_core_jackson_databind",
"@maven//:com_fasterxml_jackson_module_jackson_module_paranamer",
"@maven//:com_google_guava_guava",
"@maven//:info_picocli_picocli",
"@maven//:org_apache_spark_spark_catalyst_2_13",
"@maven//:org_apache_spark_spark_core_2_13",
"@maven//:org_apache_spark_spark_mllib_2_13",
"@maven//:org_apache_spark_spark_sql_2_13",
"@maven//:org_jetbrains_kotlin_kotlin_stdlib",
"@maven//:org_scala_lang_scala_library",
],
)