RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install wget build-essential dh-make \
- openjdk-8-jdk maven
-RUN update-java-alternatives --set /usr/lib/jvm/java-1.8.0-openjdk-amd64
+ openjdk-17-jdk maven
+RUN update-java-alternatives --jre-headless --set /usr/lib/jvm/java-1.17.0-openjdk-amd64
# NOTE: pyang and pyangbind are required for build
-.PHONY: all clean package trees deps yang-ietf openapi_schemas yang2swagger
-JAVA := /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
+.PHONY: all clean package trees yang-ietf openapi_schemas yang2swagger
+JAVA := /usr/lib/jvm/java-17-openjdk-amd64/bin/java
PYANG := pyang
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
PYTHON_INTERPRETER := python
osm.yaml: yang-ietf yang2swagger
$(Q)echo generating $@
- $(Q)$(JAVA) -jar ${HOME}/.m2/repository/com/mrv/yangtools/swagger-generator-cli/1.1.14/swagger-generator-cli-1.1.14-executable.jar -yang-dir $(MODEL_DIR) -output $(OUT_DIR)/$@
+ $(Q)$(JAVA) -jar ${HOME}/.m2/repository/com/mrv/yangtools/swagger-generator-cli/2.1.0/swagger-generator-cli-2.1.0-executable.jar -yang-dir $(MODEL_DIR) -output $(OUT_DIR)/$@
yang-ietf:
$(Q)wget -q https://raw.githubusercontent.com/YangModels/yang/master/standard/ietf/RFC/ietf-yang-types%402013-07-15.yang -O $(MODEL_DIR)/ietf-yang-types.yang
yang2swagger:
$(Q)mkdir -p ${HOME}/.m2
$(Q)wget -q -O ${HOME}/.m2/settings.xml https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml
- git clone https://github.com/bartoszm/yang2swagger.git
- git -C yang2swagger checkout tags/1.1.14
- mvn -f yang2swagger/pom.xml clean install
+ $(Q)git clone https://github.com/bartoszm/yang2swagger.git
+ $(Q)git -C yang2swagger checkout tags/2.1.0
+ $(Q)mvn -f yang2swagger/pom.xml clean install
package:
./build-docs.sh
-deps:
- $(Q)mkdir -p ${HOME}/.m2
- $(Q)cp -n ${HOME}/.m2/settings.xml ${HOME}/.m2/settings.xml.orig ; wget -q -O - https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml > ${HOME}/.m2/settings.xml
-
sol006_deps:
$(Q)git clone --single-branch --branch v2.6.1 https://forge.etsi.org/rep/nfv/SOL006.git sol006_model
$(Q)patch -p2 < patch/deref_warnings.patch