Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guice 1.0 in maven repository has been compiled with Java 6 #402

Closed
gissuebot opened this issue Jul 7, 2014 · 3 comments
Closed

Guice 1.0 in maven repository has been compiled with Java 6 #402

gissuebot opened this issue Jul 7, 2014 · 3 comments

Comments

@gissuebot
Copy link

From dom.happygiraffe.net on July 12, 2009 15:08:10

I've just switched my project to using the new com.google.inject version of guice 1.0.
Unfortunately, it's been compiled with Java 6, rather than Java 5, so I had to upgrade my project
too.

In my case I don't think that this matters much.  However, I thought you should be aware of it. :)

Original issue: http://code.google.com/p/google-guice/issues/detail?id=402

@gissuebot
Copy link
Author

From estebistec on August 10, 2009 08:11:03

The maven-enforcer-plugin [1] can be used in the pom to ensure that the project isn't
accidentally built on a newer or older jvm. E.g.:

         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-enforcer-plugin</artifactId>
            <version>1.0-beta-1</version>
            <configuration>
               <rules>
                  <requireJavaVersion>
                     <version>[1.5,1.6)</version>
                  </requireJavaVersion>
                  <requireMavenVersion>
                     <version>[2.1.0,2.2)</version>
                  </requireMavenVersion>
               </rules>
            </configuration>
            <executions>
               <execution>
                  <goals>
                     <goal>enforce</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>

[1] http://maven.apache.org/plugins/maven-enforcer-plugin

@gissuebot
Copy link
Author

From dom.happygiraffe.net on August 10, 2009 09:15:33

@estebistec: It could if guice was using maven to build.  However, the POMs are just informative, for uploading
to central.  This would have to be taken care of in the ant scripts instead.

@gissuebot
Copy link
Author

From sberlin on October 21, 2010 20:49:04

Guice 3.0 will be properly built with Java 1.5.

Status: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant