Alon Bar-Lev has uploaded a new change for review.

Change subject: build: force java-1.5 source and target
......................................................................

build: force java-1.5 source and target

soon java-8 will be used to build, we should force our preferences.

Change-Id: I74c4e1ed5b94e24ba70b046243332c59da506575
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M src/java/Makefile.am
M src/java/pom.xml.in
2 files changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy 
refs/changes/69/34469/1

diff --git a/src/java/Makefile.am b/src/java/Makefile.am
index 1c2f5e1..374e549 100644
--- a/src/java/Makefile.am
+++ b/src/java/Makefile.am
@@ -76,7 +76,7 @@
        rm -f "$(targetjar)"
        $(MKDIR_P) "$(targetdir)"
        $(MKDIR_P) target
-       $(JAVAC) -d target `find src/main/java -name '*.java'`
+       $(JAVAC) -d target -source 1.5 -target 1.5 `find src/main/java -name 
'*.java'`
        $(JAR) -cmf $(srcdir)/MANIFEST.MF "$(targetjar)" -C target .
 
 endif
diff --git a/src/java/pom.xml.in b/src/java/pom.xml.in
index 437a492..fdc13c1 100644
--- a/src/java/pom.xml.in
+++ b/src/java/pom.xml.in
@@ -60,6 +60,15 @@
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-compiler-plugin</artifactId>
+                               <version>2.3.2</version>
+                               <configuration>
+                                       <source>1.5</source>
+                                       <target>1.5</target>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-source-plugin</artifactId>
                                <version>2.2.1</version>
                                <executions>


-- 
To view, visit http://gerrit.ovirt.org/34469
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I74c4e1ed5b94e24ba70b046243332c59da506575
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-host-deploy
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to