From: guillaume.lambert Date: Mon, 9 Oct 2023 13:30:15 +0000 (+0200) Subject: Update lighty.io build X-Git-Tag: 9.0.0~100 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F108293%2F5;p=transportpce.git Update lighty.io build Lighty 19.x branch is now available in the official repo. And building lighty.io snapshot is no more required since Lighty 19.0.0 is out on maven central. - update lighty pom.xml to use it - update build shell scripts accordingly - improve these scripts with more comments and mvn configuration options Signed-off-by: guillaume.lambert Change-Id: I53b4e2eab890ed63ecd4c5e48ad2a3bf0055fd71 --- diff --git a/lighty/build.sh b/lighty/build.sh index 5f058f9d9..f7756988a 100755 --- a/lighty/build.sh +++ b/lighty/build.sh @@ -2,6 +2,7 @@ cd $(dirname "$0") export JDK_JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED" -./build_lighty_core.sh +# uncomment the following line when related artifacts are not avaible on mvn central yet +#./build_lighty_core.sh mvn clean install -B -U -q -Dmaven.javadoc.skip=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -s ../tests/odl_settings.xml -DskipTests unzip -q target/tpce-bin.zip -d target diff --git a/lighty/build_lighty_core.sh b/lighty/build_lighty_core.sh index 5af800b40..d203aea29 100755 --- a/lighty/build_lighty_core.sh +++ b/lighty/build_lighty_core.sh @@ -4,7 +4,7 @@ cd $(dirname "$0") cd .. git clone https://github.com/PANTHEONtech/lighty.git lighty-repo cd lighty-repo -git checkout main -#git checkout 18.0.x +#git checkout main +git checkout 19.x export JDK_JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED" -mvn clean install -B -U -q -DskipTests -Dmaven.javadoc.skip=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn +mvn clean install -B -U -q -DskipTests -s ../tests/odl_settings.xml -Dmaven.javadoc.skip=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn diff --git a/lighty/pom.xml b/lighty/pom.xml index 883dad1e6..792f66e5e 100644 --- a/lighty/pom.xml +++ b/lighty/pom.xml @@ -11,7 +11,7 @@ io.lighty.core lighty-app-parent - 19.0.0-SNAPSHOT + 19.0.0