-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
103 lines (94 loc) · 3.33 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
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}
rootProject.name = 'limetrans'
gradle.rootProject {
def baseUrl = project.hasProperty('git.baseUrl') ?
project.getProperty('git.baseUrl') : null
ext {
versions = [
'checkstyle' : '9.0',
'commons-cli' : '1.3.1',
'commons-io' : '2.14.0',
'elasticsearch2' : '2.2.1',
'elasticsearch8' : '8.15.3',
'htsjdk' : '4.0.1',
'jackson' : '2.13.4.2',
'jdk' : '17',
'junit' : '4.13.1',
'lmdb' : '0.8.3',
'log4j' : '2.17.1',
'lucene5' : '5.4.1',
'metafacture' : '6.1.2',
'metafix' : '1.1.2',
'testcontainers' : '1.20.1'
]
testMatrix = [
metafacture: [
'master-SNAPSHOT'
],
metafix: [
'master'
]
]
gitModules = [
metafacture: [
base: 'https://github.com/metafacture',
repo: 'metafacture-core',
modules: [
'org.metafacture:metafacture-biblio',
'org.metafacture:metafacture-commons',
'org.metafacture:metafacture-flowcontrol',
'org.metafacture:metafacture-formeta',
'org.metafacture:metafacture-framework',
'org.metafacture:metafacture-io',
'org.metafacture:metafacture-javaintegration',
'org.metafacture:metafacture-json',
'org.metafacture:metafacture-mangling',
'org.metafacture:metafacture-plumbing',
'org.metafacture:metafacture-statistics',
'org.metafacture:metafacture-strings',
'org.metafacture:metafacture-xml',
'org.metafacture:metamorph'
]
],
metafix: [
base: 'https://github.com/metafacture',
repo: 'metafacture-fix',
modules: [
'org.metafacture:metafix'
],
dependency: {
it.exclude(group: 'org.slf4j', module: 'slf4j-simple')
}
]
]
versionsProperty = [
prefix: 'versions',
separator: '.'
]
}
def separator = "\\Q${versionsProperty.separator}\\E"
rootProject.properties.each { key, value ->
if (value instanceof String && !value.isEmpty()) {
def parts = key.split(separator)
if (parts.size() == 2 && parts[0] == versionsProperty.prefix) {
versions[parts[1]] = value
}
}
}
sourceControl {
gitModules.each { key, args ->
def version = versions[key]
if (version.matches(~/\d+(?:\..*)?|.*-rc\d+|.*-SNAPSHOT/)) {
args.version = { prefer version }
}
else {
args.version = { branch = version }
gitRepository("${baseUrl ?: args.base}/${args.repo}") {
args.modules.each { producesModule(it) }
}
}
}
}
}