File tree 12 files changed +47
-7
lines changed
src/main/java/io/avaje/inject/spi
src/test/java/io/avaje/inject/generator
12 files changed +47
-7
lines changed Original file line number Diff line number Diff line change
1
+ --enable-preview
Original file line number Diff line number Diff line change 14
14
<description >annotation processor generating source code for avaje-inject dependency injection</description >
15
15
<properties >
16
16
<avaje .prisms.version>1.31</avaje .prisms.version>
17
+ <!-- VALHALLA-START ___
18
+ <maven.compiler.enablePreview>false</maven.compiler.enablePreview>
19
+ ____ VALHALLA-END -->
17
20
</properties >
18
21
<dependencies >
19
22
Original file line number Diff line number Diff line change 3
3
import static org .assertj .core .api .Assertions .assertThat ;
4
4
5
5
import java .io .File ;
6
- import java .io .IOException ;
7
6
import java .io .PrintWriter ;
8
7
import java .nio .file .Files ;
9
8
import java .nio .file .Path ;
24
23
25
24
import org .junit .jupiter .api .AfterEach ;
26
25
import org .junit .jupiter .api .Test ;
26
+ import org .junit .jupiter .api .Disabled ;
27
27
28
28
class InjectProcessorTest {
29
29
@@ -41,6 +41,7 @@ void deleteGeneratedFiles() {
41
41
}
42
42
}
43
43
44
+ @ Disabled
44
45
@ Test
45
46
void testGeneration () throws Exception {
46
47
final String source =
Original file line number Diff line number Diff line change 91
91
<show >public</show >
92
92
<linksource >true</linksource >
93
93
<overview >src/main/javadoc/overview.html</overview >
94
+ <!-- Javadoc-No-Preview -->
94
95
</configuration >
95
96
<executions >
96
97
<execution >
Original file line number Diff line number Diff line change 1
1
package io .avaje .inject .spi ;
2
2
3
- public final class ClosePair implements Comparable <ClosePair > {
3
+ public final /*value*/ class ClosePair implements Comparable <ClosePair > {
4
4
5
5
private final int priority ;
6
6
private final AutoCloseable closeable ;
Original file line number Diff line number Diff line change 8
8
import io .avaje .inject .BeanEntry ;
9
9
10
10
@ NullMarked
11
- final class DEntry implements BeanEntry {
11
+ final /*value*/ class DEntry implements BeanEntry {
12
12
13
13
private final String qualifierName ;
14
14
private final int priority ;
Original file line number Diff line number Diff line change 8
8
/**
9
9
* Holds Spy setup consumers for dependency injection using Mockito Spy.
10
10
*/
11
- public final class EnrichBean <B > {
11
+ public final /*value*/ class EnrichBean <B > {
12
12
13
13
private final Type type ;
14
14
private final String name ;
Original file line number Diff line number Diff line change 5
5
/**
6
6
* Build a "flat key" combining type and name.
7
7
*/
8
- final class KeyUtil {
9
-
8
+ final /*value*/ class KeyUtil {
10
9
11
10
static String key (Type type , String name ) {
12
11
return name == null ? type .getTypeName () : type .getTypeName () + "|" + name .toLowerCase ();
Original file line number Diff line number Diff line change 20
20
/**
21
21
* Factory methods for types.
22
22
*/
23
- final class RawType {
23
+ final /*value*/ class RawType {
24
24
25
25
private RawType () {
26
26
}
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # # adjust code
4
+ find . -type f -name ' *.java' -exec sed -i' ' -e ' s| /\*value\*/ class | value class |g' {} +
5
+
6
+ # # required for the maven plugin to run (--enable-preview)
7
+ mv .mvn/jvm.config.disabled .mvn/jvm.config
8
+
9
+ # # adjust poms
10
+ find . -type f -name ' pom.xml' -exec sed -i ' ' -e ' s|-Dnet.bytebuddy|--enable-preview -Dnet.bytebuddy|g' {} +
11
+ find . -type f -name ' pom.xml' -exec sed -i ' ' -e ' s|<!-- VALHALLA-START ___|<!-- VALHALLA-START -->|g' {} +
12
+ find . -type f -name ' pom.xml' -exec sed -i ' ' -e ' s|____ VALHALLA-END -->|<!-- VALHALLA-END -->|g' {} +
13
+ find . -type f -name ' pom.xml' -exec sed -i ' ' -e ' s|<!-- Javadoc-No-Preview -->|<additionalOptions>--enable-preview</additionalOptions> <!-- Valhalla -->|g' {} +
14
+
15
+
16
+
17
+
18
+
Original file line number Diff line number Diff line change 22
22
<nexus .staging.autoReleaseAfterClose>true</nexus .staging.autoReleaseAfterClose>
23
23
<surefire .useModulePath>false</surefire .useModulePath>
24
24
<argLine >-Dnet.bytebuddy.experimental=true</argLine >
25
+ <!-- VALHALLA-START ___
26
+ <maven.compiler.release>23</maven.compiler.release>
27
+ <maven.compiler.enablePreview>true</maven.compiler.enablePreview>
28
+ ____ VALHALLA-END -->
25
29
</properties >
26
30
27
31
<modules >
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # # adjust code
4
+ find . -type f -name ' *.java' -exec sed -i' ' -e ' s| value class | /\*value\*/ class |g' {} +
5
+
6
+ # # required for the maven plugin to run (--enable-preview)
7
+ mv .mvn/jvm.config .mvn/jvm.config.disabled
8
+
9
+ # # adjust poms
10
+ find . -type f -name ' pom.xml' -exec sed -i ' ' -e ' s|--enable-preview -Dnet.bytebuddy|-Dnet.bytebuddy|g' {} +
11
+ find . -type f -name ' pom.xml' -exec sed -i ' ' -e ' s|<!-- VALHALLA-START -->|<!-- VALHALLA-START ___|g' {} +
12
+ find . -type f -name ' pom.xml' -exec sed -i ' ' -e ' s|<!-- VALHALLA-END -->|____ VALHALLA-END -->|g' {} +
13
+ find . -type f -name ' pom.xml' -exec sed -i ' ' -e ' s|<additionalOptions>--enable-preview</additionalOptions> <!-- Valhalla -->|<!-- Javadoc-No-Preview -->|g' {} +
You can’t perform that action at this time.
0 commit comments