Skip to content

Commit

Permalink
#32 - Repackage from io.ebean.dbmigration to io.ebean.migration (in p…
Browse files Browse the repository at this point in the history
…reparation for java 9 modules)
  • Loading branch information
rbygrave committed Sep 8, 2017
1 parent ed4c91a commit e7cbf29
Show file tree
Hide file tree
Showing 33 changed files with 71 additions and 55 deletions.
19 changes: 17 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<modelVersion>4.0.0</modelVersion>

<groupId>io.ebean</groupId>
<artifactId>ebean-dbmigration</artifactId>
<version>10.1.12-SNAPSHOT</version>
<artifactId>ebean-migration</artifactId>
<version>10.2.1-SNAPSHOT</version>

<parent>
<groupId>org.avaje</groupId>
Expand Down Expand Up @@ -74,4 +74,19 @@

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
<configuration>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration;
package io.ebean.migration;

import java.sql.Connection;
import java.sql.SQLException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration;
package io.ebean.migration;

/**
* Known database platform names.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration;
package io.ebean.migration;

import java.sql.Connection;
import java.sql.DriverManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration;
package io.ebean.migration;

public class MigrationException extends RuntimeException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.ebean.dbmigration;
package io.ebean.migration;

import io.ebean.dbmigration.runner.LocalMigrationResource;
import io.ebean.dbmigration.runner.LocalMigrationResources;
import io.ebean.dbmigration.runner.MigrationTable;
import io.ebean.dbmigration.runner.MigrationSchema;
import io.ebean.dbmigration.util.JdbcClose;
import io.ebean.migration.runner.LocalMigrationResource;
import io.ebean.migration.runner.LocalMigrationResources;
import io.ebean.migration.runner.MigrationTable;
import io.ebean.migration.runner.MigrationSchema;
import io.ebean.migration.util.JdbcClose;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration;
package io.ebean.migration;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.ddl;
package io.ebean.migration.ddl;

import java.io.BufferedReader;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.ddl;
package io.ebean.migration.ddl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.ddl;
package io.ebean.migration.ddl;

public class DdlRunnerException extends RuntimeException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import java.io.BufferedReader;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import io.ebean.dbmigration.MigrationVersion;
import io.ebean.migration.MigrationVersion;
import org.avaje.classpath.scanner.Resource;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import io.ebean.dbmigration.MigrationConfig;
import io.ebean.dbmigration.MigrationVersion;
import io.ebean.migration.MigrationConfig;
import io.ebean.migration.MigrationVersion;
import org.avaje.classpath.scanner.Resource;
import org.avaje.classpath.scanner.ResourceFilter;
import org.avaje.classpath.scanner.Scanner;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import io.ebean.dbmigration.DbPlatformNames;
import io.ebean.dbmigration.util.JdbcClose;
import io.ebean.migration.DbPlatformNames;
import io.ebean.migration.util.JdbcClose;

import java.sql.Connection;
import java.sql.PreparedStatement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import io.ebean.dbmigration.MigrationConfig;
import io.ebean.dbmigration.util.JdbcClose;
import io.ebean.migration.MigrationConfig;
import io.ebean.migration.util.JdbcClose;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import io.ebean.dbmigration.ddl.DdlRunner;
import io.ebean.migration.ddl.DdlRunner;

import java.sql.Connection;
import java.sql.SQLException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import io.ebean.dbmigration.MigrationConfig;
import io.ebean.dbmigration.MigrationException;
import io.ebean.dbmigration.util.IOUtils;
import io.ebean.dbmigration.util.JdbcClose;
import io.ebean.migration.MigrationConfig;
import io.ebean.migration.MigrationException;
import io.ebean.migration.util.IOUtils;
import io.ebean.migration.util.JdbcClose;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.util;
package io.ebean.migration.util;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package io.ebean.dbmigration.util;
package io.ebean.migration.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0
Automatic-Module-Name: io.ebean.migration
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration;
package io.ebean.migration;

import org.testng.annotations.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.ebean.dbmigration;
package io.ebean.migration;

import io.ebean.dbmigration.runner.LocalMigrationResource;
import io.ebean.migration.runner.LocalMigrationResource;
import org.avaje.datasource.DataSourceConfig;
import org.avaje.datasource.DataSourcePool;
import org.avaje.datasource.Factory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration;
package io.ebean.migration;

import org.testng.annotations.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration;
package io.ebean.migration;

import org.testng.annotations.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.ddl;
package io.ebean.migration.ddl;

import java.io.StringReader;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import org.testng.annotations.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import org.testng.annotations.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import io.ebean.dbmigration.MigrationConfig;
import io.ebean.migration.MigrationConfig;
import org.testng.annotations.Test;

import java.sql.Connection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import io.ebean.dbmigration.MigrationConfig;
import io.ebean.dbmigration.MigrationVersion;
import io.ebean.migration.MigrationConfig;
import io.ebean.migration.MigrationVersion;
import org.testng.annotations.Test;

import static org.assertj.core.api.Assertions.assertThat;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import org.assertj.core.data.MapEntry;
import org.testng.annotations.Test;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.ebean.dbmigration.runner;
package io.ebean.migration.runner;

import org.testng.annotations.Test;

Expand Down

0 comments on commit e7cbf29

Please sign in to comment.