forked from openMF/mifos-reporting-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
129 lines (113 loc) · 4.49 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
plugins {
id 'java-library'
id 'java-library-distribution'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
}
repositories {
jcenter()
maven { url 'https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/' }
// maven { url 'https://nexus.pentaho.org/content/groups/omni/' }
// https://github.com/pentaho/mondrian/issues/1054
// https://jira.pentaho.com/browse/PDI-18983
}
dependencyManagement {
dependencies {
dependency 'pentaho-reporting-engine:pentaho-reporting-engine-classic-core:3.9.1-GA'
dependencySet(group: 'pentaho-reporting-engine', version: '3.9.1-GA') {
entry 'pentaho-reporting-engine-classic-extensions'
entry 'pentaho-reporting-engine-classic-extensions-scripting'
entry 'pentaho-reporting-engine-wizard-core'
}
/*
dependencySet(group: 'pentaho-report-designer', version: '3.9.1-GA') {
entry 'pentaho-reporting-engine-wizard-xul'
}
*/
dependencySet(group: 'pentaho-library', version: '1.2.8') {
entry 'libbase'
entry 'libdocbundle'
entry 'libfonts'
entry 'libformat'
entry 'libformula'
entry 'libloader'
entry 'librepository'
entry 'libserializer'
entry 'libsparkline'
entry 'libxml'
}
}
}
dependencies {
compileOnly(
// Fineract!
files("../fineract/fineract-provider/build/classes/java/main/"),
// Fineract dependencies (TODO version should *NOT* be specified here...)
'org.slf4j:slf4j-api:1.7.30',
'org.apache.openjpa:openjpa:3.1.2',
'org.apache.commons:commons-lang3:3.10',
'org.springframework:spring-context:5.2.6.RELEASE',
'org.springframework.security:spring-security-core:5.3.4.RELEASE',
'org.springframework.data:spring-data-commons:2.3.4.RELEASE',
'javax.ws.rs:jsr311-api:1.1.1',
)
implementation(
// Pentaho..
'pentaho-reporting-engine:pentaho-reporting-engine-classic-core',
'pentaho-reporting-engine:pentaho-reporting-engine-classic-extensions',
'pentaho-reporting-engine:pentaho-reporting-engine-classic-extensions-scripting',
'pentaho-reporting-engine:pentaho-reporting-engine-wizard-core',
// N/A: 'pentaho-report-designer:pentaho-reporting-engine-wizard-xul',
'pentaho-library:libbase',
'pentaho-library:libdocbundle',
'pentaho-library:libfonts',
'pentaho-library:libformat',
'pentaho-library:libformula',
'pentaho-library:libloader',
'pentaho-library:librepository',
'pentaho-library:libserializer',
'pentaho-library:libsparkline',
'pentaho-library:libxml'
)
testImplementation(
'org.junit.jupiter:junit-jupiter-api:5.6.2',
'com.google.truth:truth:1.1.2',
'com.google.truth.extensions:truth-java8-extension:1.1.2',
)
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.30'
// TODO remove after https://issues.apache.org/jira/browse/FINERACT-1102, when fineract-client is available as an artfefact
testImplementation(
files("../fineract/fineract-client/build/classes/java/main/"),
// copy/paste from fineract/fineract-client/dependencies.gradle and fineract/dependencies.gradle
'com.squareup.retrofit2:retrofit:2.9.0',
'com.squareup.retrofit2:adapter-java8:2.9.0',
'com.squareup.retrofit2:adapter-rxjava2:2.9.0', // TODO https://github.com/OpenAPITools/openapi-generator/issues/7758
'com.squareup.retrofit2:converter-scalars:2.9.0',
'com.squareup.retrofit2:converter-gson:2.9.0',
'io.gsonfire:gson-fire:1.8.5',
'com.squareup.okhttp3:logging-interceptor:4.9.0',
)
}
tasks.named('test') {
useJUnitPlatform()
}
distributions {
main {
contents {
into('/') {
from 'README.md', 'LICENSE', 'run*'
}
into('/pentahoReports') {
from { 'pentahoReports' }
}
// Add fineract-pentaho.jar into lib/ just so it's easier to install
// TODO exclude fineract-pentaho.jar at ZIP root (it's currently twice in the dist ZIP, at ./ and lib/)
into('/lib') {
from(jar)
}
eachFile { FileCopyDetails fcp ->
fcp.relativePath = new RelativePath(true, fcp.relativePath.pathString.replace('fineract-pentaho/', ''))
}
}
}
}