Skip to content

Commit

Permalink
Merge pull request #2 from g3force/migrate-to-log4j2
Browse files Browse the repository at this point in the history
Migrate to log4j2
  • Loading branch information
g3force authored Oct 5, 2019
2 parents ffb7c06 + 0a94c29 commit b95ce82
Show file tree
Hide file tree
Showing 17 changed files with 371 additions and 490 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Simply save and load field values to/from a file by adding an annotation to a fi
## Limitations

* fields must not be final
*

## Usage

Expand Down Expand Up @@ -46,13 +45,13 @@ static

```java
ConfigRegistration.registerConfigurableCallback("<your category>", new IConfigObserver()
{
@Override
public void afterApply(IConfigClient configClient)
{
// called after all values were applied.
}
});
{
@Override
public void afterApply(IConfigClient configClient)
{
// called after all values were applied.
}
});
```

### Apply config and spezis
Expand Down
25 changes: 17 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.g3force</groupId>
<artifactId>configurable</artifactId>
<version>v2.4</version>
<version>3.0</version>
<name>configurable</name>

<properties>
Expand All @@ -19,11 +19,18 @@
<dependencies>

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.12.1</version>
</dependency>


<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.12.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand All @@ -41,7 +48,7 @@
<dependency>
<groupId>com.github.g3force</groupId>
<artifactId>String2ValueConverter</artifactId>
<version>v1.6</version>
<version>2.1</version>
</dependency>

<dependency>
Expand All @@ -57,7 +64,7 @@
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
Expand All @@ -73,6 +80,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -86,6 +94,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -100,4 +109,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Loading

0 comments on commit b95ce82

Please sign in to comment.