From b02b14764d0be6c0e41e9dc12e1d97d9300154b2 Mon Sep 17 00:00:00 2001 From: Baptiste Mathus Date: Mon, 20 May 2013 08:57:13 +0200 Subject: [PATCH 1/2] Using mojo extra-enforcer-rules enforceBytecodeVersion. This rule enforces a bytecode version in dependencies. This would prevent cases like JENKINS-8914 where someone had introduced a dependency compiled with JDK1.6 at a time where Jenkins was still on 1.5. With 1.7 already here and 1.8 coming, this should help no to do that again. --- pom.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pom.xml b/pom.xml index f302e72ad2..24a9457bb1 100644 --- a/pom.xml +++ b/pom.xml @@ -624,10 +624,20 @@ THE SOFTWARE. 3.0 + + 1.6 + + + + org.codehaus.mojo + extra-enforcer-rules + 1.0-alpha-4 + + From fe3d4a054ad88dc261ebc9d377f31834e31112d5 Mon Sep 17 00:00:00 2001 From: Baptiste Mathus Date: Wed, 22 May 2013 21:23:45 +0200 Subject: [PATCH 2/2] Using a property to share target jdk version with enforcer rule. --- pom.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 24a9457bb1..b82f4d8315 100644 --- a/pom.xml +++ b/pom.xml @@ -98,6 +98,9 @@ THE SOFTWARE. 1.6.2 none ${skipTests} + + 1.5 + ${mcompiler.source} @@ -625,7 +628,7 @@ THE SOFTWARE. 3.0 - 1.6 + ${mcompiler.target}