Migration is a plugin now

This commit is contained in:
Roland Praml committed 2022-01-04 10:21:48 +01:00
1 parent a0d56529a1
commit f045d5e1b0
7 files changed
+36 -475

No files matched your search

+1 -72
View File
@@ -13,13 +13,6 @@
<dependencies>
<!-- <dependency>
<groupId>io.ebean</groupId>
<artifactId>ebean-ddl-runner</artifactId>
<version>1.2</version>
</dependency> -->
<dependency>
<groupId>io.ebean</groupId>
<artifactId>ebean-migration-auto</artifactId>
@@ -38,74 +31,10 @@
<artifactId>ebean-migration</artifactId>
<version>12.12.1</version>
</dependency>
<!--
<dependency>
<groupId>io.ebean</groupId>
<artifactId>ebean-migration</artifactId>
<version>12.12.1</version>
</dependency>
<dependency>
<groupId>io.ebean</groupId>
<artifactId>ebean-core-type</artifactId>
<version>12.14.1-FOC1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
needed for java 11+
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>
test dependencies
<dependency>
<groupId>io.avaje</groupId>
<artifactId>junit</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.ebean</groupId>
<artifactId>ebean-datasource</artifactId>
<version>${ebean-datasource.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
<scope>test</scope>
</dependency> -->
</dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.ebean</groupId>
<artifactId>ebean-maven-plugin</artifactId>
<version>${ebean-maven-plugin.version}</version>
<executions>
<execution>
<id>test</id>
<phase>process-test-classes</phase>
<configuration>
<transformArgs>debug=0</transformArgs>
</configuration>
<goals>
<goal>testEnhance</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.repaint.maven</groupId>
<artifactId>tiles-maven-plugin</artifactId>
@@ -43,6 +43,8 @@ public class DbRunMigrationPlugin implements Plugin {
@Override
public void start() {
migrationRunner.run(server.dataSource());
if (migrationRunner != null) {
migrationRunner.run(server.dataSource());
}
}
}
@@ -0,0 +1,11 @@
open module io.ebean.dbmigration.runner {
provides io.ebean.plugin.Plugin with io.ebeaninternal.dbmigration.run.DbRunMigrationPlugin;
requires transitive io.ebean.ddl.runner;
requires transitive io.ebean.core;
requires transitive java.xml.bind;
requires io.ebean.core.type;
requires io.ebean.migration;
}