Status Update
Comments
ag...@google.com <ag...@google.com>
ze...@google.com <ze...@google.com> #2
bi...@google.com <bi...@google.com> #3
ap...@google.com <ap...@google.com> #4
Branch: master
commit 9d1868276d4e3f7e8eed8d8039011ce1a5de97e9
Author: Søren Gjesse <sgjesse@google.com>
Date: Tue Jun 09 17:16:51 2020
Update POM XML for com.android.tools:desugar_jdk_libs_configuration artifact
Artifact com.android.tools:desugar_jdk_libs_configuration no longer depend
on com.android.tools:desugar_jdk_libs (but the other way around). Remove
the (currently also wrong) dependencies section from the POM.
Bug: 158502561
Change-Id: Ib747e40215b4a315c0894d051e951f79cdcd4022
M src/library_desugar/desugar_jdk_libs.json
M tools/create_maven_release.py
vi...@squareup.com <vi...@squareup.com> #5
Would it be possible to produce a new release for desugar_jdk_libs that depends on the 0.12.0 configuration? (or is there a timeline for when we might expect this fix?)
sg...@google.com <sg...@google.com> #6
Absolutely. I will land it as soon as possible. There is an internal queue on landing artifacts under com.android.tools when new version of Android Studio is staged.
ha...@gmail.com <ha...@gmail.com> #8
When I try to use
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.6'
then the build fails with the following error given for all libraries:
> Transform artifact desugar_jdk_libs-1.0.6.jar (com.android.tools:desugar_jdk_libs:1.0.6) with L8DexDesugarLibTransform
Error: Unsupported desugared library configuration version, please upgrade the D8/R8 compiler.
> Transform artifact desugar_jdk_libs_configuration-0.12.0.jar (com.android.tools:desugar_jdk_libs_configuration:0.12.0) with L8DexDesugarLibTransform
Error: Unsupported desugared library configuration version, please upgrade the D8/R8 compiler.
> Transform artifact kotlin-stdlib-jdk8-1.3.61.jar (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61) with DexingWithClasspathTransform
D8: Unsupported desugared library configuration version, please upgrade the D8/R8 compiler.
etc
And the old version,
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.5'
still uses the desugar_jdk_libs_configuration version 0.11.1, which has a broken POM
What is the upgrade path here?
sg...@google.com <sg...@google.com> #9
Thanks for trying out the new version. Unfortunately I made a mistake when releasing the 1.0.6 version as the dependency was wrong. I will release a 1.0.7 to ensure that developers does not get hit by the Android Studio auto update. That will still depend on com.android.tools:desugar_jdk_libs_configuration:0.11.1 with the broken POM. Then work on 1.0.8 which depends on a com.android.tools:desugar_jdk_libs_configuration:0.x.y with a correct POM.
This issue was also seen on StackOverflow (
ha...@lab.mobi <ha...@lab.mobi> #10
ap...@google.com <ap...@google.com> #11
Branch: 2.0
commit 430156fd9d1cbc56d7871eb7af527f366b8809ce
Author: Søren Gjesse <sgjesse@google.com>
Date: Mon Jun 22 12:42:32 2020
Version 2.0.89
The second cherry-pick below has been patched to use configuration
version 3, and have version 0.11.2.
Cherry-pick: Update POM XML for com.android.tools:desugar_jdk_libs_configuration artifact
CL:
Cherry-pick: Desugared library: fix json file
CL:
Bug: 158502561
Bug: 150188393
Change-Id: Id1d90b8c1d3c717b24679c737559c8bbcc61137f
M src/library_desugar/desugar_jdk_libs.json
M src/main/java/com/android/tools/r8/Version.java
M src/test/java/com/android/tools/r8/desugar/desugaredlibrary/DesugaredLibraryContentTest.java
M tools/create_maven_release.py
ha...@gmail.com <ha...@gmail.com> #12
Followup: the 1.0.9 version works fine for us.
Thanks for your hard work!
Description
Invalid Maven POM file for the desugar_jdk_libs_configuration artifact
Issue
See the artifact POM file for desugar_jdk_libs_configuration version 0.11.0 athttps://dl.google.com/dl/android/maven2/com/android/tools/desugar_jdk_libs_configuration/0.11.1/desugar_jdk_libs_configuration-0.11.1.pom
section:
This section omits
<dependency> .. </dependency>
tags from inside<dependencies> .. </dependencies>
.It should be
Details
Works fine if used directly from Gradle as
as detailed athttps://developer.android.com/studio/write/java8-support
But we are using the Artifactory (https://jfrog.com/artifactory/ ) as a dependency proxy in our CI setup. All CI builds use dependencies via Artifactory. And Artifactory will either return a cached dependency or fetch it from the original source and cache it and return it. This enables us to still build the app on the CI even if in an offline situation.
Artifactory is unable to download the desugar_jdk_libs_configuration befause of the invalid format: