Skip to content

Commit

Permalink
Fix IJ project sync (#19240)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbrauner-da authored May 21, 2024
1 parent 7b838a8 commit b54cbd2
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 46 deletions.
8 changes: 4 additions & 4 deletions sdk/daml-assistant/integration-tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ genrule(
"//canton:bindings-java_pom.xml",
"//language-support/java/bindings-rxjava:libbindings-rxjava.jar",
"//language-support/java/bindings-rxjava:bindings-rxjava_pom.xml",
"//language-support/java/codegen:shaded_binary.jar",
"//language-support/java/codegen:shaded_binary_pom.xml",
"//language-support/java/codegen:binary.jar",
"//language-support/java/codegen:binary_pom.xml",
"//libs-scala/rs-grpc-bridge:librs-grpc-bridge.jar",
"//libs-scala/rs-grpc-bridge:rs-grpc-bridge_pom.xml",
"//docs:quickstart-java.tar.gz",
Expand Down Expand Up @@ -52,8 +52,8 @@ genrule(
$(location //language-support/java/bindings-rxjava:bindings-rxjava_pom.xml)
install_mvn \\
"com.daml" "codegen-java" \\
$(location //language-support/java/codegen:shaded_binary.jar) \\
$(location //language-support/java/codegen:shaded_binary_pom.xml)
$(location //language-support/java/codegen:binary.jar) \\
$(location //language-support/java/codegen:binary_pom.xml)
install_mvn \\
"com.daml" "rs-grpc-bridge" \\
$(location //libs-scala/rs-grpc-bridge:librs-grpc-bridge.jar) \\
Expand Down
22 changes: 10 additions & 12 deletions sdk/language-support/codegen-main/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ load(
"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")
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")

da_scala_library(
name = "codegen-main-lib",
Expand Down Expand Up @@ -52,30 +49,31 @@ da_scala_binary(
],
)

jar_jar(
name = "shaded_binary",
input_jar = "//language-support/codegen-main:codegen-main_distribute.jar",
rules = "shade_rule",
copy_file(
name = "binary",
src = "//language-support/codegen-main:codegen-main_distribute.jar",
out = "binary.jar",
allow_symlink = True,
tags = ["maven_coordinates=com.daml:codegen-jvm-main:__VERSION__"],
visibility = ["//visibility:public"],
)

pom_file(
name = "shaded_binary_pom",
target = ":shaded_binary",
name = "binary_pom",
target = ":binary",
visibility = ["//visibility:public"],
)

# Create empty Scaladoc JAR for uploading to Maven Central
scaladoc_jar(
name = "shaded_binary_scaladoc",
name = "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",
name = "binary_src",
srcs = [],
)
8 changes: 0 additions & 8 deletions sdk/language-support/codegen-main/shade_rule

This file was deleted.

22 changes: 10 additions & 12 deletions sdk/language-support/java/codegen/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ load(
"lf_version_default_or_latest",
"lf_version_is_dev",
)
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")
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")

da_scala_binary(
name = "codegen",
Expand Down Expand Up @@ -168,31 +165,32 @@ dar_to_java(
package_prefix = "ut",
)

jar_jar(
name = "shaded_binary",
input_jar = "//language-support/java/codegen:codegen_distribute.jar",
rules = "shade_rule",
copy_file(
name = "binary",
src = "//language-support/java/codegen:codegen_distribute.jar",
out = "binary.jar",
allow_symlink = True,
tags = ["maven_coordinates=com.daml:codegen-java:__VERSION__"],
visibility = ["//visibility:public"],
)

pom_file(
name = "shaded_binary_pom",
target = ":shaded_binary",
name = "binary_pom",
target = ":binary",
visibility = ["//visibility:public"],
)

# Create empty Scaladoc JAR for uploading to Maven Central
scaladoc_jar(
name = "shaded_binary_scaladoc",
name = "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",
name = "binary_src",
srcs = [],
)

Expand Down
8 changes: 0 additions & 8 deletions sdk/language-support/java/codegen/shade_rule

This file was deleted.

4 changes: 2 additions & 2 deletions sdk/release/artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@
type: jar-scala
- target: //language-support/codegen-common:codegen-common
type: jar-scala
- target: //language-support/codegen-main:shaded_binary
- target: //language-support/codegen-main:binary
type: jar-jarjar
- target: //canton:bindings-java
type: jar-lib
- target: //language-support/java/bindings-rxjava:bindings-rxjava
type: jar-lib
- target: //language-support/java/codegen:lib
type: jar-scala
- target: //language-support/java/codegen:shaded_binary
- target: //language-support/java/codegen:binary
type: jar-jarjar
- target: //language-support/java/json:json
type: jar-scala
Expand Down

0 comments on commit b54cbd2

Please sign in to comment.