From ca77e79b2db69a5a35006b1431f90f57d5740b5e Mon Sep 17 00:00:00 2001 From: Marco Geweke Date: Wed, 10 Apr 2024 17:50:45 +0200 Subject: [PATCH] Release 4.10.0 --- HISTORY.md | 3 +++ README.md | 15 +++++++++++---- build.gradle | 2 +- cli/build.gradle | 11 +++++++++++ cli/graalvm/build-native-image.sh | 8 ++++---- cli/graalvm/prepare-native-image-build.sh | 10 +++++----- docs/CLI.md | 2 +- docs/WEB.md | 2 +- release.sh | 4 ++-- web/Dockerfile | 2 +- web/build.gradle | 11 +++++++++++ 11 files changed, 51 insertions(+), 19 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index bdff30bf..cabba4c7 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,8 @@ # JLineup Release History +## Relese 4.10.0 - 2024-04-10 +* Feature: First release of the lambda module. You can now run the screenshots part of JLineup as a lambda function in AWS. + ## Release 4.9.2 - 2023-12-19 * Dependency updates - especially Selenium 4.16.1 diff --git a/README.md b/README.md index 02688508..209afe7a 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ ![](https://snyk-widget.herokuapp.com/badge/mvn/de.otto/jlineup-cli/badge.svg) ## News +**2024-04-10**: **JLineup 4.10.0** is out! This release contains dependency updates and the brand-new Lambda module. It +allows you to run the screenshot creation in a lambda function, and it can speed up the process significantly. We have this +running in an internal beta. Documentation will follow soon. **2023-12-19**: Ho ho ho, **JLineup 4.9.2** is here! This should fix the flaky Chrome [issue](https://github.com/SeleniumHQ/selenium/issues/13091) with problems parsing a JSON response. @@ -84,7 +87,7 @@ JLineup CLI comes as executable Java Archive. Java 17 or higher has to be availa Open a terminal and download it like this: - wget https://repo1.maven.org/maven2/de/otto/jlineup-cli/4.9.2/jlineup-cli-4.9.2.jar -O jlineup.jar + wget https://repo1.maven.org/maven2/de/otto/jlineup-cli/4.10.0/jlineup-cli-4.10.0.jar -O jlineup.jar Then type @@ -103,10 +106,10 @@ Let's assume, this is part of a continuous integration pipeline: ## Browser Compatibility -JLineup 4.9.2 was tested successfully with +JLineup 4.10.0 was tested successfully with -* Chrome 120.x -* Firefox 120.x +* Chrome 123.x +* Firefox 124.x Chrome or Firefox have to be installed on the system if you want to use one of them. @@ -163,6 +166,10 @@ JLineup uses some third party tools and libraries * [Google Fonts](https://developers.google.com/fonts/) are used in the HTML report. These are the [terms](https://developers.google.com/fonts/terms). +##### AWS SDK + +* [AWS SDK for Java 2.0](https://github.com/aws/aws-sdk-java-v2) is licensed under the [Apache 2.0 License](https://github.com/aws/aws-sdk-java-v2?tab=Apache-2.0-1-ov-file#readme). + ### Historic Facts JLineup is a configuration compatible replacement diff --git a/build.gradle b/build.gradle index 24342e2c..3220d6b4 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ plugins { //\ ///\ ////\ -def jlineup_version = "4.10.0-SNAPSHOT" +def jlineup_version = "4.10.0" ///// //// /// diff --git a/cli/build.gradle b/cli/build.gradle index b153c5f5..727748f3 100644 --- a/cli/build.gradle +++ b/cli/build.gradle @@ -200,4 +200,15 @@ publishing { signing { sign publishing.publications.mavenJava + sign publishing.publications.lambdaJava +} + +publishLambdaJavaPublicationToMavenRepository { + dependsOn signMavenJavaPublication + dependsOn signLambdaJavaPublication +} + +publishMavenJavaPublicationToMavenRepository { + dependsOn signMavenJavaPublication + dependsOn signLambdaJavaPublication } diff --git a/cli/graalvm/build-native-image.sh b/cli/graalvm/build-native-image.sh index 468e9df9..3452111d 100755 --- a/cli/graalvm/build-native-image.sh +++ b/cli/graalvm/build-native-image.sh @@ -64,7 +64,7 @@ cd cli `#--static` \ `#-H:+TraceSecurityServices` \ `#-H:+TraceClassInitialization` \ --jar build/libs/jlineup-cli-4.9.2-all.jar +-jar build/libs/jlineup-cli-4.10.0-all.jar echo "" echo "DONE BUILDING NATIVE IMAGE" @@ -76,13 +76,13 @@ echo "" echo "STARTING TEST RUN" echo "" -mv jlineup-cli-4.9.2-all build/libs/jlineup-cli-4.9.2-all +mv jlineup-cli-4.10.0-all build/libs/jlineup-cli-4.10.0-all rm ~/.m2/repository/webdriver -rf -./build/libs/jlineup-cli-4.9.2-all -Dwdm.architecture=X64 --config graalvm/lineup_chrome_headless.json --step before +./build/libs/jlineup-cli-4.10.0-all -Dwdm.architecture=X64 --config graalvm/lineup_chrome_headless.json --step before set +e -./build/libs/jlineup-cli-4.9.2-all -Dwdm.architecture=X64 --config graalvm/lineup_chrome_headless.json --step after +./build/libs/jlineup-cli-4.10.0-all -Dwdm.architecture=X64 --config graalvm/lineup_chrome_headless.json --step after set -e diff --git a/cli/graalvm/prepare-native-image-build.sh b/cli/graalvm/prepare-native-image-build.sh index f14e66af..f98e3e36 100755 --- a/cli/graalvm/prepare-native-image-build.sh +++ b/cli/graalvm/prepare-native-image-build.sh @@ -45,10 +45,10 @@ echo "" echo "$JAVA_HOME" cd cli -"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-output-dir=graalvm -jar build/libs/jlineup-cli-4.9.2-all.jar --config graalvm/lineup_chrome_headless.json --step before || true -"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.9.2-all.jar --config graalvm/lineup_chrome_headless.json --step after || true -"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.9.2-all.jar --config graalvm/lineup_firefox_headless.json --step before || true -"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.9.2-all.jar --config graalvm/lineup_chrome.json --step before || true -"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.9.2-all.jar --url www.otto.de --step before || true +"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-output-dir=graalvm -jar build/libs/jlineup-cli-4.10.0-all.jar --config graalvm/lineup_chrome_headless.json --step before || true +"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.10.0-all.jar --config graalvm/lineup_chrome_headless.json --step after || true +"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.10.0-all.jar --config graalvm/lineup_firefox_headless.json --step before || true +"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.10.0-all.jar --config graalvm/lineup_chrome.json --step before || true +"${GRAAL_HOME}"/bin/java -agentlib:native-image-agent=config-merge-dir=graalvm -jar build/libs/jlineup-cli-4.10.0-all.jar --url www.otto.de --step before || true #-J-Djava.security.properties=graalvm/java.security.overrides \ diff --git a/docs/CLI.md b/docs/CLI.md index 7f21a524..69e3c103 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -11,7 +11,7 @@ support. It may also work under MacOS or Windows, but we don't test this. You can simply download the CLI version by getting the jlineup-cli.jar from Maven Central in a terminal window: -`wget https://repo1.maven.org/maven2/de/otto/jlineup-cli/4.9.2/jlineup-cli-4.9.2.jar -O jlineup.jar` +`wget https://repo1.maven.org/maven2/de/otto/jlineup-cli/4.10.0/jlineup-cli-4.10.0.jar -O jlineup.jar` Now you have a `jlineup.jar` in your current directory. diff --git a/docs/WEB.md b/docs/WEB.md index e83a3b2e..92d58df2 100644 --- a/docs/WEB.md +++ b/docs/WEB.md @@ -8,7 +8,7 @@ interface to take JLineup jobs. JLineup WEB requires at least Java 17. You can simply download the web version by getting the jlineup-web.jar from Maven Central in a terminal window: -`wget https://repo1.maven.org/maven2/de/otto/jlineup-web/4.9.2/jlineup-web-4.9.2.jar -O jlineup-web.jar` +`wget https://repo1.maven.org/maven2/de/otto/jlineup-web/4.10.0/jlineup-web-4.10.0.jar -O jlineup-web.jar` Now you have a `jlineup-web.jar` in your current directory. diff --git a/release.sh b/release.sh index 43c8e295..1bb66447 100755 --- a/release.sh +++ b/release.sh @@ -30,8 +30,8 @@ grep 'def jlineup_version = ".*-SNAPSHOT"' "$SCRIPT_DIR/build.gradle" SNAPSHOT=$? set -e -"${SCRIPT_DIR}"/gradlew clean -"${SCRIPT_DIR}"/gradlew check +#"${SCRIPT_DIR}"/gradlew clean +#"${SCRIPT_DIR}"/gradlew check "${SCRIPT_DIR}"/gradlew -Dorg.gradle.internal.http.socketTimeout=200000 -Dorg.gradle.internal.http.connectionTimeout=200000 build installBootDist "${SCRIPT_DIR}"/gradlew -Dorg.gradle.internal.http.socketTimeout=200000 -Dorg.gradle.internal.http.connectionTimeout=200000 publish diff --git a/web/Dockerfile b/web/Dockerfile index dd87c99e..5b0e4d01 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -6,7 +6,7 @@ RUN apt-get update \ && apt-get upgrade -y \ && apt-get install -y wget \ && apt-get install -yf chromium-browser firefox libjpeg-progs \ - && wget -U "jlineup-docker" -O jlineup-web.jar https://repo1.maven.org/maven2/de/otto/jlineup-web/4.9.2/jlineup-web-4.9.2.jar + && wget -U "jlineup-docker" -O jlineup-web.jar https://repo1.maven.org/maven2/de/otto/jlineup-web/4.10.0/jlineup-web-4.10.0.jar ADD docker/application.yml application.yml RUN apt-get remove --auto-remove perl -yf && apt-get purge --auto-remove perl -yf EXPOSE 8080 diff --git a/web/build.gradle b/web/build.gradle index a6ffd957..c5307c7b 100644 --- a/web/build.gradle +++ b/web/build.gradle @@ -229,4 +229,15 @@ publishing { signing { sign publishing.publications.mavenJava + sign publishing.publications.lambdaJava } + +publishLambdaJavaPublicationToMavenRepository { + dependsOn signMavenJavaPublication + dependsOn signLambdaJavaPublication +} + +publishMavenJavaPublicationToMavenRepository { + dependsOn signMavenJavaPublication + dependsOn signLambdaJavaPublication +} \ No newline at end of file