Skip to content

Commit b38d2ab

Browse files
committed
migrate to java 11
1 parent 7bc9033 commit b38d2ab

File tree

17 files changed

+65
-62
lines changed

17 files changed

+65
-62
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: "Build with ${{ matrix.version }}"
1515
strategy:
1616
matrix:
17-
version: [ 17 ]
17+
version: [ 11 ]
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v3

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Set up Java
1212
uses: actions/setup-java@v3
1313
with:
14-
java-version: '17'
14+
java-version: '11'
1515
distribution: 'temurin'
1616
- name: Publish package
1717
env:

.sdkmanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
java=17.0.4-tem
1+
java=11.0
22
maven=3.9.1

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ by using [Testcontainers](https://www.testcontainers.org/) and applying database
2323
<project>
2424
<properties>
2525
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
26-
<maven.compiler.source>17</maven.compiler.source>
27-
<maven.compiler.target>17</maven.compiler.target>
26+
<maven.compiler.source>11</maven.compiler.source>
27+
<maven.compiler.target>11</maven.compiler.target>
2828
<testcontainers.version>1.18.3</testcontainers.version>
29-
<testcontainers-jooq-codegen-maven-plugin.version>0.0.2</testcontainers-jooq-codegen-maven-plugin.version>
30-
<jooq.version>3.18.3</jooq.version>
29+
<testcontainers-jooq-codegen-maven-plugin.version>0.0.11</testcontainers-jooq-codegen-maven-plugin.version>
30+
<jooq.version>3.16.6</jooq.version>
3131
<postgresql.version>42.6.0</postgresql.version>
3232
</properties>
3333

examples/mariadb-flyway-example/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
<version>1.0-SNAPSHOT</version>
1111

1212
<properties>
13-
<maven.compiler.source>17</maven.compiler.source>
14-
<maven.compiler.target>17</maven.compiler.target>
13+
<maven.compiler.source>11</maven.compiler.source>
14+
<maven.compiler.target>11</maven.compiler.target>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1616
<testcontainers.version>1.18.3</testcontainers.version>
17-
<testcontainers-jooq-codegen-maven-plugin.version>0.0.2</testcontainers-jooq-codegen-maven-plugin.version>
18-
<jooq.version>3.18.3</jooq.version>
17+
<testcontainers-jooq-codegen-maven-plugin.version>0.0.11</testcontainers-jooq-codegen-maven-plugin.version>
18+
<jooq.version>3.16.6</jooq.version>
1919
<mariadb-java-client.version>3.1.2</mariadb-java-client.version>
2020
</properties>
2121

examples/mysql-flyway-example/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
<version>1.0-SNAPSHOT</version>
1111

1212
<properties>
13-
<maven.compiler.source>17</maven.compiler.source>
14-
<maven.compiler.target>17</maven.compiler.target>
13+
<maven.compiler.source>11</maven.compiler.source>
14+
<maven.compiler.target>11</maven.compiler.target>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1616
<testcontainers.version>1.18.3</testcontainers.version>
17-
<testcontainers-jooq-codegen-maven-plugin.version>0.0.2</testcontainers-jooq-codegen-maven-plugin.version>
18-
<jooq.version>3.18.3</jooq.version>
17+
<testcontainers-jooq-codegen-maven-plugin.version>0.0.11</testcontainers-jooq-codegen-maven-plugin.version>
18+
<jooq.version>3.16.6</jooq.version>
1919
<mysql-connector-j.version>8.0.32</mysql-connector-j.version>
2020
</properties>
2121

examples/postgres-flyway-example/pom.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
<version>1.0-SNAPSHOT</version>
1111

1212
<properties>
13-
<maven.compiler.source>17</maven.compiler.source>
14-
<maven.compiler.target>17</maven.compiler.target>
13+
<maven.compiler.source>11</maven.compiler.source>
14+
<maven.compiler.target>11</maven.compiler.target>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1616
<testcontainers.version>1.18.3</testcontainers.version>
17-
<testcontainers-jooq-codegen-maven-plugin.version>0.0.2
17+
<testcontainers-jooq-codegen-maven-plugin.version>0.0.11
1818
</testcontainers-jooq-codegen-maven-plugin.version>
19-
<jooq.version>3.18.3</jooq.version>
19+
<jooq.version>3.16.6</jooq.version>
2020
<postgresql.version>42.6.0</postgresql.version>
2121
</properties>
2222

@@ -63,7 +63,8 @@
6363
<flyway>
6464
<locations>
6565
filesystem:src/main/resources/db/migration/postgres,
66-
filesystem:src/main/resources/db/migration/postgresql
66+
filesystem:src/main/resources/db/migration/postgresql,
67+
filesystem:src/main/resources/db/migration
6768
</locations>
6869
</flyway>
6970
<!-- Generator parameters -->

examples/postgres-liquibase-example/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
<version>1.0-SNAPSHOT</version>
1111

1212
<properties>
13-
<maven.compiler.source>17</maven.compiler.source>
14-
<maven.compiler.target>17</maven.compiler.target>
13+
<maven.compiler.source>11</maven.compiler.source>
14+
<maven.compiler.target>11</maven.compiler.target>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1616
<testcontainers.version>1.18.3</testcontainers.version>
17-
<testcontainers-jooq-codegen-maven-plugin.version>0.0.2</testcontainers-jooq-codegen-maven-plugin.version>
18-
<jooq.version>3.18.3</jooq.version>
17+
<testcontainers-jooq-codegen-maven-plugin.version>0.0.11</testcontainers-jooq-codegen-maven-plugin.version>
18+
<jooq.version>3.16.6</jooq.version>
1919
<postgresql.version>42.6.0</postgresql.version>
2020
</properties>
2121

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<modelVersion>4.0.0</modelVersion>
77

88
<groupId>org.testcontainers</groupId>
9-
<artifactId>testcontainers-jooq-codegen-maven-plugin</artifactId>
10-
<version>0.0.2</version>
9+
<artifactId>testcontainers-jooq-codegen-maven-plugin-java11</artifactId>
10+
<version>0.0.11</version>
1111
<packaging>maven-plugin</packaging>
12-
<name>testcontainers-jooq-codegen-maven-plugin</name>
13-
<description>jOOQ code generator using Testcontainers</description>
14-
<url>https://github.com/testcontainers/testcontainers-jooq-codegen-maven-plugin</url>
12+
<name>testcontainers-jooq-codegen-maven-plugin-java11</name>
13+
<description>jOOQ code generator using Testcontainers downgraded to support java 11</description>
14+
<url>https://github.com/Donutellko/testcontainers-jooq-codegen-maven-plugin-java11</url>
1515
<inceptionYear>2023</inceptionYear>
1616

1717
<licenses>
@@ -46,7 +46,7 @@
4646
<properties>
4747
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4848
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
49-
<java.version>17</java.version>
49+
<java.version>11</java.version>
5050
<spotless-maven-plugin.version>2.36.0</spotless-maven-plugin.version>
5151
<maven-plugin-api.version>3.9.0</maven-plugin-api.version>
5252
<maven-plugin-annotations.version>3.8.1</maven-plugin-annotations.version>
@@ -61,7 +61,7 @@
6161
<flyway-core.version>9.16.3</flyway-core.version>
6262
<liquibase-core.version>4.22.0</liquibase-core.version>
6363
<junit-jupiter.version>5.9.3</junit-jupiter.version>
64-
<jooq.version>3.18.3</jooq.version>
64+
<jooq.version>3.16.6</jooq.version>
6565
<junit.version>4.13.2</junit.version>
6666
<postgresql.version>42.6.0</postgresql.version>
6767
<mysql-connector-j.version>8.0.32</mysql-connector-j.version>

src/main/java/org/testcontainers/jooq/codegen/Plugin.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,8 @@ private void doExecute(URLClassLoader mavenClassloader, TargetDatasource targetD
8484
final var oFlyway = Optional.<MigrationRunner>ofNullable(flyway);
8585
final var oLiquibase = Optional.<MigrationRunner>ofNullable(liquibase);
8686
if (bothPresent(oFlyway, oLiquibase)) {
87-
getLog().error(
88-
"""
89-
Incorrect configuration is provided.Plugin supports only one migration tool.
90-
Please remain only flyway or liquibase.""");
87+
getLog().error("Incorrect configuration is provided.Plugin supports only one migration tool."
88+
+ "\nPlease remain only flyway or liquibase.");
9189
throw new MojoExecutionException(
9290
"Both configurations for migration tool are provided, pick either flyway or liquibase");
9391
}

0 commit comments

Comments
 (0)