File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ Implemented with and without Spring Boot support. The two samples share the comm
53
53
* * mysql-schema* : Operator managing schemas in a MySQL database
54
54
* * spring-boot-plain/auto-config* : Samples showing integration with Spring Boot.
55
55
56
- Add [ dependency] ( https://search.maven.org/search?q=a:operator-framework ) to your project:
56
+ Add [ dependency] ( https://search.maven.org/search?q=a:operator-framework ) to your project with Maven :
57
57
58
58
``` xml
59
59
<dependency >
@@ -63,7 +63,17 @@ Add [dependency](https://search.maven.org/search?q=a:operator-framework) to your
63
63
</dependency >
64
64
```
65
65
66
- Main method initializing the Operator and registering a controller.
66
+ Or alternatively with Gradle, which also requires declaring the SDK as an annotation processor to
67
+ generate the mappings between controllers and custom resource classes:
68
+
69
+ ``` groovy
70
+ dependencies {
71
+ implementation "io.javaoperatorsdk:operator-framework:${javaOperatorVersion}"
72
+ annotationProcessor "io.javaoperatorsdk:operator-framework:${javaOperatorVersion}"
73
+ }
74
+ ```
75
+
76
+ Once you've added the dependency, define a main method initializing the Operator and registering a controller.
67
77
68
78
``` java
69
79
public class Runner {
You can’t perform that action at this time.
0 commit comments