[Bug 1765866] Re: [FTBFS] gradle 3.4.1-7 ftbfs when build with the newer default-jdk (openjdk-10 or newer)

Tiago Stürmer Daitx 1765866 at bugs.launchpad.net
Sat Apr 21 00:09:54 UTC 2018


Updated debdiff to modify debian/patches/docs.patch

** Patch removed: "gradle_3.4.1-7_debdiff_3.4.1-7ubuntu1.patch"
   https://bugs.launchpad.net/ubuntu/+source/gradle/+bug/1765866/+attachment/5124468/+files/gradle_3.4.1-7_debdiff_3.4.1-7ubuntu1.patch

** Patch added: "gradle_3.4.1-7_debdiff_3.4.1-7ubuntu1.patch"
   https://bugs.launchpad.net/ubuntu/+source/gradle/+bug/1765866/+attachment/5124530/+files/gradle_3.4.1-7_debdiff_3.4.1-7ubuntu1.patch

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1765866

Title:
  [FTBFS] gradle 3.4.1-7 ftbfs when build with the newer default-jdk
  (openjdk-10 or newer)

Status in gradle package in Ubuntu:
  New

Bug description:
  When using openjdk-10 as the default-jdk gradle will fail with the
  following error:

  :signing:assemble
  :docs:javadocAlljavadoc: error - Error fetching URL: file:/usr/share/doc/default-jdk/api/
  javadoc: warning - You have not specified the version of HTML to use.

  Until openjdk-9 any missing api URLs were considered a warning but from
  openjdk-10 upwards this was changed to an error.

  The URL is missing because it has been hardcoded in the
  subprojects/docs/docs.gradle file as:

  def javaApiUrl = "file:///usr/share/doc/default-jdk/api/"

  but the path /usr/share/doc/default-jdk is a link that belongs to the
  default-jdk package which is not a build dependency of gradle (it is
  in fact listed as an alternate dependency of default-jdk-headless).
  Still, that is not enough as the default-jdk package does neither
  contain nor depend on a package that holds the required api files.
  Those files are in the openjdk-X-doc package and the dependency on it
  is done through default-jdk-doc.

  gradle already build depends on default-jdk-doc and even gradle-doc has
  a dependency on it. By changing the javaApiUrl to point to the right api
  directory, as in:

  def javaApiUrl = "file:///usr/share/doc/default-jdk-doc/api/"

  the build works as expected.

  The patch debian/patches/use-local-artifacts.patch should be updated to
  reflect this new patch.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gradle/+bug/1765866/+subscriptions



More information about the Ubuntu-sponsors mailing list