Running gradle commands fail with javax.annotation does not exist

1.6k Views Asked by At

Running tests and building from Intelij works fine. But, when I try to build or test an application from the command line I'm getting this error

error: package javax.annotation does not exist
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-27T18:20:07.986+03:00")

I'm using the gradle v 6.8 wrapper. JDK is AdoptOpenJDK 1.8

0

There are 0 best solutions below