Skip to content

Commit 622bdad

Browse files
committed
modularized project - added module-info.java
1 parent 4574bf8 commit 622bdad

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<dependency>
6060
<groupId>com.erudika</groupId>
6161
<artifactId>para-core</artifactId>
62-
<version>1.43.0</version>
62+
<version>1.43.1</version>
6363
<scope>provided</scope>
6464
</dependency>
6565

@@ -173,6 +173,7 @@
173173
<consoleOutput>true</consoleOutput>
174174
<failsOnError>true</failsOnError>
175175
<linkXRef>false</linkXRef>
176+
<excludes>**/module-info.java</excludes>
176177
</configuration>
177178
<goals>
178179
<goal>check</goal>
@@ -248,7 +249,7 @@
248249
<plugin>
249250
<groupId>org.apache.maven.plugins</groupId>
250251
<artifactId>maven-source-plugin</artifactId>
251-
<version>3.0.1</version>
252+
<version>3.2.1</version>
252253
<executions>
253254
<execution>
254255
<id>attach-sources</id>
@@ -262,7 +263,7 @@
262263
<plugin>
263264
<groupId>org.apache.maven.plugins</groupId>
264265
<artifactId>maven-javadoc-plugin</artifactId>
265-
<version>3.1.0</version>
266+
<version>3.3.1</version>
266267
<executions>
267268
<execution>
268269
<id>attach-javadocs</id>

src/main/java/com/erudika/para/server/cache/HazelcastCache.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import java.util.Map.Entry;
2929
import java.util.TreeSet;
3030
import java.util.concurrent.TimeUnit;
31-
import javax.inject.Singleton;
3231
import org.apache.commons.lang3.StringUtils;
3332
import org.slf4j.Logger;
3433
import org.slf4j.LoggerFactory;
@@ -41,7 +40,6 @@
4140
* @see Cache
4241
* @see HazelcastUtils
4342
*/
44-
@Singleton
4543
public class HazelcastCache implements Cache {
4644

4745
private static final Logger logger = LoggerFactory.getLogger(HazelcastCache.class);

src/main/java/module-info.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright 2013-2021 Erudika. http://erudika.com
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* For issues and patches go to: https://github.com/erudika
17+
*/
18+
19+
module com.erudika.para.server.cache.hazelcast {
20+
requires com.erudika.para.core;
21+
requires org.apache.commons.lang3;
22+
requires com.fasterxml.jackson.databind;
23+
requires org.slf4j;
24+
requires com.hazelcast.core;
25+
requires software.amazon.awssdk.regions;
26+
exports com.erudika.para.server.cache;
27+
provides com.erudika.para.core.cache.Cache with com.erudika.para.server.cache.HazelcastCache;
28+
}

0 commit comments

Comments
 (0)