daml/language-support/codegen-main/BUILD.bazel
Moritz Kiefer d68d197948
Disable scaladoc on the MacOS CI (#4524)
* Disable scaladoc on the MacOS CI

It is still built by default locally.

fixes #4441

changelog_begin
changelog_end

* Change tag name
2020-02-14 14:08:24 +00:00

80 lines
2.2 KiB
Python

# Copyright (c) 2020 The DAML Authors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load(
"//bazel_tools:scala.bzl",
"da_scala_binary",
"da_scala_library",
"scala_source_jar",
"scaladoc_jar",
)
load(
"@com_github_johnynek_bazel_jar_jar//:jar_jar.bzl",
"jar_jar",
)
load("//bazel_tools:pom_file.bzl", "pom_file")
load("@os_info//:os_info.bzl", "is_windows")
da_scala_library(
name = "codegen-main-lib",
srcs = glob(["src/main/**/*.scala"]),
visibility = ["//visibility:public"],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
deps = [
"//daml-assistant/scala-daml-project-config",
"//language-support/codegen-common",
"//language-support/java/codegen:lib",
"//language-support/scala/codegen:codegen-main",
"@maven//:com_github_scopt_scopt_2_12",
"@maven//:com_typesafe_scala_logging_scala_logging_2_12",
],
)
da_scala_binary(
name = "codegen-main",
srcs = glob(["src/main/**/*.scala"]),
main_class = "com.digitalasset.codegen.CodegenMain",
visibility = ["//visibility:public"],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
deps = [
"//daml-assistant/scala-daml-project-config",
"//language-support/codegen-common",
"//language-support/java/codegen:lib",
"//language-support/scala/codegen:codegen-main",
"@maven//:com_github_scopt_scopt_2_12",
"@maven//:com_typesafe_scala_logging_scala_logging_2_12",
],
)
jar_jar(
name = "shaded_binary",
input_jar = "//language-support/codegen-main:codegen-main_deploy.jar",
rules = "shade_rule",
tags = ["maven_coordinates=com.daml:codegen-main:__VERSION__"],
visibility = ["//visibility:public"],
)
pom_file(
name = "shaded_binary_pom",
target = ":shaded_binary",
visibility = ["//visibility:public"],
)
# Create empty Scaladoc JAR for uploading to Maven Central
scaladoc_jar(
name = "shaded_binary_scaladoc",
srcs = [],
tags = ["scaladoc"],
deps = [],
) if is_windows == False else None
# Create empty Sources JAR for uploading to Maven Central
scala_source_jar(
name = "shaded_binary_src",
srcs = [],
)