blob: 4a31b62ef3896ee8066075c316adb345d7f7784b [file] [log] [blame]
#
# Copyright 2020 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.
package(default_visibility = [
"//visibility:public",
])
java_plugin(
name = "autovalue_plugin",
processor_class = "com.google.auto.value.processor.AutoValueProcessor",
deps = [
"@maven//:com_google_auto_value_auto_value",
],
)
java_library(
name = "autovalue",
exported_plugins = [
":autovalue_plugin",
],
exports = [
"@maven//:com_google_auto_value_auto_value",
],
)
java_library(
name = "differentialprivacy",
srcs = glob(
["*.java"],
exclude = ["TestNoiseFactory.java"],
),
deps = [
":autovalue",
"@com_google_differential_privacy//proto:data_java_proto",
"@com_google_differential_privacy//proto:summary_java_proto",
"@maven//:com_google_auto_value_auto_value",
"@maven//:com_google_auto_value_auto_value_annotations",
"@maven//:com_google_code_findbugs_jsr305",
"@maven//:com_google_errorprone_error_prone_annotations",
"@maven//:com_google_guava_guava",
"@maven//:com_google_protobuf_protobuf_java",
"@maven//:org_apache_commons_commons_math3",
],
)
java_library(
name = "test_noise_factory",
testonly = 1,
srcs = ["TestNoiseFactory.java"],
deps = [
":differentialprivacy",
],
)