From b0ae773f12fc85ebeabfc99adf0bec6cf2a7cbb3 Mon Sep 17 00:00:00 2001 From: Ches Martin Date: Mon, 21 Oct 2019 00:50:01 +0700 Subject: [PATCH] Set build requirements, minimum Maven version Urge the use of by disallowing duplicate dependency declarations. See #262. Making final releases with SNAPSHOT dependencies in use is a really bad idea that can happen by accidental oversight. Enforcer helps ensure it doesn't. For build reproducibility it's good to specify what Maven versions are supported for the project's build to work. 3.0.5 is the minimum required version by all our plugins currently, according to: $ mvn versions:display-plugin-updates --- ingestion/pom.xml | 6 ------ pom.xml | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 6 deletions(-) diff --git a/ingestion/pom.xml b/ingestion/pom.xml index fb83ead70e..b7e8033c23 100644 --- a/ingestion/pom.xml +++ b/ingestion/pom.xml @@ -184,12 +184,10 @@ com.google.protobuf protobuf-java - ${protobufVersion} com.google.protobuf protobuf-java-util - ${protobufVersion} @@ -202,7 +200,6 @@ org.apache.kafka kafka-clients - 2.3.0 @@ -257,8 +254,6 @@ com.github.kstyrc embedded-redis - 0.6 - test @@ -269,7 +264,6 @@ test - com.google.guava guava diff --git a/pom.xml b/pom.xml index f3735945d2..95c2e58f10 100644 --- a/pom.xml +++ b/pom.xml @@ -348,6 +348,54 @@ + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M2 + + + valid-build-environment + + enforce + + + + + 3.0.5 + + + 1.8.0 + + + + + + + consistent-dependency-versions + + enforce + + + + + + + + + no-snapshot-deps-at-release + + enforce + + + + + true + + + + + + org.apache.maven.plugins maven-surefire-plugin