Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback on Bazel #18

Open
ulfjack opened this issue Feb 16, 2021 · 0 comments
Open

Feedback on Bazel #18

ulfjack opened this issue Feb 16, 2021 · 0 comments

Comments

@ulfjack
Copy link

ulfjack commented Feb 16, 2021

Hi all,

I ran some builds with Bazel and I have some observations that I wanted to share.

  1. Bazel downloads a ton of third-party jar files, with sequential version numbers; not sure why that is but it definitely looks wrong
  2. There are lots of warnings about duplicate jars on the classpath (maybe overlaps with 1). See below for an example.
  3. There are lots of warnings about 'ambiguous' priorities. See below for an example.
  4. Build doesn't work with Java 11. Running bazel build -s //module487 --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_java11 --java_toolchain=@bazel_tools//tools/jdk:toolchain_java11 results in very unusual error messages.
warning: some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
warning: runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /mnt/ssd/cas/work/build-aafe24f3-3055-4101-92cb-c1f609f8e54c/external/com_github_jetbrains_kotlin/lib/kotlin-stdlib.jar (version 1.3)
    /mnt/ssd/cas/work/build-aafe24f3-3055-4101-92cb-c1f609f8e54c/external/com_github_jetbrains_kotlin/lib/kotlin-stdlib-jdk7.jar (version 1.3)
    /mnt/ssd/cas/work/build-aafe24f3-3055-4101-92cb-c1f609f8e54c/external/com_github_jetbrains_kotlin/lib/kotlin-stdlib-jdk8.jar (version 1.3)
    /mnt/ssd/cas/work/build-aafe24f3-3055-4101-92cb-c1f609f8e54c/external/maven/v1/https/jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-common/1.4.21/kotlin-stdlib-common-1.4.21.jar (version 1.4)
    /mnt/ssd/cas/work/build-aafe24f3-3055-4101-92cb-c1f609f8e54c/external/maven/v1/https/jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.4.21/kotlin-stdlib-1.4.21.jar (version 1.4)
    /mnt/ssd/cas/work/build-aafe24f3-3055-4101-92cb-c1f609f8e54c/external/maven/v1/https/jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.40/kotlin-stdlib-jdk7-1.3.40.jar (version 1.3)
    /mnt/ssd/cas/work/build-aafe24f3-3055-4101-92cb-c1f609f8e54c/external/maven/v1/https/jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.40/kotlin-stdlib-jdk8-1.3.40.jar (version 1.3)
    /mnt/ssd/cas/work/build-aafe24f3-3055-4101-92cb-c1f609f8e54c/external/maven/v1/https/jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.31/kotlin-reflect-1.3.31.jar (version 1.3)
    /mnt/ssd/cas/work/build-aafe24f3-3055-4101-92cb-c1f609f8e54c/external/com_github_jetbrains_kotlin/lib/kotlin-script-runtime.jar (version 1.3)
    /mnt/ssd/cas/work/build-aafe24f3-3055-4101-92cb-c1f609f8e54c/external/com_github_jetbrains_kotlin/lib/kotlin-reflect.jar (version 1.3)
INFO: From Merging compiled Android resources for //module62:module62:
Feb 15, 2021 11:03:12 PM com.google.devtools.build.android.AndroidDataMerger doMerge
WARNING: 
...
CONFLICT: string-fi/abc_searchview_description_query is provided with ambiguous priority from:
	 bazel-out/k8-fastbuild/bin/external/maven/_aar/unzipped/resources/androidx_appcompat_appcompat/res/values-fi/values-fi.xml (with value Hakukysely)
	 bazel-out/k8-fastbuild/bin/external/com_android_support_appcompat_v7_28_0_0/_aar/unzipped/resources/com_android_support_appcompat_v7_28_0_0/res/values-fi/values-fi.xml (with value Hakulauseke)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant