Skip to content

Commit

Permalink
Rename Java packages to fit the Java 9 naming module rules. List changes
Browse files Browse the repository at this point in the history
in release notes.
  • Loading branch information
garydgregory committed Jan 29, 2018
1 parent 3f8ae50 commit 2b5ec72
Show file tree
Hide file tree
Showing 78 changed files with 246 additions and 293 deletions.
70 changes: 70 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,73 @@
# Apache Log4j 2.11.0 Release Notes

## List of Binary Compatibility Breaking Changes in log4j-core

Log4j 2.11.0 moves code from `log4j-core` to several new Maven modules. Dependencies to other jars that used to be
optional in `log4j-core` are now required in the new modules. The code in these modules have been repackaged.

These changes do not affect your configuration files.

The new modules are:

### log4j-cvs

* Group ID: `org.apache.logging.log4j`
* Artifact ID: `log4j-cvs`

* Old package: `org.apache.logging.log4j.core.layout`
* New package: `org.apache.logging.log4j.csv.layout`

### log4j-jeromq

* Group ID: `org.apache.logging.log4j`
* Artifact ID: `log4j-jeromq`

* Old package: `org.apache.logging.log4j.core.appender.mom.jeromq`
* New package: `org.apache.logging.log4j.jeromq.appender`

### log4j-jpa

* Group ID: `org.apache.logging.log4j`
* Artifact ID: `log4j-jpa`

* Old package 1: `org.apache.logging.log4j.core.appender.db.jpa`
* New package 1: `org.apache.logging.log4j.jpa.appender`

* Old package 2: `org.apache.logging.log4j.core.appender.db.jpa.converter`
* New package 2: `org.apache.logging.log4j.jpa.converter`

### log4j-kafka

* Group ID: `org.apache.logging.log4j`
* Artifact ID: `log4j-kafka`

* Old package: `org.apache.logging.log4j.core.appender.mom.kafka`
* New package: `org.apache.logging.log4j.kafka.appender`

### log4j-mongodb2

* Group ID: `org.apache.logging.log4j`
* Artifact ID: `log4j-mongodb2`

* Old package: `org.apache.logging.log4j.mongodb`
* New package: `org.apache.logging.log4j.mongodb2`

### log4j-mongodb3

* Group ID: `org.apache.logging.log4j`
* Artifact ID: `log4j-mongodb3`

* Old package: `org.apache.logging.log4j.mongodb`
* New package: `org.apache.logging.log4j.mongodb3`

### log4j-smtp

* Group ID: `org.apache.logging.log4j`
* Artifact ID: `log4j-smtp`

* Old package: `org.apache.logging.log4j.core.appender`
* New package: `org.apache.logging.log4j.smtp.appender`

# Apache Log4j 2.10.0 Release Notes

