From b3e9e8841aa986feedaa30d5c3ac7d70a080bcbd Mon Sep 17 00:00:00 2001 From: Gili Tzabari Date: Sun, 29 Dec 2024 12:34:48 -0500 Subject: [PATCH] Updated dependencies. --- README.md | 10 ++++---- docs/frequently_asked_questions.md | 12 ++++----- dropwizard/pom.xml | 5 ++-- jersey/pom.xml | 5 ++-- pom.xml | 41 +++++++++++++++++++++++++++--- 5 files changed, 54 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 44b0b2e..55c7d24 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.cowwoc.pouch/java/badge.svg)](https://search.maven.org/search?q=g:com.github.cowwoc.pouch) [![API](https://img.shields.io/badge/api_docs-5B45D5.svg)](http://cowwoc.github.io/pouch/5.2/docs/api/) [![Changelog](https://img.shields.io/badge/changelog-A345D5.svg)](docs/Changelog.md) +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.cowwoc.pouch/java/badge.svg)](https://search.maven.org/search?q=g:com.github.cowwoc.pouch) [![API](https://img.shields.io/badge/api_docs-5B45D5.svg)](http://cowwoc.github.io/pouch/5.3/docs/api/) [![Changelog](https://img.shields.io/badge/changelog-A345D5.svg)](docs/Changelog.md) [![build-status](../../workflows/Build/badge.svg)](../../actions?query=workflow%3ABuild) # pouch Pouch: Inversion of Control for the Masses @@ -20,7 +20,7 @@ To get started, add this Maven dependency: com.github.cowwoc.pouch core - 5.2 + 5.3 ``` @@ -138,7 +138,7 @@ For example, notice how `AbstractDatabaseScope.getRunMode()` delegates to `JvmSc When running in a multi-threaded environment, such as a web server, you might want to wait for ongoing HTTP requests to complete before shutting down the server. You can use the -[ConcurrentChildScopes](https://cowwoc.github.io/pouch/5.2/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/ConcurrentChildScopes.html) +[ConcurrentChildScopes](https://cowwoc.github.io/pouch/5.3/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/ConcurrentChildScopes.html) class to implement this as follows: ```java @@ -588,9 +588,9 @@ The scope approach makes it easier to look up multiple values, or pass the scope The library contains two types of classes: ones that are thread-safe and ones that are not. For example, -[ConcurrentLazyFactory](https://cowwoc.github.io/pouch/5.2/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/ConcurrentLazyFactory.html) +[ConcurrentLazyFactory](https://cowwoc.github.io/pouch/5.3/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/ConcurrentLazyFactory.html) is the thread-safe equivalent -of [LazyFactory](https://cowwoc.github.io/pouch/5.2/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/LazyFactory.html). +of [LazyFactory](https://cowwoc.github.io/pouch/5.3/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/LazyFactory.html). `LazyFactory` is faster than `ConcurrentLazyFactory`, but doesn't support access from multiple threads. Classes that are required to support multithreaded access (such as the application scope) must use the thread-safe classes. diff --git a/docs/frequently_asked_questions.md b/docs/frequently_asked_questions.md index fab8717..415a7d9 100644 --- a/docs/frequently_asked_questions.md +++ b/docs/frequently_asked_questions.md @@ -156,12 +156,12 @@ Ease of use and substantially reduced size. Guava provides comparable functionality: -* [Reference](https://cowwoc.github.io/pouch/5.2/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/Reference.html) <-> +* [Reference](https://cowwoc.github.io/pouch/5.3/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/Reference.html) <-> [Supplier](https://guava.dev/releases/32.1.1-jre/api/docs/com/google/common/base/Supplier.html) -* [ConstantReference](https://cowwoc.github.io/pouch/5.2/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/ConstantReference.html) +* [ConstantReference](https://cowwoc.github.io/pouch/5.3/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/ConstantReference.html) <-> [Suppliers.ofInstance()](https://guava.dev/releases/32.1.1-jre/api/docs/com/google/common/base/Suppliers.html#ofInstance-T-) -* [LazyReference](https://cowwoc.github.io/pouch/5.2/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/LazyReference.html) <-> +* [LazyReference](https://cowwoc.github.io/pouch/5.3/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/LazyReference.html) <-> [Suppliers.memoize()](https://guava.dev/releases/32.1.1-jre/api/docs/com/google/common/base/Suppliers.html#memoize-com.google.common.base.Supplier-) While it is true @@ -175,12 +175,12 @@ For example: 1. [Suppliers.memoize()](https://guava.dev/releases/32.1.1-jre/api/docs/com/google/common/base/Suppliers.html#memoize-com.google.common.base.Supplier-) doesn't provide a mechanism for checking whether the underlying value has been initialized. This is important because, when implementing - [Factory.close()](https://cowwoc.github.io/pouch/5.2/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/Factory.html#close()), + [Factory.close()](https://cowwoc.github.io/pouch/5.3/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/Factory.html#close()), you'll want to avoid initializing values that have never been initialized before. 2. This library provides convenience classes such as - [LazyFactory](https://cowwoc.github.io/pouch/5.2/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/LazyFactory.html) + [LazyFactory](https://cowwoc.github.io/pouch/5.3/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/LazyFactory.html) which unifies classes - [LazyReference](https://cowwoc.github.io/pouch/5.2/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/LazyReference.html) + [LazyReference](https://cowwoc.github.io/pouch/5.3/docs/api/com.github.cowwoc.pouch.core/com/github/cowwoc/pouch/core/LazyReference.html) and [Closeable](http://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html) into a single class. The size of the Guava library is 2.8MB. diff --git a/dropwizard/pom.xml b/dropwizard/pom.xml index 7aaa3d3..7e8c26e 100644 --- a/dropwizard/pom.xml +++ b/dropwizard/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 com.github.cowwoc.pouch @@ -11,7 +12,7 @@ Example of integrating Pouch with Dropwizard. - 4.0.10 + 4.0.11 diff --git a/jersey/pom.xml b/jersey/pom.xml index d3754b5..d8e013a 100644 --- a/jersey/pom.xml +++ b/jersey/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 com.github.cowwoc.pouch @@ -74,7 +75,7 @@ ch.qos.logback logback-classic - 1.5.12 + 1.5.15 test diff --git a/pom.xml b/pom.xml index 391b2a8..3fa8b87 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 com.github.cowwoc.pouch root @@ -52,7 +53,7 @@ UTF-8 3.9.9 - 5.11.3 + 5.11.4 @@ -76,12 +77,12 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.10.1 + 3.11.2 org.apache.maven.plugins maven-surefire-plugin - 3.5.1 + 3.5.2 maven-clean-plugin @@ -136,6 +137,38 @@ + + org.codehaus.mojo + versions-maven-plugin + 2.18.0 + + + + + org.apache.maven.plugins + + + regex + .+-(alpha|beta).+ + + + + + + + regex + (.+-SNAPSHOT|.+-M\d) + + + regex + .+-(alpha|beta).+ + + + + + + +