Skip to content

Commit

Permalink
Named GuiceContexts, SLF4J to Log4J2
Browse files Browse the repository at this point in the history
  • Loading branch information
GedMarc committed Oct 23, 2024
1 parent 9c96a18 commit 19a2528
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 129 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ protected class JRTModuleWalker extends java.nio.file.SimpleFileVisitor<java.nio
public java.nio.file.FileVisitResult visitFile(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes attrs) throws java.io.IOException
{
String name = path.toString();
// System.out.println("visiting - " + name);
if (name.startsWith("/modules/"))
{
name = name.substring(9);
name = name.substring(name.indexOf('/') + 1);
// System.out.println("visiting clean - " + name);
}
java.nio.file.Path lateralPath = null;
try
Expand All @@ -92,6 +94,8 @@ public java.nio.file.FileVisitResult visitFile(java.nio.file.Path path, java.nio
}
catch (java.net.URISyntaxException e)
{
// System.err.println("Cannot walk tree - " + e.getMessage());
// e.printStackTrace(System.err);
visitFileFailed(path, new java.io.IOException("Unable to walk file", e));
}
String basePrefix = getEntryBasePrefix();
Expand Down
8 changes: 0 additions & 8 deletions Vert.x/rest.vertx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<version.zandero.http>1.3</version.zandero.http>
<version.zandero.utils.junit>1.1</version.zandero.utils.junit>

<version.java.annotation>1.3.2</version.java.annotation>

<version.guice>7.0.0</version.guice>
<version.glassfish>3.1.8</version.glassfish>

Expand Down Expand Up @@ -119,12 +117,6 @@
<artifactId>jackson-databind</artifactId>
</dependency>

<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${version.java.annotation}</version>
</dependency>

<!-- ========== TESTS ================= -->
<!--Testing stuff bellow-->
<dependency>
Expand Down
7 changes: 3 additions & 4 deletions Vert.x/rest.vertx/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module com.zandero.rest.vertx {
requires transitive io.vertx.core;

requires transitive jakarta.ws.rs;

requires jakarta.validation;
requires jakarta.annotation;
requires jakarta.ws.rs;

requires org.slf4j;

// requires java.annotation;
requires com.fasterxml.jackson.databind;


exports com.zandero.rest;
exports com.zandero.rest.authentication;
exports com.zandero.rest.authorization;
Expand All @@ -19,7 +19,6 @@
exports com.zandero.rest.bean;
exports com.zandero.rest.reader;
exports com.zandero.rest.writer;

exports com.zandero.rest.events;

}
19 changes: 17 additions & 2 deletions guice-inject-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,30 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jul</artifactId>
<version>${log4j2.version}</version>
<scope>compile</scope>
</dependency>

</dependencies>

<build>
Expand Down Expand Up @@ -86,6 +94,13 @@
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-bom</artifactId>
<version>${log4j2.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
</project>
Loading

0 comments on commit 19a2528

Please sign in to comment.