|
| 1 | +/** |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * "License"); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | + |
| 20 | +dependencies { |
| 21 | + // Never use "compile" scope, but make all dependencies either 'implementation', 'runtimeOnly' or 'testCompile'. |
| 22 | + // Note that we never use 'api', because Fineract at least currently is a simple monolithic application ("WAR"), not a library. |
| 23 | + // We also (normally should have) no need to ever use 'compileOnly'. |
| 24 | + |
| 25 | + // Core module dependency |
| 26 | + implementation(project(path: ':fineract-core')) |
| 27 | + |
| 28 | + // PostgreSQL driver for SQL injection prevention utilities |
| 29 | + implementation 'org.postgresql:postgresql' |
| 30 | + |
| 31 | + // Spring Boot Security dependencies |
| 32 | + implementation( |
| 33 | + 'org.springframework.boot:spring-boot-starter-web', |
| 34 | + 'org.springframework.boot:spring-boot-starter-security', |
| 35 | + 'org.springframework.boot:spring-boot-starter-oauth2-authorization-server', |
| 36 | + 'org.springframework.boot:spring-boot-starter-oauth2-resource-server', |
| 37 | + 'org.springframework.boot:spring-boot-starter-oauth2-client', |
| 38 | + 'org.springframework.boot:spring-boot-starter-cache', |
| 39 | + |
| 40 | + 'jakarta.ws.rs:jakarta.ws.rs-api', |
| 41 | + 'org.glassfish.jersey.media:jersey-media-multipart', |
| 42 | + |
| 43 | + 'com.google.guava:guava', |
| 44 | + 'com.google.code.gson:gson', |
| 45 | + |
| 46 | + 'org.apache.commons:commons-lang3', |
| 47 | + |
| 48 | + 'com.jayway.jsonpath:json-path', |
| 49 | + |
| 50 | + 'com.github.spotbugs:spotbugs-annotations', |
| 51 | + 'io.swagger.core.v3:swagger-annotations-jakarta', |
| 52 | + |
| 53 | + 'org.springdoc:springdoc-openapi-starter-webmvc-ui', |
| 54 | + 'org.mapstruct:mapstruct', |
| 55 | + ) |
| 56 | + |
| 57 | + // JPA for security entities |
| 58 | + implementation ('org.springframework.boot:spring-boot-starter-data-jpa') { |
| 59 | + exclude group: 'org.hibernate' |
| 60 | + } |
| 61 | + implementation('org.eclipse.persistence:org.eclipse.persistence.jpa') { |
| 62 | + exclude group: 'org.eclipse.persistence', module: 'jakarta.persistence' |
| 63 | + } |
| 64 | + |
| 65 | + // OWASP ESAPI for security utilities |
| 66 | + implementation('org.owasp.esapi:esapi') { |
| 67 | + exclude group: 'org.slf4j' |
| 68 | + exclude group: 'log4j' |
| 69 | + exclude group: 'commons-logging' |
| 70 | + exclude group: 'commons-collections' |
| 71 | + exclude group: 'commons-lang' |
| 72 | + exclude group: 'spotbugs-annotations' |
| 73 | + exclude group: 'xml-apis' |
| 74 | + } |
| 75 | + |
| 76 | + // Email support for OTP delivery |
| 77 | + implementation ('org.apache.commons:commons-email') { |
| 78 | + exclude group: 'com.sun.mail', module: 'javax.mail' |
| 79 | + exclude group: 'javax.activation', module: 'activation' |
| 80 | + } |
| 81 | + implementation 'com.sun.mail:jakarta.mail' |
| 82 | + |
| 83 | + compileOnly 'org.projectlombok:lombok' |
| 84 | + annotationProcessor 'org.projectlombok:lombok' |
| 85 | + annotationProcessor 'org.mapstruct:mapstruct-processor' |
| 86 | + |
| 87 | + // Test dependencies |
| 88 | + testImplementation( 'io.github.classgraph:classgraph' ) |
| 89 | + testImplementation ('org.springframework.boot:spring-boot-starter-test') { |
| 90 | + exclude group: 'com.jayway.jsonpath', module: 'json-path' |
| 91 | + exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' |
| 92 | + exclude group: 'jakarta.activation' |
| 93 | + exclude group: 'javax.activation' |
| 94 | + exclude group: 'org.skyscreamer' |
| 95 | + } |
| 96 | + testImplementation ('org.mockito:mockito-inline') |
| 97 | + testImplementation 'org.springframework.security:spring-security-test' |
| 98 | +} |
0 commit comments