Releases: Coreoz/Plume
Releases · Coreoz/Plume
2.0.1
2.0.0
Changelog
- Java 9+ support
- Update dependencies
- Drop hibernate support
Upgrade instructions from 1.x to 2.x
- In Jersey configuration, change
JacksonJaxbJsonProvider
toWsJacksonJsonProvider
- In Jersey configuration, if needed, change
register(LoggingFilter.class)
toregister(LoggingFeature.class)
- Change
org.simplejavamail.mailer
toorg.simplejavamail.api
for imports - Other Simple Mail Java updates instructions can be found at http://www.simplejavamail.org/migration-notes-6.0.0.html
- In configuration files (ie
application.conf
etc.), colons must be escaped (for example00:30
will become"00:30"
) - In the pom.xml file, update maven-compiler-plugin version to
3.8.1
- Update dependencies that relies on old Jackson version (retrofit
converter-jackson
etc.) - The new explicit access control mechanism should be configured to avoid easily detectable API leakage mistakes
- If you are using Plume Scheduler, you can enable the long running jobs detection mechanism
- If you are using Plume Admin, you will need to follow the specific upgrade instructions
- In
QuerydslGenerator
, change:
private static Type<?> classType(Class<?> classType) {
try {
return (Type<?>) classType.newInstance();
} catch (InstantiationException | IllegalAccessException e) {
throw new RuntimeException(e);
}
}
to
private static Type<?> classType(Class<?> classType) {
try {
return (Type<?>) classType.getConstructor().newInstance();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
- If Flyway is used, Flyway startup code needs to be updated from:
Flyway flyway = new Flyway();
flyway.setDataSource(dataSource);
flyway.setOutOfOrder(true);
flyway.migrate();
to
Flyway
.configure()
.dataSource(dataSource)
.outOfOrder(true)
.load()
.migrate();
JDK9+
To use the lastest versions of the JDK, add these dependencies:
<!-- jdk9+ non included Java libraries required for Jersey -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>javax.activation-api</artifactId>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</dependency>