-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
102 lines (94 loc) · 4.09 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
plugins {
id 'org.springframework.boot' version '2.7.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'com.diffplug.spotless' version '6.19.0' apply false
}
group = 'org.mifos.connector'
sourceCompatibility = '17'
repositories {
mavenCentral()
maven {
url = uri('https://jfrog.sandbox.fynarfin.io/artifactory/fyn-libs-snapshot')
}
}
dependencies {
implementation 'org.apache.camel.springboot:camel-spring-boot-starter:3.12.0'
implementation('org.springframework.boot:spring-boot-starter-web:3.0.4')
implementation('org.springframework.boot:spring-boot-starter-actuator:3.0.4')
implementation 'org.apache.camel:camel-endpointdsl:3.12.0'
implementation 'org.apache.camel:camel-jetty:3.12.0'
implementation 'org.apache.camel:camel-undertow:3.12.0'
implementation 'org.apache.camel:camel-http:3.12.0'
implementation 'io.camunda:zeebe-client-java:8.1.9'
implementation 'org.json:json:20230227'
implementation 'org.mifos:ph-ee-connector-common:1.5.1-SNAPSHOT'
implementation 'org.apache.camel.springboot:camel-jackson-starter:3.12.0'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'io.netty:netty-bom:4.1.90.Final'
compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
}
allprojects {
apply plugin: 'com.diffplug.spotless'
// Configuration for the spotless plugin
// https://github.com/diffplug/spotless/tree/main/plugin-gradle
spotless {
format 'misc', {
target '**/*.md', '**/*.properties', '**/.gitignore', '**/.openapi-generator-ignore', '**/*.yml', '**/*.xml', '**/**.json', '**/*.sql'
targetExclude '**/build/**', '**/bin/**', '**/.settings/**', '**/.idea/**', '**/.gradle/**', '**/gradlew.bat'
indentWithSpaces(4)
endWithNewline()
trimTrailingWhitespace()
}
groovyGradle {
target '*.gradle', '**/*.gradle'
targetExclude '**/build/**'
greclipse()
indentWithSpaces(4)
endWithNewline()
trimTrailingWhitespace()
}
java {
targetExclude '**/build/**', '**/bin/**', '**/out/**', '**/megalinter-reports/**'
importOrder() //sort imports alphabetically
removeUnusedImports()
eclipse().configFile "$rootDir/config/dev-formatter.xml"
endWithNewline()
trimTrailingWhitespace()
// Enforce style modifier order
custom 'Modifier ordering', {
def modifierRanking = [
public : 1,
protected : 2,
private : 3,
abstract : 4,
default : 5,
static : 6,
final : 7,
transient : 8,
volatile : 9,
synchronized: 10,
native : 11,
strictfp : 12]
// Find any instance of multiple modifiers. Lead with a non-word character to avoid
// accidental matching against for instance, "an alternative default value"
it.replaceAll(/\W(?:public |protected |private |abstract |default |static |final |transient |volatile |synchronized |native |strictfp ){2,}/, {
// Do not replace the leading non-word character. Identify the modifiers
it.replaceAll(/(?:public |protected |private |abstract |default |static |final |transient |volatile |synchronized |native |strictfp ){2,}/, {
// Sort the modifiers according to the ranking above
it.split().sort({ modifierRanking[it] }).join(' ') + ' '
}
)
}
)
}
}
lineEndings 'UNIX'
}
compileJava.dependsOn spotlessCheck
}
tasks.named('test') {
useJUnitPlatform()
}