Created
September 21, 2021 16:30
-
-
Save amirmv2006/d3201177d698465df50fb593f0be9699 to your computer and use it in GitHub Desktop.
put Generated annotation on generated code!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>anonotate-proto</id> | |
<phase>generate-sources</phase> | |
<configuration> | |
<target> | |
<replaceregexp match="public(.*) class" flags="g" replace="@javax.annotation.Generated("protoc") \0"> | |
<fileset dir="${project.basedir}/src/main/generated" includes="**/*.java" /> | |
</replaceregexp> | |
</target> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment