Skip to content

Commit

Permalink
Prepare for the Guice 6.0 & 7.0 releases. This change does the follow…
Browse files Browse the repository at this point in the history
…ing:

* Bumps the snapshot version to 7.0.1-SNAPSHOT
* Adds Guice 6 & Guice 7 release pages, with explanations of the jakarta transition & how Guice 6.0 & 7.0 should be used. They also include changelogs since 5.1.0.
* Updates the top-level README to reference the 6.0 & 7.0 releases, as well as including "installation instructions" (which fixes #1698).
* Updates the wiki to make sure it's meaningful for both javax & jakarta references, pointing to the correct ones where appropriate.

PiperOrigin-RevId: 529770936
  • Loading branch information
sameb authored and Guice Team committed May 5, 2023
1 parent 49b1a33 commit 24324ca
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 19 deletions.
44 changes: 40 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@ Guice
====

- **Latest release: [5.1.0](https://github.com/google/guice/wiki/Guice510)**
- **Latest pre-releases:**
* **[6.0.0-rc2](https://github.com/google/guice/wiki/Guice600) (supports `jakarta.inject`, `jakarta.servlet`, and `jakarta.persistence`, [mostly supports](https://github.com/google/guice/wiki/Guice600#jee-jakarta-transition) `jakarta.inject`)**
* **[7.0.0-rc1](https://github.com/google/guice/wiki/Guice700) (supports `jakarta.inject`, `jakarta.servlet`, and `jakarta.persistence`)**
- **Documentation:**
[User Guide](https://github.com/google/guice/wiki/Motivation),
[Latest javadocs](https://google.github.io/guice/api-docs/latest/javadoc/index.html)
[5.1.0 javadocs](https://google.github.io/guice/api-docs/5.1.0/javadoc/index.html)
* [User Guide](https://github.com/google/guice/wiki/Motivation),
* [5.1.0 javadocs](https://google.github.io/guice/api-docs/5.1.0/javadoc/index.html)
* [6.0.0 javadocs](https://google.github.io/guice/api-docs/6.0.0-rc2/javadoc/index.html)
* [7.0.0 javadocs](https://google.github.io/guice/api-docs/7.0.0-rc1/javadoc/index.html)
* [Latest Snapshot javadocs](https://google.github.io/guice/api-docs/latest/javadoc/index.html)
- **Continuous Integration:**
[![Build Status](https://github.com/google/guice/workflows/continuous-integration/badge.svg)](https://github.com/google/guice/actions)
- **Mailing Lists:** [User Mailing List](http://groups.google.com/group/google-guice) <br/>
- **License:** [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)

Overview
====

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 still need to write factories in some cases, but your code will not depend directly on them. Your code will be easier to change, unit test and reuse in other contexts.

Guice embraces Java's type safe nature, especially when it comes to features introduced in Java 5 such as generics and annotations. You might think of Guice as filling in missing features for core Java. Ideally, the language itself would provide most of the same features, but until such a language comes along, we have Guice.
Guice embraces Java's type safe nature. You might think of Guice as filling in missing features for core Java. Ideally, the language itself would provide most of the same features, but until such a language comes along, we have Guice.

Guice helps you design better APIs, and the Guice API itself sets a good example. Guice is not a kitchen sink. We justify each feature with at least three use cases. When in doubt, we leave it out. We build general functionality which enables you to extend Guice rather than adding every feature to the core framework.

Expand All @@ -23,4 +31,32 @@ For an introduction to Guice and a comparison to new and the factory pattern, se

We've been running Guice in mission critical applications since 2006, and now you can, too. We hope you enjoy it as much as we do.


Installation Instructions
====
Guice Core (Maven)
```xml
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<!-- {version} can be 5.1.0, 6.0.0-rc2, 7.0.0-rc1, etc. -->
<version>{version}</version>
</dependency>
```

Guice Extension (Maven)
```xml
<dependency>
<groupId>com.google.inject.extensions</groupId>
<!-- {extension-name} can be one of: assistedinject, dagger-adapter,
grapher, jmx, jndi, persist, spring, testlib or throwingproviders -->
<artifactId>guice-{extension-name}</artifactId>
<!-- {version} must match the guice core version. -->
<version>{version}</version>
</dependency>
```

See [Maven Central](https://central.sonatype.com/artifact/com.google.inject/guice/) for more details, including snippets for other build systems such as Gradle, Ivy, sbt, and more.

---
[![jolt award](https://user-images.githubusercontent.com/1885701/52603534-0d620380-2e1c-11e9-8cd5-95f0e141fcb0.png)](http://www.drdobbs.com/tools/winners-of-the-18th-jolt-product-excelle/207600666?pgno=6)
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject</groupId>
<artifactId>guice-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject</groupId>
<artifactId>guice-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/assistedinject/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice-assistedinject</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/dagger-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>
<artifactId>guice-dagger-adapter</artifactId>
<name>Google Guice - Extensions - Dagger Adapter</name>
Expand Down
2 changes: 1 addition & 1 deletion extensions/grapher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice-grapher</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/jmx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice-jmx</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/jndi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice-jndi</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/persist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice-persist</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject</groupId>
<artifactId>guice-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion extensions/servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice-servlet</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice-spring</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/struts2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice-struts2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/testlib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice-testlib</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/throwingproviders/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.google.inject.extensions</groupId>
<artifactId>extensions-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>
</parent>

<artifactId>guice-throwingproviders</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ See the Apache License Version 2.0 for the specific language governing permissio

<groupId>com.google.inject</groupId>
<artifactId>guice-parent</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>7.0.1-SNAPSHOT</version>

<name>Google Guice</name>

Expand Down

0 comments on commit 24324ca

Please sign in to comment.