Skip to content

Commit a4e0de9

Browse files
committed
use avaje prism (it works, but is not deployed)
1 parent e051806 commit a4e0de9

File tree

3 files changed

+39
-38
lines changed

3 files changed

+39
-38
lines changed

inject-generator/pom.xml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
35
<modelVersion>4.0.0</modelVersion>
46
<parent>
57
<groupId>io.avaje</groupId>
@@ -16,16 +18,17 @@
1618
<groupId>io.avaje</groupId>
1719
<artifactId>avaje-inject</artifactId>
1820
<version>${project.version}</version>
21+
<optional>true</optional>
1922
<scope>provided</scope>
2023
</dependency>
2124

22-
<dependency>
23-
<groupId>com.jolira</groupId>
24-
<artifactId>hickory</artifactId>
25-
<version>1.0.0</version>
26-
<optional>true</optional>
27-
<scope>provided</scope>
28-
</dependency>
25+
<dependency>
26+
<groupId>io.avaje</groupId>
27+
<artifactId>avaje-prisms</artifactId>
28+
<version>1.0-SNAPSHOT</version>
29+
<optional>true</optional>
30+
<scope>provided</scope>
31+
</dependency>
2932

3033
<!-- test dependencies -->
3134
<dependency>
@@ -48,15 +51,15 @@
4851
<configuration>
4952
<source>11</source>
5053
<target>11</target>
51-
<annotationProcessorPaths>
52-
<annotationProcessorPath>
53-
<groupId>com.jolira</groupId>
54-
<artifactId>hickory</artifactId>
55-
<version>1.0.0</version>
56-
</annotationProcessorPath>
57-
</annotationProcessorPaths>
58-
</configuration>
59-
</plugin>
54+
<annotationProcessorPaths>
55+
<annotationProcessorPath>
56+
<groupId>io.avaje</groupId>
57+
<artifactId>avaje-prisms</artifactId>
58+
<version>1.0-SNAPSHOT</version>
59+
</annotationProcessorPath>
60+
</annotationProcessorPaths>
61+
</configuration>
62+
</plugin>
6063

6164
<plugin>
6265
<groupId>org.apache.maven.plugins</groupId>
@@ -69,5 +72,4 @@
6972
</plugin>
7073
</plugins>
7174
</build>
72-
7375
</project>
Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
@net.java.dev.hickory.prism.GeneratePrisms({
2-
@GeneratePrism(value = InjectModule.class, publicAccess = true),
3-
@GeneratePrism(value = Factory.class, publicAccess = true),
4-
@GeneratePrism(value = Singleton.class, publicAccess = true),
5-
@GeneratePrism(value = Component.class, publicAccess = true),
6-
@GeneratePrism(value = Prototype.class, publicAccess = true),
7-
@GeneratePrism(value = Scope.class, publicAccess = true),
8-
@GeneratePrism(value = Qualifier.class, publicAccess = true),
9-
@GeneratePrism(value = Named.class, publicAccess = true),
10-
@GeneratePrism(value = Inject.class, publicAccess = true),
11-
@GeneratePrism(value = Aspect.class, publicAccess = true),
12-
@GeneratePrism(value = Primary.class, publicAccess = true),
13-
@GeneratePrism(value = Secondary.class, publicAccess = true),
14-
@GeneratePrism(value = Proxy.class, publicAccess = true),
15-
@GeneratePrism(value = DependencyMeta.class, publicAccess = true),
16-
@GeneratePrism(value = Bean.class, publicAccess = true),
17-
@GeneratePrism(value = io.avaje.inject.spi.Generated.class, publicAccess = true),
18-
1+
@io.avaje.prism.GeneratePrisms({
2+
@GeneratePrism(value = InjectModule.class),
3+
@GeneratePrism(value = Factory.class),
4+
@GeneratePrism(value = Singleton.class),
5+
@GeneratePrism(value = Component.class),
6+
@GeneratePrism(value = Prototype.class),
7+
@GeneratePrism(value = Scope.class),
8+
@GeneratePrism(value = Qualifier.class),
9+
@GeneratePrism(value = Named.class),
10+
@GeneratePrism(value = Inject.class),
11+
@GeneratePrism(value = Aspect.class),
12+
@GeneratePrism(value = Primary.class),
13+
@GeneratePrism(value = Secondary.class),
14+
@GeneratePrism(value = Proxy.class),
15+
@GeneratePrism(value = DependencyMeta.class),
16+
@GeneratePrism(value = Bean.class),
17+
@GeneratePrism(value = io.avaje.inject.spi.Generated.class),
1918
})
2019
package io.avaje.inject.generator;
2120

@@ -29,9 +28,9 @@
2928
import io.avaje.inject.aop.Aspect;
3029
import io.avaje.inject.spi.DependencyMeta;
3130
import io.avaje.inject.spi.Proxy;
31+
import io.avaje.prism.GeneratePrism;
3232
import jakarta.inject.Inject;
3333
import jakarta.inject.Named;
3434
import jakarta.inject.Qualifier;
3535
import jakarta.inject.Scope;
3636
import jakarta.inject.Singleton;
37-
import net.java.dev.hickory.prism.GeneratePrism;

inject-generator/src/main/java/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
requires java.compiler;
44
requires io.avaje.inject;
5-
requires static hickory;
5+
requires static io.avaje.prism;
66

77
uses io.avaje.inject.spi.Plugin;
88
uses io.avaje.inject.spi.Module;

0 commit comments

Comments
 (0)