[hibernate-commits] [hibernate/hibernate-orm] 530ab1: HHH-12946 Use constants for JAXB dependencies inst...

GitHub noreply at github.com
Wed Oct 17 06:20:44 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-orm
  Commit: 530ab1569ebf0cf38a3bb74752e0d87150e3a1d8
      https://github.com/hibernate/hibernate-orm/commit/530ab1569ebf0cf38a3bb74752e0d87150e3a1d8
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M gradle/java-module.gradle
    M gradle/libraries.gradle
    M hibernate-core/hibernate-core.gradle
    M tooling/metamodel-generator/hibernate-jpamodelgen.gradle

  Log Message:
  -----------
  HHH-12946 Use constants for JAXB dependencies instead of inline strings

We may have to update these dependencies, let's make it easy.


  Commit: 2b3a5e5a2ed0e8bee4435af3ca345e6707fdc939
      https://github.com/hibernate/hibernate-orm/commit/2b3a5e5a2ed0e8bee4435af3ca345e6707fdc939
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M gradle/libraries.gradle

  Log Message:
  -----------
  HHH-12946 Depend on org.glassfish.jaxb:jaxb-runtime instead of the obsolete com.sun.xml.bind:jaxb-impl

Apparently both sets of coordinates work, but the com.sun.xml.bind one
is older and deprecated.


  Commit: 51ab9f744d2f040cf24000509c4f3152803568ab
      https://github.com/hibernate/hibernate-orm/commit/51ab9f744d2f040cf24000509c4f3152803568ab
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M gradle/java-module.gradle
    M gradle/libraries.gradle
    M hibernate-core/hibernate-core.gradle
    M tooling/metamodel-generator/hibernate-jpamodelgen.gradle

  Log Message:
  -----------
  HHH-12946 Add explicit dependencies to JAXB APIs where relevant


  Commit: 2daa3811c6e1b27270ae2d4c543a3845af4a8ea3
      https://github.com/hibernate/hibernate-orm/commit/2daa3811c6e1b27270ae2d4c543a3845af4a8ea3
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M gradle/java-module.gradle
    M hibernate-core/hibernate-core.gradle
    M tooling/metamodel-generator/hibernate-jpamodelgen.gradle

  Log Message:
  -----------
  HHH-12946 Remove unnecessary dependencies when building with JDK9+

We don't need to depend on JAXB's compiler (XJC) in our modules,
we just need the dependency in specific tasks during the build.
In particular we don't want users to transitively depend on XJC.

Also, we don't need an explicit dependency to JAXB in every module,
having one in hibernate-core is enough.


  Commit: 0924138b753a6c354a620694881e7b3a88566df6
      https://github.com/hibernate/hibernate-orm/commit/0924138b753a6c354a620694881e7b3a88566df6
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M gradle/java-module.gradle

  Log Message:
  -----------
  HHH-12946 Upgrade to fobiddenapis 2.6 (compatible with JDK11)


  Commit: 68e20f4f8b8fb2a12b7f6970ce80595292f465bb
      https://github.com/hibernate/hibernate-orm/commit/68e20f4f8b8fb2a12b7f6970ce80595292f465bb
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M gradle/java-module.gradle

  Log Message:
  -----------
  HHH-12946 Target JDK11 instead of JDK10 in terms of JDK API compatibility


  Commit: 5fd97472b97ca121b51ab8fc39dd756c099512af
      https://github.com/hibernate/hibernate-orm/commit/5fd97472b97ca121b51ab8fc39dd756c099512af
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M hibernate-core/hibernate-core.gradle
    M hibernate-osgi/hibernate-osgi.gradle
    M tooling/metamodel-generator/hibernate-jpamodelgen.gradle

  Log Message:
  -----------
  HHH-12946 Enable JAXB dependencies regardless of the JDK being used when building Hibernate ORM

Previously we would only add the dependency when building with JDK9+,
and we built all releases using JDK8.
This means the dependencies were useless, because they would never be
mentioned in the actual POMs published to users.


  Commit: e436b316da08350a6af5998e97508cc60fd74435
      https://github.com/hibernate/hibernate-orm/commit/e436b316da08350a6af5998e97508cc60fd74435
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/ClassWriter.java
    M tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/Context.java

  Log Message:
  -----------
  HHH-12990 Auto-detect the fqcn of the Generated annotation in jpamodelgen

It's "javax.annotation.Generated" in Java 8 and below, but
"javax.annotation.processing.Generated" in Java 9 and above.


  Commit: 165cc74fb5a30af46eb9764a9560994bd9b6efa1
      https://github.com/hibernate/hibernate-orm/commit/165cc74fb5a30af46eb9764a9560994bd9b6efa1
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M gradle/java-module.gradle

  Log Message:
  -----------
  HHH-12990 Remove now unnecessary dependencies to JSR-250 when using jpamodelgen

The previous commit ensured we don't need them anymore.


  Commit: 653b123276a21dbc3062d7257199b98b2a560e35
      https://github.com/hibernate/hibernate-orm/commit/653b123276a21dbc3062d7257199b98b2a560e35
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M gradle/libraries.gradle
    M hibernate-core/hibernate-core.gradle
    M tooling/metamodel-generator/hibernate-jpamodelgen.gradle

  Log Message:
  -----------
  HHH-12990 Remove unnecessary dependencies to JSR-250 when generating JAXB classes

It seems these dependencies were not necessary at all, even before the
previous patches.


Compare: https://github.com/hibernate/hibernate-orm/compare/bb822aee31ea...653b123276a2
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the hibernate-commits mailing list