You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flume.apache.org by mp...@apache.org on 2013/04/26 22:32:16 UTC

git commit: FLUME-2013. Parameterize java source and target version in the main pom file.

Updated Branches:
  refs/heads/trunk 215d75eb1 -> 1149740d0


FLUME-2013. Parameterize java source and target version in the main pom file.

(Jarek Jarcec Cecho via Mike Percy)


Project: http://git-wip-us.apache.org/repos/asf/flume/repo
Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/1149740d
Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/1149740d
Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/1149740d

Branch: refs/heads/trunk
Commit: 1149740d0e34b7a2d7197c943e0be97009d93777
Parents: 215d75e
Author: Mike Percy <mp...@apache.org>
Authored: Fri Apr 26 13:31:35 2013 -0700
Committer: Mike Percy <mp...@apache.org>
Committed: Fri Apr 26 13:31:35 2013 -0700

----------------------------------------------------------------------
 pom.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flume/blob/1149740d/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index bc28e8d..686ecb6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,6 +36,10 @@ limitations under the License.
     <!-- Set default encoding to UTF-8 to remove maven complaints -->
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
+    <!-- Java compiler configuration -->
+    <sourceJavaVersion>1.6</sourceJavaVersion>
+    <targetJavaVersion>1.6</targetJavaVersion>
+
     <!-- defaults for flaky test and focused test exclusions -->
     <test.exclude.pattern>$</test.exclude.pattern> <!-- junk pattern -->
     <test.include.pattern>**/Test*.java</test.include.pattern>
@@ -487,8 +491,8 @@ limitations under the License.
           <artifactId>maven-compiler-plugin</artifactId>
           <version>2.3.2</version>
           <configuration>
-            <source>1.6</source>
-            <target>1.6</target>
+            <source>${sourceJavaVersion}</source>
+            <target>${targetJavaVersion}</target>
           </configuration>
         </plugin>