mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
Bumps org.snakeyaml:snakeyaml-engine from 3.0.1 to 3.1.1. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
67 lines
3.4 KiB
Groovy
67 lines
3.4 KiB
Groovy
// Configure bootRun to disable it or point to a main class
|
|
bootRun {
|
|
enabled = false
|
|
}
|
|
dependencies {
|
|
api "com.google.guava:guava:${guavaVersion}"
|
|
api 'org.springframework.boot:spring-boot-starter-webmvc'
|
|
api 'org.springframework.boot:spring-boot-starter-aspectj'
|
|
api 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20260313.1'
|
|
api 'com.fathzer:javaluator:3.0.6'
|
|
api 'com.posthog.java:posthog:1.2.0'
|
|
api "org.apache.commons:commons-lang3:${commonsLang3}"
|
|
api 'com.drewnoakes:metadata-extractor:2.21.0' // Image metadata extractor
|
|
api 'com.vladsch.flexmark:flexmark-html2md-converter:0.64.8'
|
|
api "org.apache.pdfbox:pdfbox:$pdfboxVersion"
|
|
api "org.apache.pdfbox:pdfbox-io:$pdfboxVersion"
|
|
api "org.apache.pdfbox:xmpbox:$pdfboxVersion"
|
|
api "org.apache.pdfbox:preflight:$pdfboxVersion"
|
|
api 'com.github.junrar:junrar:8.0.0' // RAR archive support for CBR files
|
|
api 'jakarta.servlet:jakarta.servlet-api:6.1.0'
|
|
api 'org.snakeyaml:snakeyaml-engine:3.1.1'
|
|
api "org.springdoc:springdoc-openapi-starter-webmvc-ui:3.0.3"
|
|
// Simple Java Mail for EML/MSG parsing (replaces direct Angus Mail usage)
|
|
api 'org.simplejavamail:simple-java-mail:9.3.2'
|
|
api 'org.simplejavamail:outlook-module:9.3.2' // MSG file support
|
|
api 'jakarta.mail:jakarta.mail-api:2.1.5'
|
|
runtimeOnly 'org.eclipse.angus:angus-mail:2.0.5'
|
|
|
|
// Tabula table extraction — used by the shared PDF parser and directly by downstream modules.
|
|
// api-scoped so downstream modules (core, proprietary) retain it on their compile classpath.
|
|
api ('technology.tabula:tabula:1.0.5') {
|
|
exclude group: 'org.slf4j', module: 'slf4j-simple'
|
|
exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on'
|
|
exclude group: 'com.google.code.gson', module: 'gson'
|
|
}
|
|
|
|
api "com.stirling:jpdfium:${jpdfiumVersion}"
|
|
|
|
// -PjpdfiumPlatforms=all|none|<csv of linux-x64,linux-arm64,darwin-x64,darwin-arm64,windows-x64>
|
|
// 'none' skips natives entirely (windows-arm64 builds, until JPDFium ships that platform).
|
|
def jpdfiumPlatformsProp = (project.findProperty('jpdfiumPlatforms') ?: 'all').toString().trim()
|
|
def jpdfiumAllPlatforms = ['linux-x64', 'linux-arm64', 'darwin-x64', 'darwin-arm64', 'windows-x64']
|
|
def jpdfiumPlatforms
|
|
if (jpdfiumPlatformsProp == 'all') {
|
|
jpdfiumPlatforms = jpdfiumAllPlatforms
|
|
} else if (jpdfiumPlatformsProp == 'none') {
|
|
jpdfiumPlatforms = []
|
|
} else {
|
|
jpdfiumPlatforms = jpdfiumPlatformsProp.split(',').collect { it.trim() }.findAll { it }
|
|
}
|
|
def jpdfiumInvalid = jpdfiumPlatforms.findAll { !jpdfiumAllPlatforms.contains(it) }
|
|
if (jpdfiumInvalid) {
|
|
throw new GradleException("Unknown jpdfiumPlatforms value(s): ${jpdfiumInvalid.join(', ')}. " +
|
|
"Valid: ${jpdfiumAllPlatforms.join(', ')}, 'all' or 'none'.")
|
|
}
|
|
logger.lifecycle("JPDFium native platforms: ${jpdfiumPlatforms ? jpdfiumPlatforms.join(', ') : 'none'}")
|
|
jpdfiumPlatforms.each { platform ->
|
|
runtimeOnly "com.stirling:jpdfium-natives-${platform}:${jpdfiumVersion}"
|
|
}
|
|
|
|
// Bucket4j (local in-process token bucket for RateLimitStore default impl)
|
|
implementation "com.bucket4j:bucket4j_jdk17-core:${bucket4jVersion}"
|
|
|
|
// ArchUnit: enforces module dependency direction (see ArchitectureTest)
|
|
testImplementation "com.tngtech.archunit:archunit-junit5:${archunitVersion}"
|
|
}
|