#3 update to version 4.2.2
Merged 4 years ago by decathorpe. Opened 4 years ago by decathorpe.
Unknown source master  into  master

file modified
+4
@@ -1,3 +1,6 @@

+ /results_*

+ /*.src.rpm

+ 

  /guice-2.0-1219.tar.xz

  /guice-3.0-rc2-src.zip

  /google-guice-3.1.3.tar.xz
@@ -11,3 +14,4 @@

  /google-guice-3.2.6.tar.xz

  /google-guice-4.0.tar.xz

  /google-guice-4.1.tar.xz

+ /google-guice-4.2.2.tar.xz

file modified
+38 -14
@@ -4,8 +4,8 @@

  %global short_name guice

  

  Name:           google-%{short_name}

- Version:        4.1

- Release:        16%{?dist}

+ Version:        4.2.2

+ Release:        1%{?dist}

  Summary:        Lightweight dependency injection framework for Java 5 and above

  License:        ASL 2.0

  URL:            https://github.com/google/%{short_name}
@@ -18,22 +18,24 @@

  BuildRequires:  maven-local

  BuildRequires:  mvn(aopalliance:aopalliance)

  BuildRequires:  mvn(cglib:cglib)

- BuildRequires:  mvn(com.google.guava:guava:19.0)

+ BuildRequires:  mvn(com.google.code.findbugs:jsr305)

+ BuildRequires:  mvn(com.google.guava:guava)

  BuildRequires:  mvn(javax.inject:javax.inject)

  BuildRequires:  mvn(javax.servlet:servlet-api)

+ # xmvn-builddep misses apache-jar-resource-bundle

+ BuildRequires:  mvn(org.apache:apache-jar-resource-bundle)

  BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

  BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)

  BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)

+ BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)

  BuildRequires:  mvn(org.ow2.asm:asm)

  BuildRequires:  mvn(org.sonatype.plugins:munge-maven-plugin)

- # xmvn-builddep misses this:

- BuildRequires:  mvn(org.apache:apache-jar-resource-bundle)

  

  %if %{with jpa}

- BuildRequires:  hibernate-jpa-2.0-api

+ BuildRequires:  mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)

  %endif

  %if %{with spring}

- BuildRequires:  springframework-beans

+ BuildRequires:  mvn(org.springframework:spring-beans)

  %endif

  

  # Test dependencies:
@@ -48,6 +50,8 @@

  BuildRequires:  testng

  %endif

  

+ Obsoletes:      guice-testlib < 4.1-17

+ 

  %description

  Put simply, Guice alleviates the need for factories and the use of new

  in your Java code. Think of Guice's @Inject as the new new. You will
@@ -67,6 +71,7 @@

  build general functionality which enables you to extend Guice rather

  than adding every feature to the core framework.

  

+ 

  %package -n %{short_name}-parent

  Summary:        Guice parent POM

  
@@ -74,6 +79,7 @@

  Guice is a lightweight dependency injection framework for Java 5

  and above. This package provides parent POM for Guice modules.

  

+ 

  %package -n %{short_name}-assistedinject

  Summary:        AssistedInject extension module for Guice

  
@@ -81,6 +87,7 @@

  Guice is a lightweight dependency injection framework for Java 5

  and above. This package provides AssistedInject module for Guice.

  

+ 

  %package -n %{short_name}-extensions

  Summary:        Extensions for Guice

  
@@ -88,6 +95,7 @@

  Guice is a lightweight dependency injection framework for Java 5

  and above. This package provides extensions POM for Guice.

  

+ 

  %package -n %{short_name}-grapher

  Summary:        Grapher extension module for Guice

  
@@ -95,6 +103,7 @@

  Guice is a lightweight dependency injection framework for Java 5

  and above. This package provides Grapher module for Guice.

  

+ 

  %package -n %{short_name}-jmx

  Summary:        JMX extension module for Guice

  
@@ -102,6 +111,7 @@

  Guice is a lightweight dependency injection framework for Java 5

  and above. This package provides JMX module for Guice.

  

+ 

  %package -n %{short_name}-jndi

  Summary:        JNDI extension module for Guice

  
@@ -109,6 +119,7 @@

  Guice is a lightweight dependency injection framework for Java 5

  and above. This package provides JNDI module for Guice.

  

+ 

  %package -n %{short_name}-multibindings

  Summary:        MultiBindings extension module for Guice

  
@@ -116,6 +127,7 @@

  Guice is a lightweight dependency injection framework for Java 5

  and above. This package provides MultiBindings module for Guice.

  

+ 

  %if %{with jpa}

  %package -n %{short_name}-persist

  Summary:        Persist extension module for Guice
@@ -125,6 +137,7 @@

  and above. This package provides Persist module for Guice.

  %endif

  

+ 

  %package -n %{short_name}-servlet

  Summary:        Servlet extension module for Guice

  
@@ -132,6 +145,7 @@

  Guice is a lightweight dependency injection framework for Java 5

  and above. This package provides Servlet module for Guice.

  

+ 

  %if %{with spring}

  %package -n %{short_name}-spring

  Summary:        Spring extension module for Guice
@@ -141,12 +155,6 @@

  and above. This package provides Spring module for Guice.

  %endif

  

- %package -n %{short_name}-testlib

- Summary:        TestLib extension module for Guice

- 

- %description -n %{short_name}-testlib

- Guice is a lightweight dependency injection framework for Java 5

- and above. This package provides TestLib module for Guice.

  

  %package -n %{short_name}-throwingproviders

  Summary:        ThrowingProviders extension module for Guice
@@ -155,6 +163,7 @@

  Guice is a lightweight dependency injection framework for Java 5

  and above. This package provides ThrowingProviders module for Guice.

  

+ 

  %package -n %{short_name}-bom

  Summary:        Bill of Materials for Guice

  
@@ -162,6 +171,7 @@

  Guice is a lightweight dependency injection framework for Java 5

  and above. This package provides Bill of Materials module for Guice.

  

+ 

  %package javadoc

  Summary:        API documentation for Guice

  
@@ -212,6 +222,13 @@

  

  %pom_disable_module jdk8-tests

  

+ # Require a newer compiler

So javac's support the notion of a "target" language version and a "source" language version. This lets you set a minimum supported JVM for the code to run on (-target) and a maximum language specification to use when parsing the .java files (-source). Is there any chance we can do something here to make it easier to switch to JDK 11 when that's finally the default compiler in Fedora? (I'm a very forgetful person so I'd prefer something that automagically updates, but otherwise keeps behavior instead of remembering to bump this to 11 when that changes is made).

+ %pom_xpath_set "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:source" "1.8"

+ %pom_xpath_set "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:target" "1.8"

+ 

+ %pom_disable_module testlib extensions

+ 

+ 

  %build

  %mvn_alias "com.google.inject.extensions:" "org.sonatype.sisu.inject:"

  
@@ -220,12 +237,15 @@

  %mvn_file  ":guice-{*}"  %{short_name}/guice-@1

  %mvn_file  ":guice" %{short_name}/%{name} %{name}

  %mvn_alias ":guice" "org.sonatype.sisu:sisu-guice"

+ 

  # Skip tests because of missing dependency guice-testlib

  %mvn_build -f -s

  

+ 

  %install

  %mvn_install

  

+ 

  %files -f .mfiles-guice

  %dir %{_javadir}/%{short_name}

  
@@ -245,7 +265,6 @@

  %if %{with spring}

  %files -n %{short_name}-spring -f .mfiles-guice-spring

  %endif

- %files -n %{short_name}-testlib -f .mfiles-guice-testlib

  %files -n %{short_name}-throwingproviders -f .mfiles-guice-throwingproviders

  

  %files -n %{short_name}-bom -f .mfiles-guice-bom
@@ -255,6 +274,10 @@

  

  

  %changelog

+ * Mon Jul 29 2019 Fabio Valentini <decathorpe@gmail.com> - 4.2.2-1

+ - Update to version 4.2.2.

+ - Obsolete guice-testlib.

+ 

  * Fri Jul 26 2019 Fabio Valentini <decathorpe@gmail.com> - 4.1-16

  - Disable support for spring and JPA.

  
@@ -472,3 +495,4 @@

  

  * Thu Oct  7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-1.1219svn

  - Initial version of the package

+ 

file modified
+1 -1
@@ -1,1 +1,1 @@

- 8e54f0c2bab596dcac751362af15b271  google-guice-4.1.tar.xz

+ SHA512 (google-guice-4.2.2.tar.xz) = 2ab60fe0ff277f0f2be5613b453ffe014bdb0ad08f88beb8698d7d93bd9d6d915e0f5eeaf5b3d3617439c48e44a4b850f1e48d9e82c070618fead00ccb482cb4

  • update to version 4.2.2
  • obsolete guice-testlib sub-package
  • regenerate BuildRequires with xmvn-builddep

This PR obsoletes PR#1, which no longer applies to master (because of the mass rebuild and other commits).

The update to 4.2.2 was already pushed to modular branches:

Test rebuilds from PR#1 are still available here:

https://copr.fedorainfracloud.org/coprs/decathorpe/google-guice-pr/monitor/

There are only four build failures on top of the current state of koschei / rawhide:

  • hystrix: flaky test suite, fails in koji as well sometimes
  • java-uuid-generator: test suite fails only in COPR
  • openhft-affinity: test suite fails only in COPR
  • py4j: test suite fails only in COPR

I'm inclined to ACK this, though I'm not an expert on if google-guice update broke those test suites or if its just those packages failing in weird ways.

@cipherboy I am quite certain that the failures listed above are unrelated to this change. Looking at the build logs, they occur because of unreliable or flaky test suites, which often fail in COPR, but often succeed in koji. These four packages almost always fail to build in COPR, regardless of package changes.

Oh sorry. I understood "fails only in COPR" to mean "we broke something" not "is flaky". :)

So javac's support the notion of a "target" language version and a "source" language version. This lets you set a minimum supported JVM for the code to run on (-target) and a maximum language specification to use when parsing the .java files (-source). Is there any chance we can do something here to make it easier to switch to JDK 11 when that's finally the default compiler in Fedora? (I'm a very forgetful person so I'd prefer something that automagically updates, but otherwise keeps behavior instead of remembering to bump this to 11 when that changes is made).

So javac's support the notion of a "target" language version and a "source" language version. This lets you set a minimum supported JVM for the code to run on (-target) and a maximum language specification to use when parsing the .java files (-source). Is there any chance we can do something here to make it easier to switch to JDK 11 when that's finally the default compiler in Fedora? (I'm a very forgetful person so I'd prefer something that automagically updates, but otherwise keeps behavior instead of remembering to bump this to 11 when that changes is made).

Honestly, I don't know.

Finally making OpenJDK 11 the default in fedora would be nice, but I don't think we're the ones who should make this change - that should really be the job of the Java SIG.

@cipherboy with the explanation of the rebuild failures, do you think we can merge this?

Ah, that's alright. Its something for me to look into later. You can go ahead and merge. :) Thanks @decathorpe!

Finally making OpenJDK 11 the default in fedora would be nice, but I don't think we're the ones who should make this change - that should really be the job of the Java SIG.

Right, sorry. I recalled documents to that effect some time ago, but the ones I see now look like only a "jdk11 is available" document instead of "we're planning to switch in the next couple of releases". I'm sensitive to it though since e.g., Debian has already mostly switched to JDK 11 as the default compiler. I'm kinda expecting the Java SIG to want to switch suit soon, but who knows.

Ah, that's alright. Its something for me to look into later. You can go ahead and merge. :) Thanks @decathorpe!

Thanks! Will do.

Right, sorry. I recalled documents to that effect some time ago, but the ones I see now look like only a "jdk11 is available" document instead of "we're planning to switch in the next couple of releases". I'm sensitive to it though since e.g., Debian has already mostly switched to JDK 11 as the default compiler. I'm kinda expecting the Java SIG to want to switch suit soon, but who knows.

I was thinking about the same thing. It's not nice that fedora is lagging behind even debian stable in this regard.

Pull-Request has been merged by decathorpe

4 years ago