The Apache Log4j 2 team is pleased to announce the Log4j 2.10.0 release!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static class Builder<B extends Builder<B>> {
private char[] userName;

@SuppressWarnings("unchecked")
protected B asBuilder() {
public B asBuilder() {
return (B) this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

public class JdbcH2TestHelper {

static final String CONNECTION_STRING = "jdbc:h2:mem:Log4j";
static final String USER_NAME = "sa";
static final String PASSWORD = "";
public static final String CONNECTION_STRING = "jdbc:h2:mem:Log4j";
public static final String USER_NAME = "sa";
public static final String PASSWORD = "";

public static ConnectionSource TEST_CONFIGURATION_SOURCE = new AbstractConnectionSource() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
//@Order(50)
public class CustomConfigurationFactory extends ConfigurationFactory {

static Configuration addTestFixtures(final String name, final ConfigurationBuilder<BuiltConfiguration> builder) {
public static Configuration addTestFixtures(final String name, final ConfigurationBuilder<BuiltConfiguration> builder) {
builder.setConfigurationName(name);
builder.setStatusLevel(Level.ERROR);
builder.add(builder.newScriptFile("target/test-classes/scripts/filter.groovy").addIsWatched(true));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
* See the license for the specific language governing permissions and
* limitations under the license.
*/
package org.apache.logging.log4j.core.layout;
package org.apache.logging.log4j.csv.layout;

import java.nio.charset.Charset;

import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.QuoteMode;
import org.apache.logging.log4j.core.config.Configuration;
import org.apache.logging.log4j.core.layout.AbstractStringLayout;
import org.apache.logging.log4j.core.layout.PatternLayout;

/**
* A superclass for Comma-Separated Value (CSV) layouts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the license for the specific language governing permissions and
* limitations under the license.
*/
package org.apache.logging.log4j.core.layout;
package org.apache.logging.log4j.csv.layout;

import java.io.IOException;
import java.nio.charset.Charset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the license for the specific language governing permissions and
* limitations under the license.
*/
package org.apache.logging.log4j.core.layout;
package org.apache.logging.log4j.csv.layout;

import java.io.IOException;
import java.nio.charset.Charset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the license.
*/

package org.apache.logging.log4j.core.appender;
package org.apache.logging.log4j.csv.appender;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the license for the specific language governing permissions and
* limitations under the license.
*/
package org.apache.logging.log4j.core.layout;
package org.apache.logging.log4j.csv.layout;

import static org.junit.Assert.assertEquals;

Expand All @@ -30,6 +30,8 @@
import org.apache.logging.log4j.core.Logger;
import org.apache.logging.log4j.core.LoggerContext;
import org.apache.logging.log4j.core.config.ConfigurationFactory;
import org.apache.logging.log4j.csv.layout.AbstractCsvLayout;
import org.apache.logging.log4j.csv.layout.CsvLogEventLayout;
import org.apache.logging.log4j.junit.ThreadContextRule;
import org.apache.logging.log4j.test.appender.ListAppender;
import org.junit.AfterClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the license for the specific language governing permissions and
* limitations under the license.
*/
package org.apache.logging.log4j.core.layout;
package org.apache.logging.log4j.csv.layout;

import org.apache.commons.csv.CSVFormat;
import org.apache.logging.log4j.LogManager;
Expand All @@ -23,6 +23,8 @@
import org.apache.logging.log4j.core.async.AsyncLoggerContextSelector;
import org.apache.logging.log4j.core.config.ConfigurationFactory;
import org.apache.logging.log4j.core.util.Constants;
import org.apache.logging.log4j.csv.layout.AbstractCsvLayout;
import org.apache.logging.log4j.csv.layout.CsvParameterLayout;
import org.apache.logging.log4j.util.Strings;
import org.junit.AfterClass;
import org.junit.BeforeClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the license for the specific language governing permissions and
* limitations under the license.
*/
package org.apache.logging.log4j.core.layout;
package org.apache.logging.log4j.csv.layout;

import static org.junit.Assert.assertEquals;

Expand All @@ -32,6 +32,8 @@
import org.apache.logging.log4j.categories.Layouts;
import org.apache.logging.log4j.core.Appender;
import org.apache.logging.log4j.core.Logger;
import org.apache.logging.log4j.csv.layout.AbstractCsvLayout;
import org.apache.logging.log4j.csv.layout.CsvParameterLayout;
import org.apache.logging.log4j.junit.LoggerContextRule;
import org.apache.logging.log4j.junit.ThreadContextRule;
import org.apache.logging.log4j.message.ObjectArrayMessage;
Expand Down
2 changes: 1 addition & 1 deletion log4j-jdbc-dbcp2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<log4jParentDir>${basedir}/..</log4jParentDir>
<docLabel>Log4j JDBC DBCP 2 Documentation</docLabel>
<projectDir>/log4j-jdbc-dbcp2</projectDir>
<module.name>org.apache.logging.log4j.jdbc.dbcp2</module.name>
<module.name>org.apache.logging.log4j.dbcp2</module.name>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the license for the specific language governing permissions and
* limitations under the license.
*/
package org.apache.logging.log4j.core.appender.db.jdbc;
package org.apache.logging.log4j.dbcp2.appender;

import java.sql.DriverManager;
import java.sql.SQLException;
Expand All @@ -28,6 +28,8 @@
import org.apache.commons.pool2.ObjectPool;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.apache.logging.log4j.core.Core;
import org.apache.logging.log4j.core.appender.db.jdbc.AbstractDriverManagerConnectionSource;
import org.apache.logging.log4j.core.appender.db.jdbc.ConnectionSource;
import org.apache.logging.log4j.core.config.Property;
import org.apache.logging.log4j.core.config.plugins.Plugin;
import org.apache.logging.log4j.core.config.plugins.PluginBuilderFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
* limitations under the license.
*/

package org.apache.logging.log4j.core.appender.db.jdbc;
package org.apache.logging.log4j.db.jdbc.appender;

import java.sql.Connection;
import java.sql.SQLException;

import org.apache.logging.log4j.core.appender.db.jdbc.JdbcH2TestHelper;
import org.apache.logging.log4j.core.config.Property;
import org.apache.logging.log4j.dbcp2.appender.PoolingDriverConnectionSource;
import org.junit.Assert;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the license.
*/

package org.apache.logging.log4j.core.appender.mom.jeromq;
package org.apache.logging.log4j.jeromq.appender;

import java.io.Serializable;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the license.
*/

package org.apache.logging.log4j.core.appender.mom.jeromq;
package org.apache.logging.log4j.jeromq.appender;

import java.util.Arrays;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the license.
*/

package org.apache.logging.log4j.core.appender.mom.jeromq;
package org.apache.logging.log4j.jeromq.appender;

import java.util.List;
import java.util.concurrent.ExecutorService;
Expand All @@ -27,6 +27,8 @@
import org.apache.logging.log4j.categories.Appenders;
import org.apache.logging.log4j.core.Logger;
import org.apache.logging.log4j.core.util.ExecutorServices;
import org.apache.logging.log4j.jeromq.appender.JeroMqAppender;
import org.apache.logging.log4j.jeromq.appender.JeroMqManager;
import org.apache.logging.log4j.junit.LoggerContextRule;
import org.junit.Assert;
import org.junit.ClassRule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the license.
*/

package org.apache.logging.log4j.core.appender.mom.jeromq;
package org.apache.logging.log4j.jeromq.appender;

import java.util.ArrayList;
import java.util.List;
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2b5ec72

Please sign in to comment.