dekorateio / dekorate

Tools for generating Kubernetes related manifests.
Apache License 2.0
479 stars 103 forks source link

How to remove such warnings: Supported source version 'RELEASE_8' #524

Open akuma8 opened 4 years ago

akuma8 commented 4 years ago

I use JDK11 and have these warnings at startup. Is there a way to solve them?

Warning:java: Supported source version 'RELEASE_8' from annotation processor 'io.dekorate.apt.DekorateProcessor' less than -source '11'
Warning:java: Supported source version 'RELEASE_8' from annotation processor 'io.dekorate.docker.apt.DockerAnnotationProcessor' less than -source '11'
Warning:java: No SupportedSourceVersion annotation found on io.dekorate.option.apt.GeneratorOptionsProcessor, returning RELEASE_6.
Warning:java: Supported source version 'RELEASE_6' from annotation processor 'io.dekorate.option.apt.GeneratorOptionsProcessor' less than -source '11'
Warning:java: No SupportedSourceVersion annotation found on io.dekorate.option.apt.JvmOptionsProcessor, returning RELEASE_6.
Warning:java: Supported source version 'RELEASE_6' from annotation processor 'io.dekorate.option.apt.JvmOptionsProcessor' less than -source '11'
Warning:java: Supported source version 'RELEASE_8' from annotation processor 'io.dekorate.kubernetes.apt.KubernetesAnnotationProcessor' less than -source '11'
Warning:java: Supported source version 'RELEASE_8' from annotation processor 'io.dekorate.servicecatalog.apt.ServiceCatalogAnnotationProcessor' less than -source '11'
Warning:java: Supported source version 'RELEASE_8' from annotation processor 'io.dekorate.spring.apt.SpringBootWebProcessor' less than -source '11'
Warning:java: Supported source version 'RELEASE_8' from annotation processor 'io.dekorate.spring.apt.SpringBootApplicationProcessor' less than -source '11'
Warning:java: Supported source version 'RELEASE_8' from annotation processor 'io.dekorate.spring.apt.SpringBootBeanProcessor' less than -source '11'
Warning:java: Supported source version 'RELEASE_8' from annotation processor 'io.dekorate.prometheus.apt.ServiceMonitorAnnotationProcessor' less than -source '11'
iocanel commented 4 years ago

@akuma8: Nothing from your end that I am aware of. We need to deal with them on the annotation processor.

akuma8 commented 4 years ago

@iocanel Thanks, let me know if I can contribute for this. Just indicate me how.

iocanel commented 4 years ago

@akuma8: The fix is pretty straight forward. All our annotation processors have the following annotation:

@SupportedSourceVersion(SourceVersion.RELEASE_8)

I would completley remove those annotations, as I think that they are optional and are causing more issues, than the problems they solve.