xolstice / protobuf-maven-plugin

Maven Plugin that executes the Protocol Buffers (protoc) compiler
https://www.xolstice.org/protobuf-maven-plugin/
Other
232 stars 76 forks source link

Add properties to Mojo parameters checkStaleness and staleMillis #81

Open ianfabs opened 3 years ago

ianfabs commented 3 years ago

Description

This PR adds property definitions to the AbstractProtocMojo fields checkStaleness and staleMillis for use from the maven CLI (mvn). The need for this change came about while trying to improve the maven build times for the backend at my work, and I noticed I couldn't change the checkStaleness configuration property, as I might in other maven plugins (ex: mvn package -DskipTests -Djacoco.skip=true). I hope this adds some additional value to an already fantastic project.

I'm relatively unfamiliar with how Mojo/Maven plugins work, so if I've made a mistake please let me know and I will correct it.

Additinally, I wasn't sure what version to use when adding @since <version> to the doc comments for the parameters I updated, so I used the latest version.