Skip to content

Commit

Permalink
Java 12
Browse files Browse the repository at this point in the history
This change adds support for packaging Java 12.

[resolves #703]

Signed-off-by: Ben Hale <[email protected]>
  • Loading branch information
nebhale committed Apr 1, 2019
1 parent 2ded7cb commit 3f4eee2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rakelib/dependency_cache_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ def configurations(component_id, configuration, sub_component_id = nil)
configurations << c1
end

if component_id == 'open_jdk_jre' && sub_component_id == 'jre'
c1 = configuration.clone
c1['version'] = '12.+'

configurations << c1
end

configurations << configuration
else
configuration.each { |k, v| configurations << configurations(component_id, v, k) if v.is_a? Hash }
Expand Down
8 changes: 8 additions & 0 deletions rakelib/versions_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def initialize
'jprofiler_profiler' => 'JProfiler Profiler',
'jre' => 'OpenJDK JRE',
'jre-11' => 'OpenJDK JRE 11',
'jre-12' => 'OpenJDK JRE 12',
'jrebel_agent' => 'JRebel Agent',
'jvmkill_agent' => 'jvmkill Agent',
'lifecycle_support' => 'Tomcat Lifecycle Support',
Expand Down Expand Up @@ -165,6 +166,13 @@ def configurations(component_id, configuration, sub_component_id = nil)
configurations << c1
end

if component_id == 'open_jdk_jre' && sub_component_id == 'jre'
c1 = configuration.clone
c1['sub_component_id'] = 'jre-12'
c1['version'] = '12.+'

configurations << c1
end
configurations << configuration
else
configuration.each { |k, v| configurations << configurations(component_id, v, k) if v.is_a? Hash }
Expand Down

0 comments on commit 3f4eee2

Please sign in to comment.