{% set name = "apache-ant" %}
{% set version = "1.10.9" %}
{% set sha256 = "3f00fe29988ff1af83cb100089bfcbaf5d3e533d42fba3ea4861a982c920e874" %}

package:
  name: {{ name|lower }}
  version: {{ version }}
  
source:
  url: https://archive.apache.org/dist/ant/source/{{ name }}-{{ version }}-src.tar.gz
  sha256: {{ sha256 }}
  
build:
  number: 0
  
requirements:
  build:
    - openjdk >=8,<9
  
  run:
    - openjdk >=8,<9
 
test:
  commands: 
    - ant -help
    - ant -version
    
about:
  home: https://ant.apache.org/
  license: Apache-2.0
  license_file: LICENSE
  summary: Apache Ant is a Java library and command-line tool that mainly helps building
        software.
        
extra:
  recipe-maintainers:
    - ThejashwiniSwamy

{% set name = "apache-ant" %}
{% set version = "1.10.9" %}
{% set sha256 = "3f00fe29988ff1af83cb100089bfcbaf5d3e533d42fba3ea4861a982c920e874" %}

package:
  name: {{ name|lower }}
  version: {{ version }}
  
source:
  url: https://archive.apache.org/dist/ant/source/{{ name }}-{{ version }}-src.tar.gz
  sha256: {{ sha256 }}
  
build:
  number: 0
  
requirements:
  host:
    - openjdk >=8,<9
  
  run:
    - openjdk >=8,<9
 
test:
  commands: 
    - ant -help
    - ant -version
    
about:
  home: https://ant.apache.org/
  license: Apache-2.0
  license_file: LICENSE
  summary: Apache Ant is a Java library and command-line tool that mainly helps building
        software.
        
extra:
  recipe-maintainers:
    - ThejashwiniSwamy

Add openjdk in host section
Add openjdk in host section

Co-authored-by: Uwe L. Korn <61df1ade108ad4f778ae80c035cf888799bb0fe0@users.noreply.github.com>