Skip to content

Commit f9cf984

Browse files
committed
build: remove annotation processor warning
- add them manually to javac
1 parent b7a9c2b commit f9cf984

File tree

5 files changed

+73
-31
lines changed

5 files changed

+73
-31
lines changed

modules/jooby-avaje-jsonb/pom.xml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,23 @@
6868
<version>1.37</version>
6969
<scope>test</scope>
7070
</dependency>
71-
72-
<dependency>
73-
<groupId>org.openjdk.jmh</groupId>
74-
<artifactId>jmh-generator-annprocess</artifactId>
75-
<version>1.37</version>
76-
<scope>test</scope>
77-
</dependency>
7871
</dependencies>
72+
73+
<build>
74+
<plugins>
75+
<plugin>
76+
<artifactId>maven-compiler-plugin</artifactId>
77+
<version>${maven-compiler-plugin.version}</version>
78+
<configuration>
79+
<annotationProcessorPaths>
80+
<path>
81+
<groupId>org.openjdk.jmh</groupId>
82+
<artifactId>jmh-generator-annprocess</artifactId>
83+
<version>1.37</version>
84+
</path>
85+
</annotationProcessorPaths>
86+
</configuration>
87+
</plugin>
88+
</plugins>
89+
</build>
7990
</project>

modules/jooby-jackson/pom.xml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,23 @@
7171
<version>1.37</version>
7272
<scope>test</scope>
7373
</dependency>
74-
75-
<dependency>
76-
<groupId>org.openjdk.jmh</groupId>
77-
<artifactId>jmh-generator-annprocess</artifactId>
78-
<version>1.37</version>
79-
<scope>test</scope>
80-
</dependency>
81-
8274
</dependencies>
75+
76+
<build>
77+
<plugins>
78+
<plugin>
79+
<artifactId>maven-compiler-plugin</artifactId>
80+
<version>${maven-compiler-plugin.version}</version>
81+
<configuration>
82+
<annotationProcessorPaths>
83+
<path>
84+
<groupId>io.jstach</groupId>
85+
<artifactId>jstachio-apt</artifactId>
86+
<version>${jstachio.version}</version>
87+
</path>
88+
</annotationProcessorPaths>
89+
</configuration>
90+
</plugin>
91+
</plugins>
92+
</build>
8393
</project>

modules/jooby-jstachio/pom.xml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424
<artifactId>jstachio</artifactId>
2525
</dependency>
2626

27-
<dependency>
28-
<groupId>io.jstach</groupId>
29-
<artifactId>jstachio-apt</artifactId>
30-
<scope>provided</scope>
31-
<optional>true</optional>
32-
</dependency>
33-
3427
<!-- Test dependencies -->
3528
<dependency>
3629
<groupId>org.junit.jupiter</groupId>
@@ -46,4 +39,22 @@
4639
</dependency>
4740
</dependencies>
4841

42+
<build>
43+
<plugins>
44+
<plugin>
45+
<artifactId>maven-compiler-plugin</artifactId>
46+
<version>${maven-compiler-plugin.version}</version>
47+
<configuration>
48+
<annotationProcessorPaths>
49+
<path>
50+
<groupId>io.jstach</groupId>
51+
<artifactId>jstachio-apt</artifactId>
52+
<version>${jstachio.version}</version>
53+
</path>
54+
</annotationProcessorPaths>
55+
</configuration>
56+
</plugin>
57+
</plugins>
58+
</build>
59+
4960
</project>

modules/jooby-netty/pom.xml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
<artifactId>mockito-core</artifactId>
7676
<scope>test</scope>
7777
</dependency>
78+
7879
<dependency>
7980
<groupId>org.slf4j</groupId>
8081
<artifactId>slf4j-simple</artifactId>
@@ -88,16 +89,25 @@
8889
<version>1.37</version>
8990
<scope>test</scope>
9091
</dependency>
91-
92-
<dependency>
93-
<groupId>org.openjdk.jmh</groupId>
94-
<artifactId>jmh-generator-annprocess</artifactId>
95-
<version>1.37</version>
96-
<scope>test</scope>
97-
</dependency>
98-
9992
</dependencies>
10093

94+
<build>
95+
<plugins>
96+
<plugin>
97+
<artifactId>maven-compiler-plugin</artifactId>
98+
<version>${maven-compiler-plugin.version}</version>
99+
<configuration>
100+
<annotationProcessorPaths>
101+
<path>
102+
<groupId>org.openjdk.jmh</groupId>
103+
<artifactId>jmh-generator-annprocess</artifactId>
104+
<version>1.37</version>
105+
</path>
106+
</annotationProcessorPaths>
107+
</configuration>
108+
</plugin>
109+
</plugins>
110+
</build>
101111
<profiles>
102112
<!-- Netty: -->
103113
<profile>

modules/jooby-openapi/src/test/kotlin/kt/i3705/C3705.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class C3705 {
2222

2323
class BeanScope {
2424
fun <T> get(type: Class<T>): T {
25-
return type.newInstance()
25+
return type.getDeclaredConstructor().newInstance()
2626
}
2727
}
2828

0 commit comments

Comments
 (0)