mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-02 21:03:34 +03:00
# Description of Changes - Upgraded google-java-format from 1.28.0 to 1.35.0. - Removed the broad `suppressLintsFor` workaround for the `google-java-format` step. - Ensured the shared `gradle/spotless.gradle` configuration is recognized by the relevant CI path filters and repository automation. - Kept the shared formatter configuration available to all backend modules. - Verified that google-java-format 1.35.0 runs successfully on JDK 25 for the Common, Core, and SaaS modules. - Confirmed that the previous claim about a general Guava 32.x crash on JDK 24/25 no longer justifies suppressing all formatter lint failures. ### Verification Verified with Temurin JDK 25.0.3 and google-java-format 1.35.0. The formatter still depends on Guava 32.1.3-jre, and no `suppressLintsFor` configuration is present. ```bash ./gradlew \ :common:spotlessJavaCheck \ :stirling-pdf:spotlessJavaCheck \ --rerun-tasks ``` Result: ```text > Task :common:spotlessJava > Task :common:spotlessJavaCheck > Task :stirling-pdf:spotlessJava > Task :stirling-pdf:spotlessJavaCheck BUILD SUCCESSFUL in 26s 4 actionable tasks: 4 executed ``` Using `--rerun-tasks` ensured that the formatter was executed and that the result did not come from the Gradle task cache. --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### Translations (if applicable) - [ ] I ran [`scripts/counter_translation.py`](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/counter_translation.md) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have run `task check` to verify linters, typechecks, and tests pass - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#7-testing) for more details. --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
92 lines
4.8 KiB
Groovy
92 lines
4.8 KiB
Groovy
repositories {
|
|
maven { url = "https://repository.jboss.org/" }
|
|
maven { url = "https://build.shibboleth.net/maven/releases" }
|
|
}
|
|
|
|
bootRun {
|
|
enabled = false
|
|
}
|
|
dependencies {
|
|
implementation project(':common')
|
|
api "com.google.guava:guava:${guavaVersion}"
|
|
|
|
api 'org.springframework:spring-jdbc'
|
|
api 'org.springframework:spring-webmvc'
|
|
api 'org.springframework.session:spring-session-core'
|
|
api "org.springframework.security:spring-security-core:$springSecuritySamlVersion"
|
|
api "org.springframework.security:spring-security-saml2-service-provider:$springSecuritySamlVersion"
|
|
api 'org.springframework.boot:spring-boot-starter-jetty'
|
|
api 'org.springframework.boot:spring-boot-starter-security'
|
|
api 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
api 'org.springframework.boot:spring-boot-starter-security-oauth2-client'
|
|
// MCP server (RFC 8707 audience binding + RFC 9728 metadata) - resource-server side only.
|
|
// Brings nimbus-jose-jwt onto the proprietary classpath if not already transitive via
|
|
// oauth2-client; on Boot 4.0.6 the delta is around 130KB because nimbus is already pulled.
|
|
api 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
|
|
api 'org.springframework.boot:spring-boot-starter-mail'
|
|
api 'org.springframework.boot:spring-boot-starter-cache'
|
|
api 'com.github.ben-manes.caffeine:caffeine'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
|
api 'io.swagger.core.v3:swagger-core-jakarta:2.2.46'
|
|
implementation "com.bucket4j:bucket4j_jdk17-core:${bucket4jVersion}"
|
|
// Lettuce-backed Bucket4j ProxyManager used by ValkeyRateLimitStore for cluster-wide
|
|
// token-bucket rate limiting (parity with in-process Bucket4j semantics; no fixed-window
|
|
// boundary doubling).
|
|
implementation "com.bucket4j:bucket4j_jdk17-lettuce:${bucket4jVersion}"
|
|
|
|
// https://mvnrepository.com/artifact/com.bucket4j/bucket4j_jdk17
|
|
implementation "org.bouncycastle:bcprov-jdk18on:$bouncycastleVersion"
|
|
|
|
implementation "com.google.code.gson:gson:${gsonVersion}"
|
|
|
|
// jinjava/jjwt transitively request older Jackson 2 versions; declare the current
|
|
// version directly so it is selected consistently (root build.gradle pins are the fallback).
|
|
runtimeOnly "com.fasterxml.jackson.core:jackson-core:${jackson2Version}"
|
|
runtimeOnly "com.fasterxml.jackson.core:jackson-databind:${jackson2Version}"
|
|
|
|
implementation("com.hubspot.jinjava:jinjava:${jinjavaVersion}") {
|
|
// Compile-time-only annotation artifacts (class-retention annotations, not needed at
|
|
// runtime) whose declared licences (LGPL / none) fail the licence compatibility check.
|
|
exclude group: 'com.google.code.findbugs', module: 'annotations'
|
|
exclude group: 'org.derive4j', module: 'derive4j-annotation'
|
|
exclude group: 'com.hubspot.immutables', module: 'hubspot-style'
|
|
exclude group: 'com.hubspot.immutables', module: 'immutable-collection-encodings'
|
|
}
|
|
|
|
api 'io.micrometer:micrometer-registry-prometheus'
|
|
|
|
api "io.jsonwebtoken:jjwt-api:${jwtVersion}"
|
|
runtimeOnly "io.jsonwebtoken:jjwt-impl:${jwtVersion}"
|
|
runtimeOnly "io.jsonwebtoken:jjwt-jackson:${jwtVersion}"
|
|
runtimeOnly 'com.h2database:h2:2.3.232' // Don't upgrade h2database - file format incompatible with 2.4.x, would break existing user databases
|
|
runtimeOnly 'org.postgresql:postgresql:42.7.11'
|
|
implementation('com.coveo:saml-client:5.0.0') {
|
|
exclude group: 'org.opensaml', module: 'opensaml-core'
|
|
}
|
|
|
|
implementation "software.amazon.awssdk:s3:${awsSdkVersion}"
|
|
implementation "software.amazon.awssdk:url-connection-client:${awsSdkVersion}"
|
|
|
|
// @DataJpaTest slice (Boot 4 ships test slices as separate starters, like webmvc-test at the
|
|
// root) so policy.source repositories can be exercised against embedded H2.
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-data-jpa-test'
|
|
|
|
// Testcontainers: real MinIO/LocalStack (S3) and Valkey for integration tests in CI without
|
|
// manually-started instances. Tests skip cleanly when Docker is unavailable.
|
|
testImplementation "org.testcontainers:testcontainers:${testcontainersMinioVersion}"
|
|
testImplementation "org.testcontainers:minio:${testcontainersMinioVersion}"
|
|
testImplementation "org.testcontainers:localstack:${testcontainersMinioVersion}"
|
|
testImplementation "org.testcontainers:postgresql:${testcontainersMinioVersion}"
|
|
testImplementation "org.testcontainers:junit-jupiter:${testcontainersMinioVersion}"
|
|
}
|
|
|
|
tasks.register('prepareKotlinBuildScriptModel') {}
|
|
|
|
tasks.register('type3SignatureTool', JavaExec) {
|
|
group = 'type3'
|
|
description = 'Dump Type3 font signatures and glyph coverage for the Type3 library'
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
mainClass = 'stirling.software.SPDF.service.pdfjson.type3.tool.Type3SignatureTool'
|
|
standardInput = System.in
|
|
}
|