Skip to content

Commit 7cbe3fd

Browse files
committed
Merge branch 'version-tasks' into 3.x
2 parents d02edbb + 5cce8e1 commit 7cbe3fd

15 files changed

Lines changed: 483 additions & 1 deletion

.idea/.rakeTasks

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/versions.xml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/versions__JSON_.xml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/versions__YAML_.xml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ group :development do
88
gem 'rubocop-rspec'
99
gem 'rubyzip'
1010
gem 'tee'
11+
gem 'terminal-table'
1112
gem 'webmock'
1213
gem 'yard'
1314
end

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ GEM
4141
rubyzip (1.2.1)
4242
safe_yaml (1.0.4)
4343
tee (1.0.0)
44+
terminal-table (1.7.0)
45+
unicode-display_width (~> 1.1)
4446
unicode-display_width (1.2.1)
4547
webmock (3.0.1)
4648
addressable (>= 2.3.6)
@@ -59,6 +61,7 @@ DEPENDENCIES
5961
rubocop-rspec
6062
rubyzip
6163
tee
64+
terminal-table
6265
webmock
6366
yard
6467

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ $LOAD_PATH.unshift File.expand_path('..', __FILE__)
3636
require 'rakelib/dependency_cache_task'
3737
require 'rakelib/stage_buildpack_task'
3838
require 'rakelib/package_task'
39+
require 'rakelib/versions_task'
3940
Package::DependencyCacheTask.new
4041
Package::StageBuildpackTask.new(Dir['bin/**/*', 'config/**/*', 'lib/**/*', 'resources/**/*']
4142
.reject { |f| File.directory? f })
4243
Package::PackageTask.new
44+
Package::VersionsTask.new
4345

4446
task default: %w[rubocop check_api_doc spec]

ci/versions-json.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
# Cloud Foundry Java Buildpack
3+
# Copyright 2013-2017 the original author or authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -e
18+
19+
export LANG=en_US.UTF-8
20+
export LANGUAGE=en_US.UTF-8
21+
export LC_ALL=en_US.UTF-8
22+
23+
eval "$(rbenv init -)"
24+
25+
pushd java-buildpack
26+
bundle install
27+
bundle exec rake versions:json
28+
popd

ci/versions-json.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Cloud Foundry Java Buildpack
2+
# Copyright 2013-2017 the original author or authors.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
---
16+
platform: linux
17+
18+
image_resource:
19+
type: docker-image
20+
source:
21+
repository: cfje/java-buildpack
22+
23+
inputs:
24+
- name: java-buildpack
25+
26+
run:
27+
path: java-buildpack/ci/versions-json.sh

ci/versions-yaml.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
# Cloud Foundry Java Buildpack
3+
# Copyright 2013-2017 the original author or authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -e
18+
19+
export LANG=en_US.UTF-8
20+
export LANGUAGE=en_US.UTF-8
21+
export LC_ALL=en_US.UTF-8
22+
23+
eval "$(rbenv init -)"
24+
25+
pushd java-buildpack
26+
bundle install
27+
bundle exec rake versions:yaml
28+
popd

0 commit comments

Comments
 (0)