forked from AEVI-AppFlow/pos-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
145 lines (130 loc) · 4.11 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version = "2.0.0"
ext.sampleVersionCode = 2000000 // semver based, MMmmppbb (major minor patch build) without leading 0 for MM
buildscript {
repositories {
jcenter()
google()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'gradle.plugin.de.fuerstenau:BuildConfigPlugin:1.1.8'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1'
}
}
allprojects {
project.ext {
apiVersion = rootProject.version
sampleVersionCode = rootProject.sampleVersionCode
}
repositories {
mavenLocal()
google()
jcenter()
mavenCentral()
maven {
url "http://dl.bintray.com/aevi/aevi-uk"
}
maven {
url "http://sdk-public-artifacts.s3-website-eu-west-1.amazonaws.com/maven2"
}
if (project.hasProperty('aws_accessid')) {
maven {
url "s3://sdk-snapshots.aevi.com/maven2"
credentials(AwsCredentials) {
accessKey aws_accessid
secretKey aws_accesskey
}
}
maven {
url "s3://sdk-qa.aevi.com/maven2"
credentials(AwsCredentials) {
accessKey aws_accessid
secretKey aws_accesskey
}
}
maven {
url "s3://sdk-releases.aevi.com/maven2"
credentials(AwsCredentials) {
accessKey aws_accessid
secretKey aws_accesskey
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
delete 'documentation/public'
}
task copyApiLibs(type: Copy) {
from 'payment-initiation-api/build/libs'
from 'payment-flow-service-api/build/libs'
into 'artifacts/libs'
}
apply from: 'dependencies.gradle'
def exportedProjects = [
":flow-base-api",
":payment-flow-service-api",
":payment-initiation-api"
]
def baseAndFlowService = [
":flow-base-api",
":payment-initiation-api",
":payment-flow-service-api"
]
def baseAndInitiation = [
":flow-base-api",
":payment-initiation-api"
]
configure(subprojects.findAll {
exportedProjects.contains(":" + it.name)
}) {
apply plugin: 'java'
apply plugin: 'de.fuerstenau.buildconfig'
apply plugin: 'idea'
}
task mergeBaseAndFlowServiceDocs(type: Javadoc) {
source baseAndFlowService.collect { project(it).sourceSets.main.allJava }
classpath = files(baseAndFlowService.collect {
project(it).sourceSets.main.compileClasspath
}, baseAndFlowService.collect {
project(it).sourceSets.main.runtimeClasspath
})
destinationDir = file('documentation/public/javadocs/payment-flow-service-api')
title = "Payment Flow Service API"
exclude "**/BaseApiClient**"
exclude "**/PaymentClient**"
exclude "**/PaymentApi**"
exclude "**/BaseListenerService**"
exclude "**/config/**"
exclude "**/InternalData**"
exclude "**/AppMessage**"
exclude "**/util/**"
options.memberLevel = JavadocMemberLevel.PUBLIC
}
task mergeBaseAndInitiationDocs(type: Javadoc) {
source baseAndInitiation.collect { project(it).sourceSets.main.allJava }
classpath = files(baseAndInitiation.collect {
project(it).sourceSets.main.compileClasspath
}, baseAndInitiation.collect {
project(it).sourceSets.main.runtimeClasspath
})
destinationDir = file('documentation/public/javadocs/payment-initiation-api')
title = "Payment Initiation API"
exclude "**/**ClientImpl**"
exclude "**/BaseGenericService**"
exclude "**/BasePostGenericService**"
exclude "**/BaseGenericService**"
exclude "**/BaseListenerService**"
exclude "**/**StageModel**"
exclude "**/InternalData**"
exclude "**/AppMessage**"
exclude "**/util/**"
options.memberLevel = JavadocMemberLevel.PUBLIC
}
task javadocs(dependsOn: [mergeBaseAndFlowServiceDocs, mergeBaseAndInitiationDocs]) {
}
apply from: 'dist.gradle'