Skip to content

Commit

Permalink
Merge pull request #14908 from zakkak/graal-master-flyway-fix
Browse files Browse the repository at this point in the history
Fix Flyway extension in relation with GraalVM master
  • Loading branch information
gsmet authored Feb 10, 2021
2 parents a930499 + 26bd50c commit 32e834f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import io.quarkus.deployment.builditem.ServiceStartBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeReinitializedClassBuildItem;
import io.quarkus.deployment.recording.RecorderContext;
import io.quarkus.flyway.runtime.FlywayBuildTimeConfig;
import io.quarkus.flyway.runtime.FlywayContainerProducer;
Expand Down Expand Up @@ -276,4 +277,12 @@ private FileSystem initFileSystem(final URI uri) throws IOException {
return FileSystems.newFileSystem(uri, env);
}

/**
* Reinitialize {@code InsertRowLock} to avoid using a cached seed when invoking {@code getNextRandomString}
*/
@BuildStep
public RuntimeReinitializedClassBuildItem reinitInsertRowLock() {
return new RuntimeReinitializedClassBuildItem(
"org.flywaydb.core.internal.database.InsertRowLock");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,9 @@ public boolean isAndroidAvailable() {
return false;
}

@Substitute
public boolean isLog4J2Available() {
return false;
}

}

0 comments on commit 32e834f

Please sign in to comment.