From c7ecf4da41c38bc8591004db7878da80f33da6a0 Mon Sep 17 00:00:00 2001 From: Mladjan Gadzic Date: Mon, 23 Dec 2024 12:36:10 +0100 Subject: [PATCH] use plugins in profiles instead of outside (#5) --- pom.xml | 197 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 114 insertions(+), 83 deletions(-) diff --git a/pom.xml b/pom.xml index c0db1a0..1241f98 100644 --- a/pom.xml +++ b/pom.xml @@ -162,6 +162,86 @@ + + + + kr.motd.maven + os-maven-plugin + ${os-maven-plugin.version} + + + + detect + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven-checkstyle-plugin.version} + + + com.puppycrawl.tools + checkstyle + ${checkstyle.version} + + + + dev-support/google_checks.xml + dev-support/checkstyle-suppressions.xml + true + true + true + warning + false + + + + validate + validate + + check + + + + + + + + org.xolstice.maven.plugins + protobuf-maven-plugin + ${protobuf-maven-plugin.version} + + + com.google.protobuf:protoc:${protobuf-java.version}:exe:${os.detected.classifier} + + grpc-java + + io.grpc:protoc-gen-grpc-java:${io.grpc.version}:exe:${os.detected.classifier} + + + + + + compile + compile-custom + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin.version} + + ${maven-compiler-plugin.release} + + @@ -198,94 +278,45 @@ + + + + org.xolstice.maven.plugins + protobuf-maven-plugin + ${protobuf-maven-plugin.version} + + + com.google.protobuf:protoc:${protobuf-java.version}:exe:${os.detected.classifier} + + grpc-java + + io.grpc:protoc-gen-grpc-java:${io.grpc.version}:exe:${os.detected.classifier} + + + + + + compile + compile-custom + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin.version} + + ${maven-compiler-plugin.release} + + - - - - - kr.motd.maven - os-maven-plugin - ${os-maven-plugin.version} - - - - detect - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - ${maven-compiler-plugin.version} - - ${maven-compiler-plugin.release} - - - - - - org.xolstice.maven.plugins - protobuf-maven-plugin - ${protobuf-maven-plugin.version} - - - com.google.protobuf:protoc:${protobuf-java.version}:exe:${os.detected.classifier} - - grpc-java - - io.grpc:protoc-gen-grpc-java:${io.grpc.version}:exe:${os.detected.classifier} - - - - - - compile - compile-custom - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - ${maven-checkstyle-plugin.version} - - - com.puppycrawl.tools - checkstyle - ${checkstyle.version} - - - - dev-support/google_checks.xml - dev-support/checkstyle-suppressions.xml - true - true - true - warning - false - - - - validate - validate - - check - - - - - - - io.grpc