3

For some reason my 4.0.2 based code doesn't produce rx-fied service versions with codegen.

Both VertxEBProxy and VertxProxyHandler classes are created as expected though.

Here is a demo project: https://github.com/ashertarno/playground

Please see the required dependencies below:

implementation "io.vertx:vertx-core:$vertxVersion"
implementation "io.vertx:vertx-rx-java2:$vertxVersion"
implementation "io.vertx:vertx-codegen:$vertxVersion"
implementation "io.vertx:vertx-service-proxy:$vertxVersion"
implementation "io.vertx:vertx-rx-java2-gen:$vertxVersion"

annotationProcessor "io.vertx:vertx-codegen:$vertxVersion:processor"
annotationProcessor "io.vertx:vertx-service-proxy:$vertxVersion"

What would be missing in this case?

rbento
  • 9,919
  • 3
  • 61
  • 61
atarno
  • 329
  • 1
  • 3
  • 14

1 Answers1

2

You have to add io.vertx:vertx-rx-java2-gen:$vertxVersion as an annotationProcessor and testAnnotationProcessor. After I did that, I had the classes get generated:

./build/classes/java/main/me/tarno/playground/reactivex/BaseServiceProxy.class
./build/classes/java/test/me/tarno/playground/reactivex/TestProxy.class
dano
  • 91,354
  • 19
  • 222
  • 219
  • 1
    nice catch. actually i tried this, but now i see that i stupidly copy pasted : processor to it, that's why it didn't work. – atarno Mar 09 '21 at 22:00