Skip to content

Commit 538dcce

Browse files
authored
Merge branch 'master' into isbeanAbsent
2 parents 61cf34f + 77d8d6d commit 538dcce

File tree

13 files changed

+21
-20
lines changed

13 files changed

+21
-20
lines changed

blackbox-aspect/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>avaje-inject-parent</artifactId>
77
<groupId>io.avaje</groupId>
8-
<version>10.5-RC5</version>
8+
<version>10.5-RC6</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

blackbox-aspect/src/main/java/org/example/external/aspect/spi/AspectPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import io.avaje.inject.spi.InjectPlugin;
77
import io.avaje.inject.spi.PluginProvides;
88

9-
@PluginProvides(provides = PluginProvidedClass.class)
9+
@PluginProvides(PluginProvidedClass.class)
1010
public class AspectPlugin implements InjectPlugin {
1111

1212
@Override

blackbox-other/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>avaje-inject-parent</artifactId>
88
<groupId>io.avaje</groupId>
9-
<version>10.5-RC5</version>
9+
<version>10.5-RC6</version>
1010
</parent>
1111

1212
<artifactId>blackbox-other</artifactId>

blackbox-test-inject/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>avaje-inject-parent</artifactId>
77
<groupId>io.avaje</groupId>
8-
<version>10.5-RC5</version>
8+
<version>10.5-RC6</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

inject-aop/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>io.avaje</groupId>
77
<artifactId>avaje-inject-parent</artifactId>
8-
<version>10.5-RC5</version>
8+
<version>10.5-RC6</version>
99
</parent>
1010
<artifactId>avaje-inject-aop</artifactId>
1111
<dependencies>

inject-events/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>io.avaje</groupId>
55
<artifactId>avaje-inject-parent</artifactId>
6-
<version>10.5-RC5</version>
6+
<version>10.5-RC6</version>
77
</parent>
88
<artifactId>avaje-inject-events</artifactId>
99
<name>avaje inject events</name>

inject-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.avaje</groupId>
88
<artifactId>avaje-inject-parent</artifactId>
9-
<version>10.5-RC5</version>
9+
<version>10.5-RC6</version>
1010
</parent>
1111

1212
<artifactId>avaje-inject-generator</artifactId>

inject-generator/src/main/java/io/avaje/inject/generator/ExternalProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private static void addPluginToScope(ScopeInfo defaultScope, TypeElement pluginT
204204
return;
205205
}
206206
var prism = PluginProvidesPrism.getInstanceOn(pluginType);
207-
for (final var provide : prism.provides()) {
207+
for (final var provide : prism.value()) {
208208
defaultScope.pluginProvided(provide.toString());
209209
}
210210
for (final var provide : prism.providesStrings()) {

inject-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>avaje-inject-parent</artifactId>
66
<groupId>io.avaje</groupId>
7-
<version>10.5-RC5</version>
7+
<version>10.5-RC6</version>
88
</parent>
99

1010
<artifactId>avaje-inject-maven-plugin</artifactId>

inject-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>avaje-inject-parent</artifactId>
7-
<version>10.5-RC5</version>
7+
<version>10.5-RC6</version>
88
</parent>
99

1010
<artifactId>avaje-inject-test</artifactId>

inject/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.avaje</groupId>
66
<artifactId>avaje-inject-parent</artifactId>
7-
<version>10.5-RC5</version>
7+
<version>10.5-RC6</version>
88
</parent>
99

1010
<artifactId>avaje-inject</artifactId>

inject/src/main/java/io/avaje/inject/spi/PluginProvides.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
import java.lang.annotation.Target;
77

88
/**
9-
* Registers {@link InjectPlugin} classes for auto-detection.
10-
* <p>
11-
* Plugins can be registered traditionally via service loading etc but
12-
* if we use this {@code @PluginProvides} annotation, then avaje inject
13-
* can ALSO auto-detect the plugin and the types that it provides.
14-
* Otherwise, we need to use Maven/Gradle plugins to perform this detection.
9+
* Registers {@link InjectPlugin} classes for auto-detection with JPMS.
10+
*
11+
* <p>Plugins can be registered with the ServiceLoader manually, but manually registered plugins may cause dependency missing
12+
* errors to consumers using JPMS. (This can be fixed if the consumer uses the inject maven/gradle plugin)
13+
*
14+
* <p>If we use this {@code @PluginProvides} annotation, then avaje inject can auto-detect the
15+
* plugin and the types that it provides when a consumer uses JPMS. This eliminates the need for a plugin consumer to take action.
1516
*/
1617
@Target(ElementType.TYPE)
1718
@Retention(RetentionPolicy.CLASS)
@@ -20,7 +21,7 @@
2021
/**
2122
* The types this plugin provides.
2223
*/
23-
Class<?>[] provides() default {};
24+
Class<?>[] value() default {};
2425

2526
/**
2627
* Fully Qualified Strings of the classes provided. Use when providing generic types

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.avaje</groupId>
55
<artifactId>avaje-inject-parent</artifactId>
6-
<version>10.5-RC5</version>
6+
<version>10.5-RC6</version>
77
<packaging>pom</packaging>
88
<name>avaje inject parent</name>
99
<description>parent pom for avaje inject library</description>
@@ -22,7 +22,7 @@
2222
<nexus.staging.autoReleaseAfterClose>true</nexus.staging.autoReleaseAfterClose>
2323
<surefire.useModulePath>false</surefire.useModulePath>
2424
<argLine>-Dnet.bytebuddy.experimental=true</argLine>
25-
<project.build.outputTimestamp>2024-11-05T07:11:42Z</project.build.outputTimestamp>
25+
<project.build.outputTimestamp>2024-11-05T19:04:52Z</project.build.outputTimestamp>
2626
<!-- VALHALLA-START ___
2727
<maven.compiler.release>23</maven.compiler.release>
2828
<maven.compiler.enablePreview>true</maven.compiler.enablePreview>

0 commit comments

Comments
 (0)