Fineract E2E Tests / E2E Tests (Shard 10 of 10) (push) Canceled after 0s
Fineract E2E Tests / E2E Tests (Shard 2 of 10) (push) Canceled after 0s
Fineract Build & Cucumber tests (without E2E tests) / verify (main, build-core) (push) Canceled after 0s
Fineract Documentation build / build (push) Canceled after 0s
Fineract E2E Tests / E2E Tests (Shard 7 of 10) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - MariaDB / test (test-core-2) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - MariaDB / test (test-core-5) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - MySQL / test (test-core-2) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - MySQL / test (test-core-3) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - MySQL / test (test-core-4) (push) Canceled after 0s
Fineract Build & Cucumber tests (without E2E tests) / verify (main, cucumber) (push) Canceled after 0s
Fineract Build & Cucumber tests (without E2E tests) / verify (progressive-loan, build-progressive-loan) (push) Canceled after 0s
Fineract Docker Builds / build (false, docker-compose-postgresql.yml, postgresql) (push) Canceled after 0s
Fineract Docker Builds / build (true, docker-compose.yml, mariadb) (push) Canceled after 0s
Fineract E2E Tests / E2E Tests (Shard 1 of 10) (push) Canceled after 0s
Fineract E2E Tests / E2E Tests (Shard 3 of 10) (push) Canceled after 0s
Fineract E2E Tests / E2E Tests (Shard 4 of 10) (push) Canceled after 0s
Fineract E2E Tests / E2E Tests (Shard 5 of 10) (push) Canceled after 0s
Fineract E2E Tests / E2E Tests (Shard 6 of 10) (push) Canceled after 0s
Fineract E2E Tests / E2E Tests (Shard 8 of 10) (push) Canceled after 0s
Fineract E2E Tests / E2E Tests (Shard 9 of 10) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - MariaDB / test (test-core-1) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - MariaDB / test (test-core-3) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - MariaDB / test (test-core-4) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - MySQL / test (test-core-1) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - MySQL / test (test-core-5) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - PostgreSQL / test (test-core-1) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - PostgreSQL / test (test-core-2) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - PostgreSQL / test (test-core-3) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - PostgreSQL / test (test-core-4) (push) Canceled after 0s
Fineract Cargo & Unit- & Integration tests - PostgreSQL / test (test-core-5) (push) Canceled after 0s
Fineract Liquibase Only mode - PostgreSQL / test (push) Canceled after 0s
Fineract Messaging Smoke Tests / Smoke Test with ActiveMQ (push) Canceled after 0s
Fineract Messaging Smoke Tests / Smoke Test with Kafka (push) Canceled after 0s
One endpoint now answers how many requests wait on every Approval Center tab, so the screen no longer makes a call per tab. - GET /v1/approvals/counts: snapshot, numbers only (held 3s, fresh=true skips). - GET /v1/approvals/counts/stream: Server-Sent Events. A `counts` event is written the moment the numbers change; one shared 1s check serves every open screen and callers counted alike share one query. Keep-alive ping every 15s, stream recycled every 5 minutes. - All 26 tabs are counted by one statement of scalar sub-selects, each the same table/status/office scope/exclusions as the tab's own API. A tab the caller may not see is not asked (permissions mirrored, disbursement for managers only). - Layered: thin API resource, ApprovalCountsReadPlatformService (+Impl), ApprovalCountsStreamService, ApprovalCounterRegistry (one line per tab). - Adds jersey-media-sse (SseEventSink / Sse). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
243 lines
10 KiB
Groovy
243 lines
10 KiB
Groovy
/**
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
* or more contributor license agreements. See the NOTICE file
|
|
* distributed with this work for additional information
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
* to you under the Apache License, Version 2.0 (the
|
|
* "License"); you may not use this file except in compliance
|
|
* with the License. You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing,
|
|
* software distributed under the License is distributed on an
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
* KIND, either express or implied. See the License for the
|
|
* specific language governing permissions and limitations
|
|
* under the License.
|
|
*/
|
|
|
|
dependencies {
|
|
modules {
|
|
module("io.swagger.core.v3:swagger-annotations") {
|
|
replacedBy("io.swagger.core.v3:swagger-annotations-jakarta")
|
|
}
|
|
}
|
|
|
|
implementation(project(path: ':fineract-core'))
|
|
implementation(project(path: ':fineract-cob'))
|
|
implementation(project(path: ':fineract-command'))
|
|
implementation(project(path: ':fineract-validation'))
|
|
implementation(project(path: ':fineract-accounting'))
|
|
implementation(project(path: ':fineract-investor'))
|
|
implementation(project(path: ':fineract-rates'))
|
|
implementation(project(path: ':fineract-charge'))
|
|
implementation(project(path: ':fineract-loan'))
|
|
implementation(project(path: ':fineract-savings'))
|
|
implementation(project(path: ':fineract-current-product'))
|
|
implementation(project(path: ':fineract-branch'))
|
|
implementation(project(path: ':fineract-document'))
|
|
implementation(project(path: ':fineract-progressive-loan'))
|
|
implementation(project(path: ':fineract-report'))
|
|
implementation(project(path: ':fineract-tax'))
|
|
implementation(project(path: ':fineract-loan-origination'))
|
|
implementation(project(path: ':fineract-security'))
|
|
implementation(project(path: ':fineract-working-capital-loan'))
|
|
implementation(project(path: ':fineract-mix'))
|
|
|
|
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
|
|
|
|
// Never use "compile" scope, but make all dependencies either 'implementation', 'runtimeOnly' or 'testCompile'.
|
|
// Note that we never use 'api', because Fineract at least currently is a simple monolithic application ("WAR"), not a library.
|
|
// We also (normally should have) no need to ever use 'compileOnly'.
|
|
|
|
// implementation dependencies are directly used (compiled against) in src/main (and src/test)
|
|
//
|
|
implementation(
|
|
project(path: ':fineract-avro-schemas')
|
|
)
|
|
implementation(
|
|
'org.springframework.boot:spring-boot-starter-web',
|
|
'org.springframework.boot:spring-boot-starter-validation',
|
|
'org.springframework.boot:spring-boot-starter-security',
|
|
'org.springframework.boot:spring-boot-starter-oauth2-authorization-server',
|
|
'org.springframework.boot:spring-boot-starter-cache',
|
|
'org.springframework.boot:spring-boot-starter-oauth2-resource-server',
|
|
'org.springframework.boot:spring-boot-starter-actuator',
|
|
'org.springframework.boot:spring-boot-starter-batch',
|
|
'org.springframework.batch:spring-batch-integration',
|
|
'org.springframework.boot:spring-boot-starter-integration',
|
|
'org.springframework.integration:spring-integration-event',
|
|
'org.springframework.integration:spring-integration-jms',
|
|
'org.springframework.integration:spring-integration-kafka',
|
|
'org.springframework.kafka:spring-kafka',
|
|
|
|
'io.micrometer:micrometer-registry-prometheus',
|
|
'io.micrometer:micrometer-registry-otlp',
|
|
'io.micrometer:micrometer-registry-cloudwatch2',
|
|
|
|
'io.awspring.cloud:spring-cloud-aws-starter',
|
|
|
|
'org.apache.avro:avro',
|
|
'jakarta.ws.rs:jakarta.ws.rs-api',
|
|
'org.glassfish.jersey.media:jersey-media-multipart',
|
|
// Server-Sent Events (SseEventSink, Sse): the Approvals badge is pushed to the screen over one.
|
|
'org.glassfish.jersey.media:jersey-media-sse',
|
|
|
|
'org.springframework:spring-jms',
|
|
'org.springframework:spring-context-support',
|
|
|
|
'com.google.guava:guava',
|
|
'com.google.code.gson:gson',
|
|
|
|
'jakarta.jms:jakarta.jms-api',
|
|
'jakarta.management.j2ee:jakarta.management.j2ee-api',
|
|
|
|
'com.squareup.retrofit2:retrofit',
|
|
'com.squareup.okhttp3:okhttp',
|
|
'com.squareup.okhttp3:okhttp-urlconnection',
|
|
|
|
// TOTP (Google Authenticator) — secret generation, QR code data URI, code verification.
|
|
// Bundles ZXing transitively for QR PNG output (used by ZxingPngQrGenerator).
|
|
'dev.samstevens.totp:totp:1.7.1',
|
|
|
|
// Nimbus JOSE+JWT — RS256 sign/verify for the IMPS_BANK_API_SPEC_CBS_1.0 envelope
|
|
// (see org.apache.fineract.infrastructure.imps.crypto.ImpsJwtUtil).
|
|
'com.nimbusds:nimbus-jose-jwt:9.37',
|
|
|
|
'org.apache.commons:commons-lang3',
|
|
'commons-io:commons-io',
|
|
'org.apache.poi:poi',
|
|
'org.apache.poi:poi-ooxml',
|
|
'org.apache.tika:tika-core',
|
|
'org.apache.tika:tika-parser-microsoft-module',
|
|
'org.apache.tika:tika-parser-miscoffice-module',
|
|
|
|
'org.liquibase:liquibase-core',
|
|
|
|
'com.github.librepdf:openpdf',
|
|
'com.github.spullara.mustache.java:compiler',
|
|
'com.jayway.jsonpath:json-path',
|
|
|
|
'javax.cache:cache-api',
|
|
|
|
'com.github.spotbugs:spotbugs-annotations',
|
|
'io.swagger.core.v3:swagger-annotations-jakarta',
|
|
|
|
'com.google.cloud.sql:mysql-socket-factory-connector-j-8',
|
|
'com.squareup.retrofit2:converter-gson',
|
|
'com.sun.activation:jakarta.activation',
|
|
'com.sun.mail:jakarta.mail',
|
|
|
|
'org.springframework.boot:spring-boot-starter-mail',
|
|
'org.springdoc:springdoc-openapi-starter-webmvc-ui',
|
|
'org.mapstruct:mapstruct',
|
|
|
|
'io.github.resilience4j:resilience4j-spring-boot3',
|
|
'org.reflections:reflections',
|
|
)
|
|
|
|
implementation 'software.amazon.msk:aws-msk-iam-auth'
|
|
|
|
implementation 'io.swagger.core.v3:swagger-jaxrs2-jakarta'
|
|
|
|
implementation ('org.apache.commons:commons-email') {
|
|
exclude group: 'com.sun.mail', module: 'javax.mail'
|
|
exclude group: 'javax.activation', module: 'activation'
|
|
}
|
|
|
|
implementation('org.springframework.boot:spring-boot-starter-jersey') {
|
|
exclude group: 'org.glassfish.hk2.external', module: 'aopalliance-repackaged'
|
|
exclude group: 'org.glassfish.hk2', module: 'hk2-runlevel'
|
|
exclude group: 'org.hibernate.validator', module: 'hibernate-validator'
|
|
exclude group: 'jakarta.activation', module: 'jakarta.activation-api'
|
|
}
|
|
implementation('org.dom4j:dom4j') {
|
|
exclude group: 'javax.xml.bind'
|
|
}
|
|
implementation ('jakarta.xml.bind:jakarta.xml.bind-api') {
|
|
exclude group: 'jakarta.activation'
|
|
}
|
|
implementation ('org.apache.activemq:activemq-client') {
|
|
exclude group: 'org.apache.geronimo.specs'
|
|
exclude group: 'javax.annotation', module: 'javax.annotation-api'
|
|
}
|
|
implementation ('org.springframework.boot:spring-boot-starter-data-jpa') {
|
|
exclude group: 'org.hibernate'
|
|
}
|
|
implementation('org.eclipse.persistence:org.eclipse.persistence.jpa') {
|
|
exclude group: 'org.eclipse.persistence', module: 'jakarta.persistence'
|
|
}
|
|
implementation ('org.quartz-scheduler:quartz') {
|
|
exclude group: 'com.zaxxer', module: 'HikariCP-java7'
|
|
}
|
|
implementation('org.apache.commons:commons-csv'){}
|
|
implementation ('software.amazon.awssdk:s3') {
|
|
}
|
|
implementation ('software.amazon.awssdk:auth') {
|
|
}
|
|
|
|
implementation ('org.mnode.ical4j:ical4j') {
|
|
exclude group: 'commons-logging'
|
|
exclude group: 'javax.activation'
|
|
exclude group: 'com.sun.mail', module: 'javax.mail'
|
|
}
|
|
|
|
implementation ('org.ehcache:ehcache') {
|
|
exclude group: 'com.sun.activation'
|
|
}
|
|
|
|
implementation('org.owasp.esapi:esapi') {
|
|
exclude group: 'org.slf4j'
|
|
exclude group: 'log4j'
|
|
exclude group: 'commons-logging'
|
|
exclude group: 'commons-collections'
|
|
exclude group: 'commons-lang'
|
|
exclude group: 'spotbugs-annotations'
|
|
exclude group: 'xml-apis'
|
|
}
|
|
|
|
runtimeOnly('org.glassfish.jaxb:jaxb-runtime') {
|
|
exclude group: 'com.sun.activation'
|
|
}
|
|
|
|
// runtimeOnly dependencies are things that Fineract code has no direct compile time dependency on, but which must be present at run-time
|
|
runtimeOnly(
|
|
// Although fineract (at the time of writing) doesn't have any compile time dep. on httpclient,
|
|
// it's useful to have this for the Spring Boot TestRestTemplate http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-rest-templates-test-utility
|
|
'org.apache.httpcomponents:httpclient'
|
|
)
|
|
|
|
compileOnly 'org.projectlombok:lombok'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
annotationProcessor 'org.mapstruct:mapstruct-processor'
|
|
|
|
implementation 'ch.qos.logback.contrib:logback-json-classic'
|
|
implementation 'ch.qos.logback.contrib:logback-jackson'
|
|
implementation 'org.codehaus.janino:janino'
|
|
|
|
implementation 'org.apache.commons:commons-math3'
|
|
|
|
implementation 'io.github.classgraph:classgraph'
|
|
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
|
|
|
// testCompile dependencies are ONLY used in src/test, not src/main.
|
|
// Do NOT repeat dependencies which are ALREADY in implementation or runtimeOnly!
|
|
//
|
|
testImplementation( 'io.cucumber:cucumber-spring',
|
|
'io.github.classgraph:classgraph',
|
|
'io.cucumber:cucumber-core',
|
|
'io.cucumber:cucumber-java',
|
|
'io.cucumber:cucumber-java8',
|
|
'io.cucumber:cucumber-junit-platform-engine',
|
|
)
|
|
testImplementation ('org.springframework.boot:spring-boot-starter-test') {
|
|
exclude group: 'com.jayway.jsonpath', module: 'json-path'
|
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
|
exclude group: 'jakarta.activation'
|
|
exclude group: 'javax.activation'
|
|
exclude group: 'org.skyscreamer'
|
|
}
|
|
testImplementation ('org.mockito:mockito-inline')
|
|
}
|