-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathDependencies.kt
278 lines (250 loc) · 7.61 KB
/
Dependencies.kt
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
@file:Suppress("MemberVisibilityCanBePrivate", "PublicApiImplicitType", "unused", "ConstPropertyName", "FunctionName")
import org.gradle.plugin.use.PluginDependenciesSpec
object Versions {
const val clikt = "5.0.0"
const val detekt = "1.23.7"
const val ini4j = "0.5.4"
const val jacodb = "903fd1da7c"
const val juliet = "1.3.2"
const val junit = "5.9.3"
const val kotlin = "2.1.0"
const val kotlin_logging = "3.0.5"
const val kotlinx_collections = "0.3.8"
const val kotlinx_coroutines = "1.10.0"
const val kotlinx_serialization = "1.7.3"
const val ksmt = "0.5.26"
const val logback = "1.4.8"
const val mockk = "1.13.4"
const val rd = "2023.2.0"
const val sarif4k = "0.5.0"
const val shadow = "8.3.3"
const val slf4j = "1.6.1"
// versions for jvm samples
object Samples {
const val lombok = "1.18.20"
const val slf4j = "1.7.36"
const val javaxValidation = "2.0.0.Final"
const val findBugs = "1.3.9-1"
const val jetbrainsAnnotations = "16.0.2"
}
const val pythonTypesAPI = "139b81d"
const val utbotMypyRunner = "0.2.17"
}
fun dep(group: String, name: String, version: String): String = "$group:$name:$version"
object Libs {
// https://github.com/junit-team/junit5
const val junit_bom = "org.junit:junit-bom:${Versions.junit}"
const val junit_jupiter = "org.junit.jupiter:junit-jupiter"
val junit_jupiter_api = dep(
group = "org.junit.jupiter",
name = "junit-jupiter-api",
version = Versions.junit
)
val junit_jupiter_engine = dep(
group = "org.junit.jupiter",
name = "junit-jupiter-engine",
version = Versions.junit
)
val junit_jupiter_params = dep(
group = "org.junit.jupiter",
name = "junit-jupiter-params",
version = Versions.junit
)
// https://github.com/oshai/kotlin-logging
val kotlin_logging = dep(
group = "io.github.microutils",
name = "kotlin-logging",
version = Versions.kotlin_logging
)
// https://github.com/qos-ch/slf4j
val slf4j_simple = dep(
group = "org.slf4j",
name = "slf4j-simple",
version = Versions.slf4j
)
// https://github.com/qos-ch/logback
val logback = dep(
group = "ch.qos.logback",
name = "logback-classic",
version = Versions.logback
)
// https://github.com/UnitTestBot/ksmt
val ksmt_core = dep(
group = "io.ksmt",
name = "ksmt-core",
version = Versions.ksmt
)
val ksmt_runner = dep(
group = "io.ksmt",
name = "ksmt-runner",
version = Versions.ksmt
)
val ksmt_z3 = dep(
group = "io.ksmt",
name = "ksmt-z3",
version = Versions.ksmt
)
val ksmt_yices = dep(
group = "io.ksmt",
name = "ksmt-yices",
version = Versions.ksmt
)
val ksmt_cvc5 = dep(
group = "io.ksmt",
name = "ksmt-cvc5",
version = Versions.ksmt
)
val ksmt_bitwuzla = dep(
group = "io.ksmt",
name = "ksmt-bitwuzla",
version = Versions.ksmt
)
val ksmt_symfpu = dep(
group = "io.ksmt",
name = "ksmt-symfpu",
version = Versions.ksmt
)
// https://github.com/UnitTestBot/jacodb
private const val jacodbPackage = "com.github.UnitTestBot.jacodb" // use "org.jacodb" with includeBuild
val jacodb_core = dep(
group = jacodbPackage,
name = "jacodb-core",
version = Versions.jacodb
)
val jacodb_api_common = dep(
group = jacodbPackage,
name = "jacodb-api-common",
version = Versions.jacodb
)
val jacodb_api_jvm = dep(
group = jacodbPackage,
name = "jacodb-api-jvm",
version = Versions.jacodb
)
val jacodb_api_storage = dep(
group = jacodbPackage,
name = "jacodb-api-storage",
version = Versions.jacodb
)
val jacodb_storage = dep(
group = jacodbPackage,
name = "jacodb-storage",
version = Versions.jacodb
)
val jacodb_approximations = dep(
group = jacodbPackage,
name = "jacodb-approximations",
version = Versions.jacodb
)
val jacodb_taint_configuration = dep(
group = jacodbPackage,
name = "jacodb-taint-configuration",
version = Versions.jacodb
)
val jacodb_ets = dep(
group = jacodbPackage,
name = "jacodb-ets",
version = Versions.jacodb
)
// https://github.com/Kotlin/kotlinx.coroutines
val kotlinx_coroutines_core = dep(
group = "org.jetbrains.kotlinx",
name = "kotlinx-coroutines-core",
version = Versions.kotlinx_coroutines
)
// https://github.com/Kotlin/kotlinx.collections.immutable
val kotlinx_collections = dep(
group = "org.jetbrains.kotlinx",
name = "kotlinx-collections-immutable-jvm",
version = Versions.kotlinx_collections
)
// https://github.com/Kotlin/kotlinx.serialization
val kotlinx_serialization_core = dep(
group = "org.jetbrains.kotlinx",
name = "kotlinx-serialization-core",
version = Versions.kotlinx_serialization
)
val kotlinx_serialization_json = dep(
group = "org.jetbrains.kotlinx",
name = "kotlinx-serialization-json",
version = Versions.kotlinx_serialization
)
// https://github.com/mockk/mockk
val mockk = dep(
group = "io.mockk",
name = "mockk",
version = Versions.mockk
)
// https://github.com/UnitTestBot/juliet-java-test-suite
val juliet_support = dep(
group = "com.github.UnitTestBot.juliet-java-test-suite",
name = "support",
version = Versions.juliet
)
fun juliet_cwe(cweNum: Int) = dep(
group = "com.github.UnitTestBot.juliet-java-test-suite",
name = "cwe${cweNum}",
version = Versions.juliet
)
// https://github.com/detekt/sarif4k
val sarif4k = dep(
group = "io.github.detekt.sarif4k",
name = "sarif4k",
version = Versions.sarif4k
)
// https://github.com/JetBrains/rd
val rd_core = dep(
group = "com.jetbrains.rd",
name = "rd-core",
version = Versions.rd
)
val rd_framework = dep(
group = "com.jetbrains.rd",
name = "rd-framework",
version = Versions.rd
)
val rd_gen = dep(
group = "com.jetbrains.rd",
name = "rd-gen",
version = Versions.rd
)
// https://github.com/facebookarchive/ini4j
val ini4j = dep(
group = "org.ini4j",
name = "ini4j",
version = Versions.ini4j
)
// https://github.com/UnitTestBot/PythonTypesAPI
val python_types_api = dep(
group = "com.github.UnitTestBot",
name = "PythonTypesAPI",
version = Versions.pythonTypesAPI
)
// https://github.com/ajalt/clikt
val clikt = dep(
group = "com.github.ajalt.clikt",
name = "clikt",
version = Versions.clikt
)
}
object Plugins {
abstract class ProjectPlugin(val id: String, val version: String)
// https://github.com/detekt/detekt
object Detekt : ProjectPlugin(
id = "io.gitlab.arturbosch.detekt",
version = Versions.detekt
)
// https://github.com/JetBrains/rd
object RdGen : ProjectPlugin(
id = "com.jetbrains.rdgen",
version = Versions.rd
)
// https://github.com/GradleUp/shadow
object Shadow : ProjectPlugin(
id = "com.gradleup.shadow",
version = Versions.shadow
)
}
fun PluginDependenciesSpec.id(plugin: Plugins.ProjectPlugin) {
id(plugin.id).version(plugin.version)
}