Accepting request 1179726 from Java:packages:test

guice 6.0.0 + dependent changes

OBS-URL: https://build.opensuse.org/request/show/1179726
OBS-URL: https://build.opensuse.org/package/show/Java:packages/google-guice?expand=0&rev=32
This commit is contained in:
Fridrich Strba 2024-06-10 15:41:32 +00:00 committed by Git OBS Bridge
parent 2af1871f64
commit 09bec035b4
6 changed files with 75 additions and 7 deletions

View File

@ -2,7 +2,7 @@
<service name="tar_scm" mode="disabled"> <service name="tar_scm" mode="disabled">
<param name="scm">git</param> <param name="scm">git</param>
<param name="url">https://github.com/google/guice.git</param> <param name="url">https://github.com/google/guice.git</param>
<param name="revision">5.1.0</param> <param name="revision">6.0.0</param>
<param name="versionformat">@PARENT_TAG@</param> <param name="versionformat">@PARENT_TAG@</param>
<param name="filename">google-guice</param> <param name="filename">google-guice</param>
</service> </service>

BIN
google-guice-5.1.0.tar.xz (Stored with Git LFS)

Binary file not shown.

BIN
google-guice-6.0.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
google-guice-build.tar.xz (Stored with Git LFS)

Binary file not shown.

View File

@ -1,3 +1,69 @@
-------------------------------------------------------------------
Mon Jun 10 13:45:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Upgrade to upstream version 6.0.0
* JEE Jakarta Transition
+ Guice 6.0 adds support for jakarta.inject, the new namespace
for the JSR330 spec (after the javax -> jakarta JEE
transition).
Guice 6.0 is intended to help users migrate their code to the
jakarta namespace. It continues to fully support the
javax.inject namespace while also mostly supporting the
jakarta.inject namespace. The only part of Guice 6.0 that
doesn't support jakarta.inject are the bind(..).toProvider
methods. Those methods still require javax.inject or
com.google.inject Providers.
+ The Guice 6.0 servlet & persist extensions only support the
javax.servlet and javax.persistence namespaces respectively.
+ Guice 6.0 can help with incremental migrations to the
jakarta.inject namespace, by incrementally replacing
javax.inject references to jakarta.inject. This works
everywhere, except for code where a jakarta Provider is passed
to bind(..).toProvider.
* Guice Core
+ Adds jakarta.inject support.
+ Support Java 21 (via updating ASM to 9.5 and other changes).
+ Improve AOP support on JVMs such as Azul.
+ Fix a deadlock or crash associated with recursively loading
just-in-time bindings.
+ Make PrivateModule.binder() non-private, to allow subclass
customization, such as calling skipSources.
+ Fix an endloop loop (that can OOM) in singleton lock cycle
detection.
+ Fix tests to pass on Windows, despite the different line
separator.
+ Improvements to OSGi metadata.
+ Mark the JSR305 dependency as optional (since it's not
required at runtime).
+ Fix Binder.requestInjection(TypeLiteral<T>, T) to use the
TypeLiteral.
+ Honor scoping annotations on concrete types when provisioned
by their @ProvidedBy annotation
+ Add a way to tell if a class is "enhanced" by Guice, and
retrieve the original class.
+ Ensure the order of bind(...) statements does not matter when
referring to JIT bindings.
+ Implement Matcher.and and Matcher.or as default methods
directly in Matcher, so that the AbstractMatcher subclass
isn't required.
+ Mark the error_prone_annotations dependency as optional.
* Servlet
+ Fix an NPE if contextPath is null
* Persist
+ Persist had a number of changes, some of which are backwards
incompatible. Notably: injection of EntityManager no longer
implicitly starts a unit of work (because this led to leaks).
Users can opt-in to the legacy behavior by constructing the
JpaPersistModule with a JpaPersistOptions that sets
setAutoBeginWorkOnEntityManagerCreation to true.
+ EntityManager provisioning no longer automatically starts a
unit of work.
+ Ignore multiple start/stop calls, rather than throwing an
exception.
+ Support manually initiated rollbacks.
+ Don't wrap Object-defined methods (e.g: toString, finalize,
equals, hashCode) in transactions.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 21 22:04:06 UTC 2024 - Fridrich Strba <fstrba@suse.com> Wed Feb 21 22:04:06 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -18,7 +18,7 @@
%global short_name guice %global short_name guice
Name: google-%{short_name} Name: google-%{short_name}
Version: 5.1.0 Version: 6.0.0
Release: 0 Release: 0
Summary: Dependency injection framework for Java 5 and above Summary: Dependency injection framework for Java 5 and above
License: Apache-2.0 License: Apache-2.0
@ -34,6 +34,7 @@ BuildRequires: fdupes
BuildRequires: glassfish-servlet-api BuildRequires: glassfish-servlet-api
BuildRequires: google-errorprone-annotations BuildRequires: google-errorprone-annotations
BuildRequires: guava BuildRequires: guava
BuildRequires: jakarta-inject
BuildRequires: java-devel >= 1.8 BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local >= 6 BuildRequires: javapackages-local >= 6
BuildRequires: jsr-305 BuildRequires: jsr-305
@ -176,6 +177,7 @@ build-jar-repository -s lib \
glassfish-servlet-api \ glassfish-servlet-api \
google-errorprone/annotations \ google-errorprone/annotations \
guava/guava \ guava/guava \
jakarta-inject \
jsr-305 \ jsr-305 \
objectweb-asm/asm \ objectweb-asm/asm \