]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix compilerArguments deprecation warnings (#15504)
authorWouter Born <github@maindrain.net>
Sun, 27 Aug 2023 11:45:36 +0000 (13:45 +0200)
committerGitHub <noreply@github.com>
Sun, 27 Aug 2023 11:45:36 +0000 (13:45 +0200)
This fixes the following warnings:

```
[WARNING] Parameter 'compilerArguments' is deprecated: use {@link #compilerArgs} instead.
```

Related to openhab/openhab-core#3512

Signed-off-by: Wouter Born <github@maindrain.net>
pom.xml

diff --git a/pom.xml b/pom.xml
index d8f6cb7f7064881d3466c90826b551906ce51b6e..6ba04b81255a8a775c2f92e59519b46680688d71 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -301,11 +301,11 @@ Import-Package: \\
           <version>3.10.1</version>
           <configuration>
             <compilerId>eclipse</compilerId>
-            <compilerArguments>
-              <annotationpath>CLASSPATH</annotationpath>
-              <classpath>${project.build.directory}/dependency</classpath>
-            </compilerArguments>
             <compilerArgs>
+              <arg>-annotationpath</arg>
+              <arg>CLASSPATH</arg>
+              <arg>-classpath</arg>
+              <arg>${project.build.directory}/dependency</arg>
               <arg>-err:+nullAnnot(org.eclipse.jdt.annotation.Nullable|org.eclipse.jdt.annotation.NonNull|org.eclipse.jdt.annotation.NonNullByDefault),+inheritNullAnnot,+nullAnnotConflict,-nullUncheckedConversion</arg>
               <arg>-warn:+null,+inheritNullAnnot,-nullUncheckedConversion,+nullAnnotRedundant,+nullDereference</arg>
               <arg>-nowarn:[${project.build.directory}/generated-sources]</arg>