File tree Expand file tree Collapse file tree 4 files changed +27
-17
lines changed
java/io/javaoperatorsdk/operator/config/runtime
resources/META-INF/services Expand file tree Collapse file tree 4 files changed +27
-17
lines changed Original file line number Diff line number Diff line change 26
26
<groupId >org.slf4j</groupId >
27
27
<artifactId >slf4j-api</artifactId >
28
28
</dependency >
29
- <dependency >
30
- <groupId >com.google.auto.service</groupId >
31
- <artifactId >auto-service</artifactId >
32
- <scope >compile</scope >
33
- </dependency >
34
-
35
29
<dependency >
36
30
<groupId >com.squareup</groupId >
37
31
<artifactId >javapoet</artifactId >
65
59
<dependency >
66
60
<groupId >io.fabric8</groupId >
67
61
<artifactId >crd-generator-apt</artifactId >
68
- <scope >test</scope >
69
62
</dependency >
70
63
<dependency >
71
64
<groupId >org.apache.logging.log4j</groupId >
87
80
</dependency >
88
81
</dependencies >
89
82
90
- </project >
83
+ <build >
84
+ <plugins >
85
+ <plugin >
86
+ <artifactId >maven-compiler-plugin</artifactId >
87
+ <version >${maven-compiler-plugin.version} </version >
88
+ <executions >
89
+ <!-- During compilation we need to disable annotation processors (at least the ControllerConfigurationAnnotationProcessor).
90
+ However, this is needed to compile the tests so let's disable apt just for the compile phase -->
91
+ <execution >
92
+ <id >default-compile</id >
93
+ <phase >compile</phase >
94
+ <goals >
95
+ <goal >compile</goal >
96
+ </goals >
97
+ <configuration >
98
+ <compilerArgs >
99
+ <arg >-proc:none</arg >
100
+ </compilerArgs >
101
+ </configuration >
102
+ </execution >
103
+ </executions >
104
+ </plugin >
105
+ </plugins >
106
+ </build >
107
+
108
+ </project >
Original file line number Diff line number Diff line change 4
4
5
5
import javax .annotation .processing .AbstractProcessor ;
6
6
import javax .annotation .processing .ProcessingEnvironment ;
7
- import javax .annotation .processing .Processor ;
8
7
import javax .annotation .processing .RoundEnvironment ;
9
8
import javax .annotation .processing .SupportedAnnotationTypes ;
10
9
import javax .annotation .processing .SupportedSourceVersion ;
21
20
import io .fabric8 .kubernetes .client .CustomResource ;
22
21
import io .javaoperatorsdk .operator .api .reconciler .Reconciler ;
23
22
24
- import com .google .auto .service .AutoService ;
25
23
import com .squareup .javapoet .TypeName ;
26
24
27
25
import static io .javaoperatorsdk .operator .config .runtime .RuntimeControllerMetadata .RECONCILERS_RESOURCE_PATH ;
28
26
29
27
@ SupportedAnnotationTypes ("io.javaoperatorsdk.operator.api.reconciler.ControllerConfiguration" )
30
28
@ SupportedSourceVersion (SourceVersion .RELEASE_11 )
31
- @ AutoService (Processor .class )
32
29
public class ControllerConfigurationAnnotationProcessor extends AbstractProcessor {
33
30
34
31
private static final Logger log =
Original file line number Diff line number Diff line change
1
+ io.javaoperatorsdk.operator.config.runtime.ControllerConfigurationAnnotationProcessor
Original file line number Diff line number Diff line change 48
48
<log4j .version>2.18.0</log4j .version>
49
49
<mokito .version>4.6.1</mokito .version>
50
50
<commons-lang3 .version>3.12.0</commons-lang3 .version>
51
- <auto-service .version>1.0.1</auto-service .version>
52
51
<compile-testing .version>0.19</compile-testing .version>
53
52
<javapoet .version>1.13.0</javapoet .version>
54
53
<assertj .version>3.23.1</assertj .version>
106
105
<artifactId >commons-lang3</artifactId >
107
106
<version >${commons-lang3.version} </version >
108
107
</dependency >
109
- <dependency >
110
- <groupId >com.google.auto.service</groupId >
111
- <artifactId >auto-service</artifactId >
112
- <version >${auto-service.version} </version >
113
- </dependency >
114
108
<dependency >
115
109
<groupId >com.google.testing.compile</groupId >
116
110
<artifactId >compile-testing</artifactId >
You can’t perform that action at this time.
0 commit comments