Change the default version of the jdk in IDEA project files to 1.7

Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/4bb361e2
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/4bb361e2
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/4bb361e2

Branch: refs/heads/master
Commit: 4bb361e2dc3e7be0dcbd0c93d66bc219ed87f0c2
Parents: a728b5b
Author: Peter Donald <[email protected]>
Authored: Sun Oct 26 08:47:32 2014 +1100
Committer: Peter Donald <[email protected]>
Committed: Sun Oct 26 08:49:20 2014 +1100

----------------------------------------------------------------------
 CHANGELOG              | 1 +
 lib/buildr/ide/idea.rb | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/4bb361e2/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index 493e075..69bfb29 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,5 @@
 1.4.21 (Pending)
+* Change: Change the default version of the jdk in IDEA project files to 1.7.
 * Change: Change the default version of the IDEA project files created to the
           current release version 13. To revert to the older versions specify
           ipr.version = '12' in your buildfile.

http://git-wip-us.apache.org/repos/asf/buildr/blob/4bb361e2/lib/buildr/ide/idea.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/ide/idea.rb b/lib/buildr/ide/idea.rb
index 441cf36..2fa659f 100644
--- a/lib/buildr/ide/idea.rb
+++ b/lib/buildr/ide/idea.rb
@@ -199,7 +199,7 @@ module Buildr #:nodoc:
       end
 
       def jdk_version
-        @jdk_version || buildr_project.compile.options.source || '1.6'
+        @jdk_version || buildr_project.compile.options.source || '1.7'
       end
 
       def extension
@@ -652,7 +652,7 @@ module Buildr #:nodoc:
       end
 
       def jdk_version
-        @jdk_version ||= buildr_project.compile.options.source || '1.6'
+        @jdk_version ||= buildr_project.compile.options.source || '1.7'
       end
 
       def add_artifact(name, type, build_on_make = false)

Reply via email to