Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add deprecation linting #2

Open
kortemik opened this issue Mar 28, 2024 · 0 comments
Open

add deprecation linting #2

kortemik opened this issue Mar 28, 2024 · 0 comments
Labels
assistance Extra attention, more information or help is needed

Comments

@kortemik
Copy link
Member

Description
deprecation warnings should be exact at compile time. add this to archetype pom.xml

Use case or motivation behind the feature request
once a thing is deprecated we should stop using it and find alternatives. without proper linting it's impossible to track the root cause.

Related issues

Additional context

diff --git a/pom.xml b/pom.xml
index ae825e7..068829a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -123,6 +123,16 @@
         <directory>${project.basedir}/target</directory>
         <finalName>rlp_03</finalName>
         <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>3.13.0</version>
+                <configuration>
+                    <compilerArgs>
+                        <arg>-Xlint:deprecation</arg>
+                    </compilerArgs>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.rat</groupId>
                 <artifactId>apache-rat-plugin</artifactId>
@kortemik kortemik added the assistance Extra attention, more information or help is needed label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assistance Extra attention, more information or help is needed
Projects
None yet
Development

No branches or pull requests

1 participant