Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ buildscript {
plugins {
id 'com.github.hierynomus.license' version '0.15.0'
id 'org.nosphere.apache.rat' version '0.6.0'
id 'com.jfrog.artifactory' version '4.15.1'
id 'org.springframework.boot' version '2.2.6.RELEASE'
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id 'com.jfrog.artifactory' version '4.18.2'
id 'org.springframework.boot' version '2.4.1'
id "io.spring.dependency-management" version "1.0.10.RELEASE"
id 'maven-publish'
id 'java'
id 'idea'
Expand All @@ -38,7 +38,7 @@ dependencies {
compile(
[group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign'],
[group: 'org.apache.fineract.cn', name: 'api', version: versions.frameworkapi],
[group: 'org.hibernate', name: 'hibernate-validator', version: versions.validator]
[group: 'org.hibernate.validator', name: 'hibernate-validator', version: versions.hibernatevalidator]
)

testCompile(
Expand Down
14 changes: 7 additions & 7 deletions component-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@

buildscript {
ext {
springBootVersion = '2.2.6.RELEASE'
springBootVersion = '2.4.1'
}

repositories {
jcenter()
}

dependencies {
classpath("org.asciidoctor:asciidoctor-gradle-plugin:1.5.3")
classpath("org.asciidoctor:asciidoctor-gradle-plugin:1.5.7")
}
}

plugins {
id 'com.github.hierynomus.license' version '0.15.0'
id 'org.nosphere.apache.rat' version '0.6.0'
id 'com.jfrog.artifactory' version '4.15.1'
id 'org.springframework.boot' version '2.2.6.RELEASE'
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id 'com.jfrog.artifactory' version '4.18.2'
id 'org.springframework.boot' version '2.4.1'
id "io.spring.dependency-management" version "1.0.10.RELEASE"
id 'maven-publish'
id 'java'
id 'idea'
Expand All @@ -56,9 +56,9 @@ dependencies {
[group: 'org.apache.fineract.cn', name: 'api', version: versions.frameworkapi],
[group: 'org.apache.fineract.cn', name: 'test', version: versions.frameworktest],
[group: 'org.apache.fineract.cn', name: 'lang', version: versions.frameworklang],
[group: 'org.springframework.boot', name: 'spring-boot-starter-test'],
[group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '2.4.1'],
[group: 'org.springframework.restdocs', name: 'spring-restdocs-mockmvc'],
[group: 'junit', name: 'junit', version: '4.12']
[group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.7.0']
)
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
14 changes: 10 additions & 4 deletions importer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,33 @@

buildscript {
ext {
springBootVersion = '2.2.6.RELEASE'
springBootVersion = '2.4.1'
}

repositories {
jcenter()
}

dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.10.RELEASE"
}
}

plugins {
id 'com.github.hierynomus.license' version '0.15.0'
id 'org.nosphere.apache.rat' version '0.6.0'
id 'com.jfrog.artifactory' version '4.15.1'
id 'org.springframework.boot' version '2.2.6.RELEASE'
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id 'com.jfrog.artifactory' version '4.18.2'
id 'org.springframework.boot' version '2.4.1'
id "io.spring.dependency-management" version "1.0.10.RELEASE"
id 'maven-publish'
id 'java'
id 'idea'
}

apply from: '../shared.gradle'

apply plugin: "io.spring.dependency-management"

bootJar {
enabled = false
}
Expand Down
19 changes: 12 additions & 7 deletions service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,31 @@

buildscript {
ext {
springBootVersion = '2.2.6.RELEASE'
springBootVersion = '2.4.1'
}
repositories {
jcenter()
}
dependencies {
classpath 'io.spring.gradle:dependency-management-plugin:1.0.10.RELEASE'
}
}

plugins {
id 'com.github.hierynomus.license' version '0.15.0'
id 'org.nosphere.apache.rat' version '0.6.0'
id 'com.jfrog.artifactory' version '4.15.1'
id 'org.springframework.boot' version '2.2.6.RELEASE'
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id 'com.jfrog.artifactory' version '4.18.2'
id 'org.springframework.boot' version '2.4.1'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'maven-publish'
id 'java'
id 'idea'
}

apply from: '../shared.gradle'

apply plugin: 'io.spring.dependency-management'

bootJar {
enabled = true
classifier = 'boot'
Expand All @@ -56,9 +61,9 @@ dependencies {
[group: 'org.apache.fineract.cn', name: 'cassandra', version: versions.frameworkcassandra],
[group: 'org.apache.fineract.cn', name: 'postgresql', version: versions.frameworkpostgresql],
[group: 'org.apache.fineract.cn', name: 'command', version: versions.frameworkcommand],
[group: 'org.hibernate', name: 'hibernate-validator', version: versions.validator],
[group: 'io.netty', name: 'netty-all', version: '4.1.39.Final'],
[group: 'io.netty', name: 'netty-transport-native-epoll', version: '4.1.39.Final']
[group: 'org.hibernate.validator', name: 'hibernate-validator', version: versions.hibernatevalidator],
[group: 'io.netty', name: 'netty-all', version: '4.1.55.Final'],
[group: 'io.netty', name: 'netty-transport-native-epoll', version: '4.1.55.Final']
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
@EnableAutoConfiguration
Expand All @@ -56,7 +55,7 @@
CustomerManager.class
}
)
public class AccountingServiceConfiguration extends WebMvcConfigurerAdapter {
public class AccountingServiceConfiguration implements WebMvcConfigurer {

public AccountingServiceConfiguration() {
super();
Expand All @@ -67,8 +66,4 @@ public Logger logger() {
return LoggerFactory.getLogger(ServiceConstants.LOGGER_NAME);
}

@Override
public void configurePathMatch(final PathMatchConfigurer configurer) {
configurer.setUseSuffixPatternMatch(Boolean.FALSE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public String deleteAccount(final DeleteAccountCommand deleteAccountCommand) {
final AccountEntity accountEntity = this.accountRepository.findByIdentifier(accountIdentifier);

final List<CommandEntity> commandEntities = this.commandRepository.findByAccount(accountEntity);
this.commandRepository.delete(commandEntities);
this.commandRepository.deleteAll(commandEntities);

this.accountRepository.delete(accountEntity);
return accountIdentifier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static Pageable create(
final Integer sizeToUse = size != null ? size : 20;
final String sortColumnToUse = sortColumn != null ? sortColumn : "identifier";
final Sort.Direction direction = sortDirection != null ? Sort.Direction.valueOf(sortDirection.toUpperCase()) : Sort.Direction.ASC;
return new PageRequest(pageIndexToUse, sizeToUse, direction, sortColumnToUse);
return PageRequest.of(pageIndexToUse, sizeToUse, direction, sortColumnToUse);
}

}
15 changes: 7 additions & 8 deletions shared.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ ext.versions = [
frameworktest : 'spring_boot_2-SNAPSHOT',
frameworkasync : 'spring_boot_2-SNAPSHOT',
frameworkcustomer : 'spring_boot_2-SNAPSHOT',
apachecsvreader : '1.4',
validator : '6.1.3.Final',
apachecsvreader : '1.8',
hibernatevalidator : '7.0.0.Final',
]

tasks.withType(JavaCompile) {
Expand All @@ -45,25 +45,24 @@ repositories {

dependencyManagement {
imports {
mavenBom 'io.spring.platform:platform-bom:Cairo-SR8'
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Hoxton.SR4'
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Hoxton.SR9'
}
}

// override certain dependency provided by Spring platform using newer releases
ext['cassandra.version'] = '3.6'
ext['cassandra-driver.version'] = '3.1.2'
ext['cassandra.version'] = '3.11.9'
ext['cassandra-driver.version'] = '4.9.0'
ext['activemq.version'] = '5.13.2'
ext['spring-data-releasetrain.version'] = 'Gosling-SR2A'

dependencies {
compile(
[group: 'com.google.code.findbugs', name: 'jsr305'],
[group: 'com.github.spotbugs', name: 'spotbugs', version: '4.2.0'],
[group: 'org.apache.fineract.cn', name: 'postgresql', version: versions.frameworkpostgresql]
)

testCompile(
[group: 'org.springframework.boot', name: 'spring-boot-starter-test']
[group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '2.4.1']
)
}

Expand Down