forked from ktorio/ktor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compatibility.gradle
40 lines (35 loc) · 1.12 KB
/
compatibility.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
apply plugin: 'binary-compatibility-validator'
apiValidation {
def excludeList = [
'ktor',
'ktor-client-tests',
'ktor-client-js',
'ktor-client-json-tests',
'ktor-client-curl',
'ktor-client-ios',
'ktor-client',
'ktor-client-features',
'ktor-client-benchmarks',
'ktor-server-benchmarks'
].toSet()
def projects = [].toSet()
def queue = [
project(":ktor-client"),
project(":ktor-http"),
project(":ktor-network"),
project(":ktor-utils"),
project(":ktor-io"),
project(":ktor-server:ktor-server-core"),
project(":ktor-features:ktor-auth"),
project(":ktor-features:ktor-websockets")
]
while (!queue.isEmpty()) {
def project = queue.remove(queue.size() - 1) as Project
if (projects.add(project)) {
queue += project.childProjects.values()
}
}
def projectNames = projects.collect { it.name }.toSet()
ignoredProjects += excludeList
ignoredProjects += project.allprojects.collect { it.name }.findAll { !projectNames.contains(it) }
}