Skip to content

Releases: avaje/avaje-inject

2.0

30 Oct 04:10
Compare
Choose a tag to compare
2.0

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 
}

1.5

29 Oct 22:14
Compare
Choose a tag to compare
1.5

Issues:

#61 - Refactor to use maven multi-module release
#62 - Bump slf4j-api dependency to 1.7.30 (from 1.7.25)

1.4

29 Oct 20:55
Compare
Choose a tag to compare
1.4

Issues:

#60 - Refactor internal IncludeAnnotations to use prefix tests to exclude registering annotations
#58 - Change from logWarn() to logDebug() in inject-generator for messages that really only need to be debug
#57 - Refactor remove unused code (from internal DContextEntry etc)

1.3

27 Oct 23:27
Compare
Choose a tag to compare
1.3

Issues:

#56 - [bug] Exclude javax.annotation.processing.Generated from being registered
#55 - [bug] When using a Nested interface (canonical name different to name) then implementation not found

1.2

26 Oct 21:26
Compare
Choose a tag to compare
1.2

Issues:

#54 [Enhancement] - Add support for request scope injection for Jex Context
#52 [Refactor] - Make javax.annotation-api dependency optional

1.1

09 Sep 12:08
Compare
Choose a tag to compare
1.1

Issues:

#51 Detect circular dependency and fail compile with nice error (Was BeanContextFactory.createContext calls builders in the wrong order)

1.0

08 Sep 00:45
Compare
Choose a tag to compare
1.0

Issues:

#49 - Remove deprecated BeanContextBuilder.load() method, migrate to build()
#48 - Remove deprecated BootContext migrate to BeanContextBuilder

0.9

28 Aug 00:50
Compare
Choose a tag to compare
0.9

Issues:

#50 - Change package to io.avaje.inject and change maven groupId and artifactId to io.avaje:avaje-inject

New

    <dependency>
      <groupId>io.avaje</groupId>
      <artifactId>avaje-inject</artifactId>
    </dependency>

    <!-- java annotation processors -->

    <dependency>
      <groupId>io.avaje</groupId>
      <artifactId>avaje-inject-generator</artifactId>
      <scope>provided</scope>
    </dependency>

dinject-2.3

26 Aug 12:27
Compare
Choose a tag to compare

#47 - Remove use of Java8 @generated and instead just use javax.annotation.processing.Generated if java9+
#46 - ENH: Add support for request scoped @Inject for Javalin Context and Helidon ServerRequest and ServerResponse. enhancement

dinject-2.2

23 Jul 05:16
Compare
Choose a tag to compare

Revert breaking change from 2.1

#45 - Move annotations back into io.dinject package (remove separate dinject-annotations module)