Skip to content

Releases: Coreoz/Plume

2.0.1

09 Oct 18:06
Compare
Choose a tag to compare

Changelog

  • Add required simple mail java batch dependency for plume mail

2.0.0

13 Apr 19:05
Compare
Choose a tag to compare

Changelog

  • Java 9+ support
  • Update dependencies
  • Drop hibernate support

Upgrade instructions from 1.x to 2.x

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>