| /** |
| * 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 { |
| // testCompile dependencies are ONLY used in src/test, not src/main. |
| // Do NOT repeat dependencies which are ALREADY in implementation or runtimeOnly! |
| // |
| tomcat 'org.apache.tomcat:tomcat:10.1.45@zip' |
| def providerMainOutput = project(':fineract-provider').extensions.getByType(SourceSetContainer).named('main').get().output |
| testImplementation( providerMainOutput, |
| project(path: ':fineract-core', configuration: 'runtimeElements'), |
| project(path: ':fineract-accounting', configuration: 'runtimeElements'), |
| project(path: ':fineract-investor', configuration: 'runtimeElements'), |
| project(path: ':fineract-charge', configuration: 'runtimeElements'), |
| project(path: ':fineract-rates', configuration: 'runtimeElements'), |
| project(path: ':fineract-tax', configuration: 'runtimeElements'), |
| project(path: ':fineract-loan', configuration: 'runtimeElements'), |
| project(path: ':fineract-savings', configuration: 'runtimeElements'), |
| project(path: ':fineract-provider', configuration: 'runtimeElements'), |
| project(path: ':fineract-avro-schemas', configuration: 'runtimeElements'), |
| project(path: ':fineract-progressive-loan', configuration: 'runtimeElements') |
| ) |
| |
| // Retrofit client for existing tests |
| testImplementation project(path: ':fineract-client', configuration: 'runtimeElements') |
| |
| // Feign client - exclude fineract-client module to avoid Retrofit/Feign model conflicts |
| // Both generated and hand-written Feign services are available in feign.services package |
| testImplementation(project(path: ':fineract-client-feign', configuration: 'runtimeElements')) { |
| exclude group: 'org.apache.fineract', module: 'fineract-client' |
| } |
| testImplementation ('org.mock-server:mockserver-junit-jupiter') { |
| exclude group: 'com.sun.mail', module: 'mailapi' |
| exclude group: 'javax.servlet', module: 'javax.servlet-api' |
| exclude group: 'javax.validation' |
| } |
| testImplementation ('io.rest-assured:rest-assured') { |
| exclude group: 'commons-logging' |
| exclude group: 'org.apache.sling' |
| exclude group: 'com.sun.xml.bind' |
| } |
| testImplementation 'org.apache.groovy:groovy-xml' |
| testImplementation 'org.apache.groovy:groovy-json' |
| testImplementation 'org.awaitility:awaitility' |
| |
| testCompileOnly 'org.projectlombok:lombok' |
| testAnnotationProcessor 'org.projectlombok:lombok' |
| testImplementation 'org.assertj:assertj-core' |
| |
| testImplementation 'org.mapstruct:mapstruct' |
| testAnnotationProcessor 'org.mapstruct:mapstruct-processor' |
| |
| testImplementation 'org.wiremock:wiremock-standalone' |
| testImplementation 'com.google.guava:guava' |
| } |