Skip to content

Commit b95ce82

Browse files
authored
Merge pull request #2 from g3force/migrate-to-log4j2
Migrate to log4j2
2 parents ffb7c06 + 0a94c29 commit b95ce82

17 files changed

+371
-490
lines changed

README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Simply save and load field values to/from a file by adding an annotation to a fi
1212
## Limitations
1313

1414
* fields must not be final
15-
*
1615

1716
## Usage
1817

@@ -46,13 +45,13 @@ static
4645

4746
```java
4847
ConfigRegistration.registerConfigurableCallback("<your category>", new IConfigObserver()
49-
{
50-
@Override
51-
public void afterApply(IConfigClient configClient)
52-
{
53-
// called after all values were applied.
54-
}
55-
});
48+
{
49+
@Override
50+
public void afterApply(IConfigClient configClient)
51+
{
52+
// called after all values were applied.
53+
}
54+
});
5655
```
5756

5857
### Apply config and spezis

pom.xml

+17-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>com.github.g3force</groupId>
44
<artifactId>configurable</artifactId>
5-
<version>v2.4</version>
5+
<version>3.0</version>
66
<name>configurable</name>
77

88
<properties>
@@ -19,11 +19,18 @@
1919
<dependencies>
2020

2121
<dependency>
22-
<groupId>log4j</groupId>
23-
<artifactId>log4j</artifactId>
24-
<version>1.2.17</version>
22+
<groupId>org.apache.logging.log4j</groupId>
23+
<artifactId>log4j-api</artifactId>
24+
<version>2.12.1</version>
2525
</dependency>
26-
26+
27+
<dependency>
28+
<groupId>org.apache.logging.log4j</groupId>
29+
<artifactId>log4j-core</artifactId>
30+
<version>2.12.1</version>
31+
<scope>test</scope>
32+
</dependency>
33+
2734
<dependency>
2835
<groupId>junit</groupId>
2936
<artifactId>junit</artifactId>
@@ -41,7 +48,7 @@
4148
<dependency>
4249
<groupId>com.github.g3force</groupId>
4350
<artifactId>String2ValueConverter</artifactId>
44-
<version>v1.6</version>
51+
<version>2.1</version>
4552
</dependency>
4653

4754
<dependency>
@@ -57,7 +64,7 @@
5764
</dependency>
5865

5966
</dependencies>
60-
67+
6168
<build>
6269
<plugins>
6370
<plugin>
@@ -73,6 +80,7 @@
7380
<plugin>
7481
<groupId>org.apache.maven.plugins</groupId>
7582
<artifactId>maven-source-plugin</artifactId>
83+
<version>3.0.1</version>
7684
<executions>
7785
<execution>
7886
<id>attach-sources</id>
@@ -86,6 +94,7 @@
8694
<plugin>
8795
<groupId>org.apache.maven.plugins</groupId>
8896
<artifactId>maven-javadoc-plugin</artifactId>
97+
<version>2.10.4</version>
8998
<executions>
9099
<execution>
91100
<id>attach-javadocs</id>
@@ -100,4 +109,4 @@
100109
</plugin>
101110
</plugins>
102111
</build>
103-
</project>
112+
</project>

0 commit comments

Comments
 (0)