From e3c36a9c86def1d6692ae62b198fa7b3e32cadae Mon Sep 17 00:00:00 2001 From: "Jeb.Wang" Date: Tue, 10 Oct 2023 16:19:06 +0800 Subject: [PATCH] update --- CONTRIBUTING.md | 4 +- README.md | 9 +++ core/pom.xml | 32 ++++++++ .../distributedlock/DistributedLock.java | 0 .../hellooo/distributedlock/LockCallback.java | 0 .../hellooo/distributedlock/LockContext.java | 0 .../hellooo/distributedlock/LockHandler.java | 0 .../hellooo/distributedlock/LockState.java | 0 .../hellooo/distributedlock/Reusable.java | 0 .../distributedlock/common/ArgChecker.java | 0 .../distributedlock/common/ClassUtils.java | 0 .../distributedlock/common/NetworkUtils.java | 0 .../distributedlock/common/ProcessUtils.java | 0 .../distributedlock/common/StringUtils.java | 0 .../distributedlock/config/LockOptions.java | 0 .../distributedlock/enums/Coordinator.java | 0 .../distributedlock/enums/LockType.java | 0 .../BuilderEssentialFieldNotSetException.java | 0 .../GenericRuntimeLockException.java | 0 .../LockStateNotRemovedException.java | 0 .../exception/LockStateNotSetException.java | 0 .../LockStateRemoveExpiredException.java | 0 .../LockStateSetExpiredException.java | 0 .../impl/AbstractDistributedLock.java | 0 .../impl/LockCallbackFactory.java | 0 .../impl/LockStateBuilder.java | 0 .../impl/ReentrantDistributedLock.java | 0 .../impl/ReentrantDistributedLockBuilder.java | 0 .../impl/redis/AbstractRemotingThread.java | 0 .../impl/redis/RedisLockCallback.java | 0 .../impl/redis/RedisLockHandler.java | 0 .../impl/redis/RedisLockState.java | 0 .../impl/redis/RemotingLeaseThread.java | 0 .../impl/redis/RemotingRetryLockThread.java | 0 .../distributedlock/common/ArgChecker.java | 0 .../common/NetworkUtilsTest.java | 0 .../common/ProcessUtilsTest.java | 0 .../common/StringUtilsTest.java | 0 .../impl/ReentrantDistributedLockTest.java | 0 .../impl/redis/RemotingLeaseThreadTest.java | 0 examples/pom.xml | 21 +++++ .../MultiProcessMultiThreadContention.java | 4 + .../SingleProcessMultiThreadContention.java | 41 ++++++++++ pom.xml | 77 +++++++++++-------- 44 files changed, 153 insertions(+), 35 deletions(-) create mode 100644 core/pom.xml rename {src => core/src}/main/java/site/hellooo/distributedlock/DistributedLock.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/LockCallback.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/LockContext.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/LockHandler.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/LockState.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/Reusable.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/common/ArgChecker.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/common/ClassUtils.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/common/NetworkUtils.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/common/ProcessUtils.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/common/StringUtils.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/config/LockOptions.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/enums/Coordinator.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/enums/LockType.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/exception/BuilderEssentialFieldNotSetException.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/exception/GenericRuntimeLockException.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/exception/LockStateNotRemovedException.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/exception/LockStateNotSetException.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/exception/LockStateRemoveExpiredException.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/exception/LockStateSetExpiredException.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/AbstractDistributedLock.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/LockCallbackFactory.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/LockStateBuilder.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/ReentrantDistributedLock.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/ReentrantDistributedLockBuilder.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/redis/AbstractRemotingThread.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/redis/RedisLockCallback.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/redis/RedisLockHandler.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/redis/RedisLockState.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/redis/RemotingLeaseThread.java (100%) rename {src => core/src}/main/java/site/hellooo/distributedlock/impl/redis/RemotingRetryLockThread.java (100%) rename {src => core/src}/test/java/site/hellooo/distributedlock/common/ArgChecker.java (100%) rename {src => core/src}/test/java/site/hellooo/distributedlock/common/NetworkUtilsTest.java (100%) rename {src => core/src}/test/java/site/hellooo/distributedlock/common/ProcessUtilsTest.java (100%) rename {src => core/src}/test/java/site/hellooo/distributedlock/common/StringUtilsTest.java (100%) rename {src => core/src}/test/java/site/hellooo/distributedlock/impl/ReentrantDistributedLockTest.java (100%) rename {src => core/src}/test/java/site/hellooo/distributedlock/impl/redis/RemotingLeaseThreadTest.java (100%) create mode 100644 examples/pom.xml create mode 100644 examples/src/main/java/site/hellooo/distributedlock/examples/MultiProcessMultiThreadContention.java create mode 100644 examples/src/main/java/site/hellooo/distributedlock/examples/SingleProcessMultiThreadContention.java diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5a176f7..5589a5a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,11 +4,11 @@ Hi there! We're thrilled that you'd like to contribute to this project. Your hel ## Submitting a pull request -1. [Fork][fork] and clone the repository +1. Fork and clone the repository 2. Create a new branch: `git checkout -b my-branch-name` 3. Make your change and remember to add tests 4. Build the project locally and run local tests -5. Push to your fork and [submit a pull request][pr] +5. Push to your fork and submit a pull request 6. Pat your self on the back and wait for your pull request to be reviewed and merged. Thanks for your contributing! diff --git a/README.md b/README.md index 5962787..0c77137 100644 --- a/README.md +++ b/README.md @@ -58,3 +58,12 @@ public class Main { } ``` + + + +you can use it for study, or in your production environment if it met your requirement which is only single redis instance needed. +it is not recommended to use it in production environment if you need high availability, because it is not support redis cluster yet. + +jdk: 1.8 + + diff --git a/core/pom.xml b/core/pom.xml new file mode 100644 index 0000000..acd90e2 --- /dev/null +++ b/core/pom.xml @@ -0,0 +1,32 @@ + + + 4.0.0 + + site.hellooo + halo-distributedlock + ${revision} + + + halo-distributedlock-core + + + + redis.clients + jedis + + + junit + junit + + + org.assertj + assertj-core + + + org.mockito + mockito-core + + + diff --git a/src/main/java/site/hellooo/distributedlock/DistributedLock.java b/core/src/main/java/site/hellooo/distributedlock/DistributedLock.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/DistributedLock.java rename to core/src/main/java/site/hellooo/distributedlock/DistributedLock.java diff --git a/src/main/java/site/hellooo/distributedlock/LockCallback.java b/core/src/main/java/site/hellooo/distributedlock/LockCallback.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/LockCallback.java rename to core/src/main/java/site/hellooo/distributedlock/LockCallback.java diff --git a/src/main/java/site/hellooo/distributedlock/LockContext.java b/core/src/main/java/site/hellooo/distributedlock/LockContext.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/LockContext.java rename to core/src/main/java/site/hellooo/distributedlock/LockContext.java diff --git a/src/main/java/site/hellooo/distributedlock/LockHandler.java b/core/src/main/java/site/hellooo/distributedlock/LockHandler.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/LockHandler.java rename to core/src/main/java/site/hellooo/distributedlock/LockHandler.java diff --git a/src/main/java/site/hellooo/distributedlock/LockState.java b/core/src/main/java/site/hellooo/distributedlock/LockState.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/LockState.java rename to core/src/main/java/site/hellooo/distributedlock/LockState.java diff --git a/src/main/java/site/hellooo/distributedlock/Reusable.java b/core/src/main/java/site/hellooo/distributedlock/Reusable.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/Reusable.java rename to core/src/main/java/site/hellooo/distributedlock/Reusable.java diff --git a/src/main/java/site/hellooo/distributedlock/common/ArgChecker.java b/core/src/main/java/site/hellooo/distributedlock/common/ArgChecker.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/common/ArgChecker.java rename to core/src/main/java/site/hellooo/distributedlock/common/ArgChecker.java diff --git a/src/main/java/site/hellooo/distributedlock/common/ClassUtils.java b/core/src/main/java/site/hellooo/distributedlock/common/ClassUtils.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/common/ClassUtils.java rename to core/src/main/java/site/hellooo/distributedlock/common/ClassUtils.java diff --git a/src/main/java/site/hellooo/distributedlock/common/NetworkUtils.java b/core/src/main/java/site/hellooo/distributedlock/common/NetworkUtils.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/common/NetworkUtils.java rename to core/src/main/java/site/hellooo/distributedlock/common/NetworkUtils.java diff --git a/src/main/java/site/hellooo/distributedlock/common/ProcessUtils.java b/core/src/main/java/site/hellooo/distributedlock/common/ProcessUtils.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/common/ProcessUtils.java rename to core/src/main/java/site/hellooo/distributedlock/common/ProcessUtils.java diff --git a/src/main/java/site/hellooo/distributedlock/common/StringUtils.java b/core/src/main/java/site/hellooo/distributedlock/common/StringUtils.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/common/StringUtils.java rename to core/src/main/java/site/hellooo/distributedlock/common/StringUtils.java diff --git a/src/main/java/site/hellooo/distributedlock/config/LockOptions.java b/core/src/main/java/site/hellooo/distributedlock/config/LockOptions.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/config/LockOptions.java rename to core/src/main/java/site/hellooo/distributedlock/config/LockOptions.java diff --git a/src/main/java/site/hellooo/distributedlock/enums/Coordinator.java b/core/src/main/java/site/hellooo/distributedlock/enums/Coordinator.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/enums/Coordinator.java rename to core/src/main/java/site/hellooo/distributedlock/enums/Coordinator.java diff --git a/src/main/java/site/hellooo/distributedlock/enums/LockType.java b/core/src/main/java/site/hellooo/distributedlock/enums/LockType.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/enums/LockType.java rename to core/src/main/java/site/hellooo/distributedlock/enums/LockType.java diff --git a/src/main/java/site/hellooo/distributedlock/exception/BuilderEssentialFieldNotSetException.java b/core/src/main/java/site/hellooo/distributedlock/exception/BuilderEssentialFieldNotSetException.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/exception/BuilderEssentialFieldNotSetException.java rename to core/src/main/java/site/hellooo/distributedlock/exception/BuilderEssentialFieldNotSetException.java diff --git a/src/main/java/site/hellooo/distributedlock/exception/GenericRuntimeLockException.java b/core/src/main/java/site/hellooo/distributedlock/exception/GenericRuntimeLockException.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/exception/GenericRuntimeLockException.java rename to core/src/main/java/site/hellooo/distributedlock/exception/GenericRuntimeLockException.java diff --git a/src/main/java/site/hellooo/distributedlock/exception/LockStateNotRemovedException.java b/core/src/main/java/site/hellooo/distributedlock/exception/LockStateNotRemovedException.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/exception/LockStateNotRemovedException.java rename to core/src/main/java/site/hellooo/distributedlock/exception/LockStateNotRemovedException.java diff --git a/src/main/java/site/hellooo/distributedlock/exception/LockStateNotSetException.java b/core/src/main/java/site/hellooo/distributedlock/exception/LockStateNotSetException.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/exception/LockStateNotSetException.java rename to core/src/main/java/site/hellooo/distributedlock/exception/LockStateNotSetException.java diff --git a/src/main/java/site/hellooo/distributedlock/exception/LockStateRemoveExpiredException.java b/core/src/main/java/site/hellooo/distributedlock/exception/LockStateRemoveExpiredException.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/exception/LockStateRemoveExpiredException.java rename to core/src/main/java/site/hellooo/distributedlock/exception/LockStateRemoveExpiredException.java diff --git a/src/main/java/site/hellooo/distributedlock/exception/LockStateSetExpiredException.java b/core/src/main/java/site/hellooo/distributedlock/exception/LockStateSetExpiredException.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/exception/LockStateSetExpiredException.java rename to core/src/main/java/site/hellooo/distributedlock/exception/LockStateSetExpiredException.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/AbstractDistributedLock.java b/core/src/main/java/site/hellooo/distributedlock/impl/AbstractDistributedLock.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/AbstractDistributedLock.java rename to core/src/main/java/site/hellooo/distributedlock/impl/AbstractDistributedLock.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/LockCallbackFactory.java b/core/src/main/java/site/hellooo/distributedlock/impl/LockCallbackFactory.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/LockCallbackFactory.java rename to core/src/main/java/site/hellooo/distributedlock/impl/LockCallbackFactory.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/LockStateBuilder.java b/core/src/main/java/site/hellooo/distributedlock/impl/LockStateBuilder.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/LockStateBuilder.java rename to core/src/main/java/site/hellooo/distributedlock/impl/LockStateBuilder.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/ReentrantDistributedLock.java b/core/src/main/java/site/hellooo/distributedlock/impl/ReentrantDistributedLock.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/ReentrantDistributedLock.java rename to core/src/main/java/site/hellooo/distributedlock/impl/ReentrantDistributedLock.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/ReentrantDistributedLockBuilder.java b/core/src/main/java/site/hellooo/distributedlock/impl/ReentrantDistributedLockBuilder.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/ReentrantDistributedLockBuilder.java rename to core/src/main/java/site/hellooo/distributedlock/impl/ReentrantDistributedLockBuilder.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/redis/AbstractRemotingThread.java b/core/src/main/java/site/hellooo/distributedlock/impl/redis/AbstractRemotingThread.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/redis/AbstractRemotingThread.java rename to core/src/main/java/site/hellooo/distributedlock/impl/redis/AbstractRemotingThread.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockCallback.java b/core/src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockCallback.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockCallback.java rename to core/src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockCallback.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockHandler.java b/core/src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockHandler.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockHandler.java rename to core/src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockHandler.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockState.java b/core/src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockState.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockState.java rename to core/src/main/java/site/hellooo/distributedlock/impl/redis/RedisLockState.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/redis/RemotingLeaseThread.java b/core/src/main/java/site/hellooo/distributedlock/impl/redis/RemotingLeaseThread.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/redis/RemotingLeaseThread.java rename to core/src/main/java/site/hellooo/distributedlock/impl/redis/RemotingLeaseThread.java diff --git a/src/main/java/site/hellooo/distributedlock/impl/redis/RemotingRetryLockThread.java b/core/src/main/java/site/hellooo/distributedlock/impl/redis/RemotingRetryLockThread.java similarity index 100% rename from src/main/java/site/hellooo/distributedlock/impl/redis/RemotingRetryLockThread.java rename to core/src/main/java/site/hellooo/distributedlock/impl/redis/RemotingRetryLockThread.java diff --git a/src/test/java/site/hellooo/distributedlock/common/ArgChecker.java b/core/src/test/java/site/hellooo/distributedlock/common/ArgChecker.java similarity index 100% rename from src/test/java/site/hellooo/distributedlock/common/ArgChecker.java rename to core/src/test/java/site/hellooo/distributedlock/common/ArgChecker.java diff --git a/src/test/java/site/hellooo/distributedlock/common/NetworkUtilsTest.java b/core/src/test/java/site/hellooo/distributedlock/common/NetworkUtilsTest.java similarity index 100% rename from src/test/java/site/hellooo/distributedlock/common/NetworkUtilsTest.java rename to core/src/test/java/site/hellooo/distributedlock/common/NetworkUtilsTest.java diff --git a/src/test/java/site/hellooo/distributedlock/common/ProcessUtilsTest.java b/core/src/test/java/site/hellooo/distributedlock/common/ProcessUtilsTest.java similarity index 100% rename from src/test/java/site/hellooo/distributedlock/common/ProcessUtilsTest.java rename to core/src/test/java/site/hellooo/distributedlock/common/ProcessUtilsTest.java diff --git a/src/test/java/site/hellooo/distributedlock/common/StringUtilsTest.java b/core/src/test/java/site/hellooo/distributedlock/common/StringUtilsTest.java similarity index 100% rename from src/test/java/site/hellooo/distributedlock/common/StringUtilsTest.java rename to core/src/test/java/site/hellooo/distributedlock/common/StringUtilsTest.java diff --git a/src/test/java/site/hellooo/distributedlock/impl/ReentrantDistributedLockTest.java b/core/src/test/java/site/hellooo/distributedlock/impl/ReentrantDistributedLockTest.java similarity index 100% rename from src/test/java/site/hellooo/distributedlock/impl/ReentrantDistributedLockTest.java rename to core/src/test/java/site/hellooo/distributedlock/impl/ReentrantDistributedLockTest.java diff --git a/src/test/java/site/hellooo/distributedlock/impl/redis/RemotingLeaseThreadTest.java b/core/src/test/java/site/hellooo/distributedlock/impl/redis/RemotingLeaseThreadTest.java similarity index 100% rename from src/test/java/site/hellooo/distributedlock/impl/redis/RemotingLeaseThreadTest.java rename to core/src/test/java/site/hellooo/distributedlock/impl/redis/RemotingLeaseThreadTest.java diff --git a/examples/pom.xml b/examples/pom.xml new file mode 100644 index 0000000..f465785 --- /dev/null +++ b/examples/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + site.hellooo + halo-distributedlock + ${revision} + + + halo-distributedlock-examples + + + + site.hellooo + halo-distributedlock-core + 0.0.7-GA + + + \ No newline at end of file diff --git a/examples/src/main/java/site/hellooo/distributedlock/examples/MultiProcessMultiThreadContention.java b/examples/src/main/java/site/hellooo/distributedlock/examples/MultiProcessMultiThreadContention.java new file mode 100644 index 0000000..29a2f44 --- /dev/null +++ b/examples/src/main/java/site/hellooo/distributedlock/examples/MultiProcessMultiThreadContention.java @@ -0,0 +1,4 @@ +package site.hellooo.distributedlock.examples; + +public class MultiProcessMultiThreadContention { +} diff --git a/examples/src/main/java/site/hellooo/distributedlock/examples/SingleProcessMultiThreadContention.java b/examples/src/main/java/site/hellooo/distributedlock/examples/SingleProcessMultiThreadContention.java new file mode 100644 index 0000000..0c2b97b --- /dev/null +++ b/examples/src/main/java/site/hellooo/distributedlock/examples/SingleProcessMultiThreadContention.java @@ -0,0 +1,41 @@ +package site.hellooo.distributedlock.examples; + +import redis.clients.jedis.JedisPool; +import site.hellooo.distributedlock.config.LockOptions; +import site.hellooo.distributedlock.impl.ReentrantDistributedLock; +import site.hellooo.distributedlock.impl.redis.RedisLockHandler; + +import java.util.concurrent.locks.Lock; + +public class SingleProcessMultiThreadContention { + public static void main(String[] args) { + LockOptions lockOptions = LockOptions.options() + .build(); + +// define the redis source + JedisPool pool = new JedisPool("localhost", 6379); + for (int i = 0; i < 1000; i++) { + final int threadNumber = i; + Thread thread = new Thread(() -> { + Thread.currentThread().setName("Thread " + threadNumber); +// Thread.sleep(1); + // String world = jedis.get("hello"); + // System.out.println("world= " + world); + try { + Lock lock = new ReentrantDistributedLock(lockOptions, "my_lock", new RedisLockHandler(pool)); +// lock + lock.lock(); + System.out.println("thread" + Thread.currentThread().getName() + " locked!"); + // Thread.sleep(1000); + System.out.println("thread" + Thread.currentThread().getName() + " lock released!"); +// unlock + lock.unlock(); + System.out.println("after thread" + Thread.currentThread().getName() + " lock released!"); + } catch (Exception e) { + e.printStackTrace(); + } + }); + thread.start(); + } + } +} diff --git a/pom.xml b/pom.xml index d96b279..f1de081 100644 --- a/pom.xml +++ b/pom.xml @@ -4,45 +4,56 @@ site.hellooo halo-distributedlock - 0.0.6-GA + ${revision} + pom + + core + + 0.0.7-GA + UTF8 8 8 + 4.2.3 4.13.2 3.23.1 4.6.1 - - - redis.clients - jedis - ${jedis.version} - - - - junit - junit - 4.13.2 - ${junit.version} - - - org.assertj - assertj-core - ${assertj-core.version} - test - - - org.mockito - mockito-core - ${mockito-core.version} - test - - - + + + + redis.clients + jedis + ${jedis.version} + + + + + junit + junit + ${junit.version} + test + + + org.assertj + assertj-core + ${assertj-core.version} + test + + + org.mockito + mockito-core + ${mockito-core.version} + test + + + + + distributed-lock a simple but reliable distributed lock implementation https://github.com/hellooo-stack/halo-distributedlock @@ -66,7 +77,7 @@ - + ossrh https://s01.oss.sonatype.org/content/repositories/snapshots @@ -80,7 +91,7 @@ release - + org.apache.maven.plugins maven-source-plugin @@ -94,7 +105,7 @@ - + org.apache.maven.plugins maven-javadoc-plugin @@ -108,7 +119,7 @@ - + org.apache.maven.plugins maven-gpg-plugin @@ -123,7 +134,7 @@ - + org.sonatype.plugins nexus-staging-maven-plugin