You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by to...@apache.org on 2016/08/21 05:19:47 UTC
[1/3] buildr git commit: remove deprecated code as expected for 1.5
Repository: buildr
Updated Branches:
refs/heads/master e18d99e33 -> 5b26f78d4
remove deprecated code as expected for 1.5
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/3cf6c899
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/3cf6c899
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/3cf6c899
Branch: refs/heads/master
Commit: 3cf6c899da83625267b27c38862e8268e1beecd5
Parents: e18d99e
Author: Antoine Toulme <an...@lunar-ocean.com>
Authored: Sat Aug 20 22:10:53 2016 -0700
Committer: Antoine Toulme <an...@lunar-ocean.com>
Committed: Sat Aug 20 22:10:53 2016 -0700
----------------------------------------------------------------------
CHANGELOG | 6 ++++
lib/buildr/core/compile.rb | 12 --------
lib/buildr/core/test.rb | 4 +--
lib/buildr/java/ant.rb | 6 ----
lib/buildr/java/deprecated.rb | 60 --------------------------------------
lib/buildr/java/tests.rb | 14 ---------
spec/core/compile_spec.rb | 6 ----
spec/core/test_spec.rb | 7 -----
spec/java/ant_spec.rb | 5 ----
spec/java/java_spec.rb | 10 +------
spec/java/tests_spec.rb | 5 ----
spec/spec_helpers.rb | 2 +-
12 files changed, 9 insertions(+), 128 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index d567532..679ece9 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -12,6 +12,12 @@
* Change: Added jekyll-textile-converter 0.1.0 to generate the site.
* Change: Move to default on Scala 2.11.
* Change: Remove Buildr::Project#on_define, deprecated in 1.3
+* Change: Remove JavaWrapper, deprecated in 1.3
+* Change: Remove JUnit::REQUIRES, deprecated in 1.3.3
+* Change: Remove TestNG::REQUIRES, deprecated in 1.3.3
+* Change: Remove Buildr::Ant::REQUIRES, deprecated in version 1.3.3
+* Change: Remove Buildr::CompileTask#classpath, deprecated in version 1.3
+* Change: Remove Buildr::TestTask responding to :using with .using('foo','bar'), deprecated in version 1.3
* Added: Travis badge to README.rdoc
* Added: Added Rubygems badges to README.rdoc
* Added: BUILDR-577 Allow remote repo to be added with http basic auth support. Submitted by Michael Guymon.
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/lib/buildr/core/compile.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/core/compile.rb b/lib/buildr/core/compile.rb
index 957f4cb..a206f5f 100644
--- a/lib/buildr/core/compile.rb
+++ b/lib/buildr/core/compile.rb
@@ -277,18 +277,6 @@ module Buildr #:nodoc:
self
end
- # *Deprecated*: Use dependencies instead.
- def classpath
- Buildr.application.deprecated 'Use dependencies instead.'
- dependencies
- end
-
- # *Deprecated*: Use dependencies= instead.
- def classpath=(artifacts)
- Buildr.application.deprecated 'Use dependencies= instead.'
- self.dependencies = artifacts
- end
-
# Compilation dependencies.
attr_accessor :dependencies
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/lib/buildr/core/test.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/core/test.rb b/lib/buildr/core/test.rb
index 0777289..031d96d 100644
--- a/lib/buildr/core/test.rb
+++ b/lib/buildr/core/test.rb
@@ -357,13 +357,11 @@ module Buildr #:nodoc:
def using(*args)
args.pop.each { |key, value| options[key.to_sym] = value } if Hash === args.last
args.each do |name|
+ info name
if TestFramework.has?(name)
self.framework = name
elsif name == :integration
options[:integration] = true
- else
- Buildr.application.deprecated "Please replace with using(:#{name}=>true)"
- options[name.to_sym] = true
end
end
self
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/lib/buildr/java/ant.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/java/ant.rb b/lib/buildr/java/ant.rb
index 4078061..44cff37 100644
--- a/lib/buildr/java/ant.rb
+++ b/lib/buildr/java/ant.rb
@@ -37,12 +37,6 @@ module Buildr #:nodoc:
@dependencies ||= ["org.apache.ant:ant:jar:#{version}", "org.apache.ant:ant-launcher:jar:#{version}"]
end
- private
- def const_missing(const)
- return super unless const == :REQUIRES # TODO: remove in 1.5
- Buildr.application.deprecated "Please use Ant.dependencies/.version instead of Ant::REQUIRES/VERSION"
- dependencies
- end
end
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/lib/buildr/java/deprecated.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/java/deprecated.rb b/lib/buildr/java/deprecated.rb
index bc10b49..2164fc0 100644
--- a/lib/buildr/java/deprecated.rb
+++ b/lib/buildr/java/deprecated.rb
@@ -15,48 +15,6 @@
module Java #:nodoc:
- # *Deprecated:* In earlier versions, Java.wrapper served as a wrapper around RJB/JRuby.
- # From this version forward, we apply with JRuby style for importing Java classes:
- # Java.java.lang.String.new('hai!')
- # You still need to call Java.load before using any Java code: it resolves, downloads
- # and installs various dependencies that are required on the classpath before calling
- # any Java code (e.g. Ant and its tasks).
- class JavaWrapper
-
- include Singleton
-
- # *Deprecated:* Append to Java.classpath directly.
- def classpath
- Buildr.application.deprecated 'Append to Java.classpath instead.'
- ::Java.classpath
- end
-
- def classpath=(paths)
- fail 'Deprecated: Append to Java.classpath, you cannot replace the classpath.'
- end
-
- # *Deprecated:* No longer necessary.
- def setup
- Buildr.application.deprecated 'See documentation for new way to access Java code.'
- yield self if block_given?
- end
-
- # *Deprecated:* Use Java.load instead.
- def load
- Buildr.application.deprecated 'Use Java.load instead.'
- ::Java.load
- end
-
- alias :onload :setup
-
- # *Deprecated:* Use Java.pkg.pkg.ClassName to import a Java class.
- def import(class_name)
- Buildr.application.deprecated 'Use Java.pkg.pkg.ClassName to import a Java class.'
- ::Java.instance_eval(class_name)
- end
- end
-
-
class << self
# *Deprecated*: Use Java::Commands.java instead.
@@ -97,24 +55,6 @@ module Java #:nodoc:
ENV['JAVA_HOME']
end
- # *Deprecated:* In earlier versions, Java.wrapper served as a wrapper around RJB/JRuby.
- # From this version forward, we apply with JRuby style for importing Java classes:
- # Java.java.lang.String.new('hai!')
- # You still need to call Java.load before using any Java code: it resolves, downloads
- # and installs various dependencies that are required on the classpath before calling
- # any Java code (e.g. Ant and its tasks).
- def wrapper
- Buildr.application.deprecated 'See documentation for new way to access Java code.'
- if block_given?
- Java.load
- yield JavaWrapper.instance
- else
- JavaWrapper.instance
- end
- end
-
- alias :rjb :wrapper
-
end
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/lib/buildr/java/tests.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/java/tests.rb b/lib/buildr/java/tests.rb
index 95eed54..92ecc0a 100644
--- a/lib/buildr/java/tests.rb
+++ b/lib/buildr/java/tests.rb
@@ -205,13 +205,6 @@ module Buildr #:nodoc:
def ant_taskdef #:nodoc:
"org.apache.ant:ant-junit:jar:#{Ant.version}"
end
-
- private
- def const_missing(const)
- return super unless const == :REQUIRES # TODO: remove in 1.5
- Buildr.application.deprecated 'Please use JUnit.dependencies/.version instead of JUnit::REQUIRES/VERSION'
- dependencies
- end
end
def tests(dependencies) #:nodoc:
@@ -308,13 +301,6 @@ module Buildr #:nodoc:
return ["org.testng:testng:jar:jdk15:#{version}"] + JMock.dependencies if version < "6.0"
["org.testng:testng:jar:#{version}",'com.beust:jcommander:jar:1.27'] + JMock.dependencies
end
-
- private
- def const_missing(const)
- return super unless const == :REQUIRES # TODO: remove in 1.5
- Buildr.application.deprecated 'Please use TestNG.dependencies/.version instead of TestNG::REQUIRES/VERSION'
- dependencies
- end
end
def tests(dependencies) #:nodoc:
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/spec/core/compile_spec.rb
----------------------------------------------------------------------
diff --git a/spec/core/compile_spec.rb b/spec/core/compile_spec.rb
index 08fba32..69e5037 100644
--- a/spec/core/compile_spec.rb
+++ b/spec/core/compile_spec.rb
@@ -234,12 +234,6 @@ describe Buildr::CompileTask, '#dependencies' do
compile_task.dependencies.should == project('bar').packages
end
- it 'should be accessible as classpath up to version 1.5 since it was deprecated in version 1.3' do
- Buildr::VERSION.should < '1.5'
- lambda { compile_task.classpath = jars }.should change(compile_task, :dependencies).to(jars)
- lambda { compile_task.dependencies = [] }.should change(compile_task, :classpath).to([])
- end
-
end
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/spec/core/test_spec.rb
----------------------------------------------------------------------
diff --git a/spec/core/test_spec.rb b/spec/core/test_spec.rb
index 4c48cf2..7166c96 100644
--- a/spec/core/test_spec.rb
+++ b/spec/core/test_spec.rb
@@ -141,13 +141,6 @@ describe Buildr::TestTask do
test_task.options[:bar].should eql('BAR')
end
- it 'should respond to :using with deprecated parameter style and set value options to true, up to version 1.5 since this usage was deprecated in version 1.3' do
- Buildr::VERSION.should < '1.5'
- test_task.using('foo', 'bar')
- test_task.options[:foo].should eql(true)
- test_task.options[:bar].should eql(true)
- end
-
it 'should start without pre-selected test framework' do
test_task.framework.should be_nil
end
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/spec/java/ant_spec.rb
----------------------------------------------------------------------
diff --git a/spec/java/ant_spec.rb b/spec/java/ant_spec.rb
index e183f3c..384d6c2 100644
--- a/spec/java/ant_spec.rb
+++ b/spec/java/ant_spec.rb
@@ -29,9 +29,4 @@ describe Buildr::Ant do
end
end
- it 'should have REQUIRES up to version 1.5 since it was deprecated in version 1.3.3' do
- Buildr::VERSION.should < '1.5'
- lambda { Ant::REQUIRES }.should_not raise_error
- end
-
end
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/spec/java/java_spec.rb
----------------------------------------------------------------------
diff --git a/spec/java/java_spec.rb b/spec/java/java_spec.rb
index a6c2226..ade6619 100644
--- a/spec/java/java_spec.rb
+++ b/spec/java/java_spec.rb
@@ -127,12 +127,4 @@ describe 'Java#java' do
after do
ENV['JAVA_HOME'] = @old_home
end
-end
-
-
-describe Java::JavaWrapper do
- it 'should be removed in version 1.5 since it was deprecated in version 1.3' do
- Buildr::VERSION.should < '1.5'
- lambda { Java::JavaWrapper }.should_not raise_error
- end
-end
+end
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/spec/java/tests_spec.rb
----------------------------------------------------------------------
diff --git a/spec/java/tests_spec.rb b/spec/java/tests_spec.rb
index 067a301..a6b1648 100644
--- a/spec/java/tests_spec.rb
+++ b/spec/java/tests_spec.rb
@@ -40,11 +40,6 @@ describe Buildr::JUnit do
project('foo').test.dependencies.should include(artifact("junit:junit:jar:#{JUnit.version}"))
end
- it 'should have REQUIRES up to version 1.5 since it was deprecated in 1.3.3' do
- Buildr::VERSION.should < '1.5'
- lambda { JUnit::REQUIRES }.should_not raise_error
- end
-
it 'should pick JUnit version from junit build settings' do
Buildr::JUnit.instance_eval { @dependencies = nil }
write 'build.yaml', 'junit: 1.2.3'
http://git-wip-us.apache.org/repos/asf/buildr/blob/3cf6c899/spec/spec_helpers.rb
----------------------------------------------------------------------
diff --git a/spec/spec_helpers.rb b/spec/spec_helpers.rb
index 5ff98d9..2979ee6 100644
--- a/spec/spec_helpers.rb
+++ b/spec/spec_helpers.rb
@@ -302,7 +302,7 @@ unless defined?(SpecHelpers)
def suppress_stdout
stdout = $stdout
- $stdout = StringIO.new
+ #$stdout = StringIO.new
begin
yield
ensure
[3/3] buildr git commit: Remove deprecated emma addon
Posted by to...@apache.org.
Remove deprecated emma addon
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/5b26f78d
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/5b26f78d
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/5b26f78d
Branch: refs/heads/master
Commit: 5b26f78d47a918b798115337065f6546ae8096f5
Parents: 58461ed
Author: Antoine Toulme <an...@lunar-ocean.com>
Authored: Sat Aug 20 22:19:25 2016 -0700
Committer: Antoine Toulme <an...@lunar-ocean.com>
Committed: Sat Aug 20 22:19:25 2016 -0700
----------------------------------------------------------------------
CHANGELOG | 1 +
addon/buildr/emma.rb | 21 ---------------------
2 files changed, 1 insertion(+), 21 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/buildr/blob/5b26f78d/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index 54932a3..f607835 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -19,6 +19,7 @@
* Change: Remove Buildr::CompileTask#classpath, deprecated in version 1.3
* Change: Remove Buildr::TestTask responding to :using with .using('foo','bar'), deprecated in version 1.3
* Change: Remove addon/buildr/cobertura.rb, deprecated since 1.3.4
+* Change: Remove addon/buildr/emma.rb, deprecated since 1.3.4
* Added: Travis badge to README.rdoc
* Added: Added Rubygems badges to README.rdoc
* Added: BUILDR-577 Allow remote repo to be added with http basic auth support. Submitted by Michael Guymon.
http://git-wip-us.apache.org/repos/asf/buildr/blob/5b26f78d/addon/buildr/emma.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/emma.rb b/addon/buildr/emma.rb
deleted file mode 100644
index 7089440..0000000
--- a/addon/buildr/emma.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with this
-# work for additional information regarding copyright ownership. The ASF
-# licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-
-if Buildr::VERSION < '1.5'
- Buildr.application.deprecated "'buildr/emma', use 'buildr/java/emma' instead"
- require 'buildr/java/emma'
-else
- raise "#{__FILE__} should be removed since its use is deprecated since version 1.3.4"
-end
[2/3] buildr git commit: Remove deprecated cobertura addon
Posted by to...@apache.org.
Remove deprecated cobertura addon
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/58461ed4
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/58461ed4
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/58461ed4
Branch: refs/heads/master
Commit: 58461ed437206b93eaba854bc1a85e2e47dc4810
Parents: 3cf6c89
Author: Antoine Toulme <an...@lunar-ocean.com>
Authored: Sat Aug 20 22:13:15 2016 -0700
Committer: Antoine Toulme <an...@lunar-ocean.com>
Committed: Sat Aug 20 22:13:15 2016 -0700
----------------------------------------------------------------------
CHANGELOG | 1 +
addon/buildr/cobertura.rb | 21 ---------------------
2 files changed, 1 insertion(+), 21 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/buildr/blob/58461ed4/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index 679ece9..54932a3 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -18,6 +18,7 @@
* Change: Remove Buildr::Ant::REQUIRES, deprecated in version 1.3.3
* Change: Remove Buildr::CompileTask#classpath, deprecated in version 1.3
* Change: Remove Buildr::TestTask responding to :using with .using('foo','bar'), deprecated in version 1.3
+* Change: Remove addon/buildr/cobertura.rb, deprecated since 1.3.4
* Added: Travis badge to README.rdoc
* Added: Added Rubygems badges to README.rdoc
* Added: BUILDR-577 Allow remote repo to be added with http basic auth support. Submitted by Michael Guymon.
http://git-wip-us.apache.org/repos/asf/buildr/blob/58461ed4/addon/buildr/cobertura.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/cobertura.rb b/addon/buildr/cobertura.rb
deleted file mode 100644
index 16ac5a3..0000000
--- a/addon/buildr/cobertura.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with this
-# work for additional information regarding copyright ownership. The ASF
-# licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-
-if Buildr::VERSION < '1.5'
- Buildr.application.deprecated "'buildr/cobertura', use 'buildr/java/cobertura' instead"
- require 'buildr/java/cobertura'
-else
- raise "#{__FILE__} should be removed since its use is deprecated since version 1.3.4"
-end