gradle path to /app

This commit is contained in:
Anthony Stirling
2025-07-15 15:40:56 +01:00
parent 3d1b5890c7
commit 57cf5d4812
30 changed files with 266 additions and 71 deletions

View File

@@ -6,7 +6,6 @@
# ___) || | | || _ <| |___ | || |\ | |_| |_____| __/| |_| | _| #
# |____/ |_| |___|_| \_\_____|___|_| \_|\____| |_| |____/|_| #
# #
# Custom setting.yml file with all endpoints disabled to only be used for testing purposes #
# Do not comment out any entry, it will be removed on next startup #
# If you want to override with environment parameter follow parameter naming SECURITY_INITIALLOGIN_USERNAME #
#############################################################################################################
@@ -142,7 +141,7 @@ ui:
appNameNavbar: '' # name displayed on the navigation bar
languages: [] # If empty, all languages are enabled. To display only German and Polish ["de_DE", "pl_PL"]. British English is always enabled.
endpoints: # All the possible endpoints are disabled
endpoints:
toRemove: [crop, merge-pdfs, multi-page-layout, overlay-pdfs, pdf-to-single-page, rearrange-pages, remove-image-pdf, remove-pages, rotate-pdf, scale-pages, split-by-size-or-count, split-pages, split-pdf-by-chapters, split-pdf-by-sections, add-password, add-watermark, auto-redact, cert-sign, get-info-on-pdf, redact, remove-cert-sign, remove-password, sanitize-pdf, validate-signature, file-to-pdf, html-to-pdf, img-to-pdf, markdown-to-pdf, pdf-to-csv, pdf-to-html, pdf-to-img, pdf-to-markdown, pdf-to-pdfa, pdf-to-presentation, pdf-to-text, pdf-to-word, pdf-to-xml, url-to-pdf, add-image, add-page-numbers, add-stamp, auto-rename, auto-split-pdf, compress-pdf, decompress-pdf, extract-image-scans, extract-images, flatten, ocr-pdf, remove-blanks, repair, replace-invert-pdf, show-javascript, update-metadata, filter-contains-image, filter-contains-text, filter-file-size, filter-page-count, filter-page-rotation, filter-page-size, add-attachments] # list endpoints to disable (e.g. ['img-to-pdf', 'remove-pages'])
groupsToRemove: [] # list groups to disable (e.g. ['LibreOffice'])
@@ -153,7 +152,7 @@ metrics:
AutomaticallyGenerated:
key: cbb81c0f-50b1-450c-a2b5-89ae527776eb
UUID: 10dd4fba-01fa-4717-9b78-3dc4f54e398a
appVersion: 0.44.3
appVersion: 1.0.2
processExecutor:
sessionLimit: # Process executor instances limits

View File

@@ -1,16 +1,16 @@
#!/bin/bash
# Find project root by locating build.gradle
# Find project root by locating app/build.gradle
find_root() {
local dir="$PWD"
while [[ "$dir" != "/" ]]; do
if [[ -f "$dir/build.gradle" ]]; then
if [[ -f "$dir/app/build.gradle" ]]; then
echo "$dir"
return 0
fi
dir="$(dirname "$dir")"
done
echo "Error: build.gradle not found" >&2
echo "Error: app/build.gradle not found" >&2
exit 1
}
@@ -175,7 +175,7 @@ compare_file_lists() {
# Get the expected version from Gradle once
get_expected_version() {
./gradlew printVersion --quiet | tail -1
cd app && ./gradlew printVersion --quiet | tail -1
}
# Function to verify the application version
@@ -266,7 +266,7 @@ main() {
export DISABLE_ADDITIONAL_FEATURES=true
# Run the gradlew build command and check if it fails
if ! ./gradlew clean build; then
if ! (cd app && ./gradlew clean build); then
echo "Gradle build failed with security disabled, exiting script."
exit 1
fi
@@ -309,7 +309,7 @@ main() {
export DISABLE_ADDITIONAL_FEATURES=false
# Run the gradlew build command and check if it fails
if ! ./gradlew clean build; then
if ! (cd app && ./gradlew clean build); then
echo "Gradle build failed with security enabled, exiting script."
exit 1
fi

View File

@@ -75,8 +75,8 @@ build_and_test() {
local compose_file="${docker_compose_base}${build_type}${compose_suffix}"
# Gradle build with or without security
echo "Running ./gradlew clean build with security=$enable_security..."
./gradlew clean build
echo "Running cd app && ./gradlew clean build with security=$enable_security..."
cd app && ./gradlew clean build
if [ $? -ne 0 ]; then
echo "Gradle build failed, exiting script."