 0ac5cbbda9
			
		
	
	
		0ac5cbbda9
		
	
	
	
	
		
			
			Install adoptopenjdk rather than openjdk for Linux. openjdk is superseded by adoptopenjdk.
		
			
				
	
	
		
			17 lines
		
	
	
		
			327 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			327 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| class DependencyCollector
 | |
|   def java_dep_if_needed(tags)
 | |
|     req = JavaRequirement.new(tags)
 | |
|     begin
 | |
|       dep = Dependency.new("adoptopenjdk", tags)
 | |
|       return dep if dep.installed?
 | |
|       return req if req.satisfied?
 | |
| 
 | |
|       dep
 | |
|     rescue FormulaUnavailableError
 | |
|       req
 | |
|     end
 | |
|   end
 | |
| end
 |