Skip to content

2.0

Compare
Choose a tag to compare
@rbygrave rbygrave released this 30 Oct 04:10
· 1523 commits to master since this release

2.0 Bump

This release supports java module system using a Multi-Release jar. Code compiled to Java 8 with an additional /META-INF/versions/9/module-info.class as Java 9.

Additionally note that the io.avaje.inject.core package has been renamed to be spi but this should only require a clean rebuild / clean re-generation of the di source code.


#53 - Support java module system (jpms) via Multi-Release jar with module-info - [was Minimum Java 11...]
#59 - Add jpms module-info using Multi-Release jar refactor
#65 - Generate _di$BeanContextFactory rather than _di$Factory ... (nicer with explicit java module use)
#64 - Skip import on interface when no package
#63 - Refactor rename package io.avaje.inject.core to io.avaje.inject.spi


Example module-info for people using java modules is:

import io.avaje.inject.spi.BeanContextFactory;

module example {

  requires java.annotation;
  requires io.avaje.inject;

  provides BeanContextFactory with org.example._DI$BeanContextFactory;

  // where _DI$BeanContextFactory is the generated source code 
}