forked from robstoll/atrium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
164 lines (141 loc) · 4.42 KB
/
settings.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
rootProject.name = 'atrium'
buildscript {
gradle.ext.tutteli_plugins_version = '0.29.0'
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "ch.tutteli:tutteli-gradle-settings:$gradle.ext.tutteli_plugins_version"
}
}
apply plugin: 'ch.tutteli.settings'
//TODO remove as soon as https://youtrack.jetbrains.com/issue/KT-29069 is fixed
def kotlinJvmJsAndAndroidIfCi = { self, String suffix ->
if (System.getenv('CI')) {
self.kotlinJvmJsAndroid(suffix)
} else {
self.kotlinJvmJs(suffix)
}
}
def kotlinJvmAndAndroidIfCi = { self, String suffix ->
self.folder(suffix, "$suffix-") {
prefixed('common', 'jvm')
if (System.getenv('CI')) {
prefixed('android')
}
}
}
//noinspection GroovyAssignabilityCheck
include {
bundles {
kotlinJvmJsAndAndroidIfCi(delegate, 'cc-de_CH-robstoll')
kotlinJvmJsAndAndroidIfCi(delegate, 'fluent-en_GB')
kotlinJvmAndAndroidIfCi(delegate, 'fluent-en_GB-jdk8')
kotlinJvmJsAndAndroidIfCi(delegate, 'fluent-en_GB-kotlin_1_3')
kotlinJvmJsAndAndroidIfCi(delegate, 'cc-infix-en_GB-robstoll')
if (JavaVersion.current() >= JavaVersion.VERSION_1_9) {
//TODO add cc-de_CH-robstoll-smoke-test with 1.0.0
folder('cc-infix-en_GB-robstoll') {
_ 'cc-infix-en_GB-robstoll-smoke-test'
}
folder('fluent-en_GB') {
_ 'fluent-en_GB-smoke-test'
}
folder('fluent-en_GB-jdk8') {
_ 'fluent-en_GB-jdk8-smoke-test'
}
folder('fluent-en_GB-kotlin_1_3') {
_ 'fluent-en_GB-kotlin_1_3-smoke-test'
}
//TODO remove with 1.0.0
folder('cc-en_GB-robstoll') {
_ 'cc-en_GB-robstoll-smoke-test'
}
}
}
apis('api-') {
kotlinJvmJsAndAndroidIfCi(delegate, 'cc-de_CH')
kotlinJvmJsAndAndroidIfCi(delegate, 'fluent-en_GB')
folder('fluent-en_GB', 'fluent-en_GB-') {
extensions {
kotlinJvmAndAndroidIfCi(delegate, 'jdk8')
kotlinJvmJsAndAndroidIfCi(delegate, 'kotlin_1_3')
}
}
kotlinJvmJsAndAndroidIfCi(delegate, 'cc-infix-en_GB')
}
domain('domain-') {
kotlinJvmJsAndAndroidIfCi(delegate, 'api')
kotlinJvmJsAndAndroidIfCi(delegate, 'builders')
kotlinJvmJsAndAndroidIfCi(delegate, 'robstoll')
kotlinJvmJsAndAndroidIfCi(delegate, 'robstoll-lib')
api('api-') {
extensions {
kotlinJvmJsAndAndroidIfCi(delegate, 'kotlin_1_3')
}
}
builders('builders-') {
extensions {
kotlinJvmJsAndAndroidIfCi(delegate, 'kotlin_1_3')
}
}
robstoll('robstoll-') {
extensions {
kotlinJvmJsAndAndroidIfCi(delegate, 'kotlin_1_3')
}
}
folder('robstoll-lib', 'robstoll-lib-') {
extensions {
kotlinJvmJsAndAndroidIfCi(delegate, 'kotlin_1_3')
}
}
}
core('core-') {
kotlinJvmJsAndAndroidIfCi(delegate, 'api')
kotlinJvmJsAndAndroidIfCi(delegate, 'robstoll')
kotlinJvmJsAndAndroidIfCi(delegate, 'robstoll-lib')
}
translations('translations-') {
kotlinJvmJsAndAndroidIfCi(delegate, 'de_CH')
kotlinJvmJsAndAndroidIfCi(delegate, 'en_GB')
}
misc {
_ 'bc-test'
_ 'spec'
kotlinJvmJsAndAndroidIfCi(delegate, 'specs')
kotlinJvmJsAndAndroidIfCi(delegate, 'verbs')
kotlinJvmJsAndAndroidIfCi(delegate, 'verbs-internal')
}
samples {
js {
project('mocha')
project('jasmine')
}
project('readme-examples')
}
//TODO remove all below with 1.0.0
bundles {
_ 'cc-en_UK-robstoll'
_ 'cc-infix-en_UK-robstoll'
kotlinJvmJsAndAndroidIfCi(delegate, 'cc-en_GB-robstoll')
}
folder('apis', 'api-') {
_ 'cc-en_UK'
_ 'cc-infix-en_UK'
kotlinJvmJsAndAndroidIfCi(delegate, 'cc-en_GB')
}
domain('domain-') {
_ 'api-deprecated'
}
core('core-') {
_ 'api-deprecated'
_ 'robstoll-deprecated'
}
translations('translations-') {
_ 'de_CH-deprecated'
_ 'en_UK-deprecated'
}
misc {
_ 'assertions'
}
}