Skip to content

Commit e46a6e8

Browse files
authored
Add libs.versions.toml (#234)
1 parent a0be9ae commit e46a6e8

File tree

3 files changed

+60
-23
lines changed

3 files changed

+60
-23
lines changed

build.gradle

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ configurations {
2424
def customDoubleParser = project.findProperty('customDoubleParser') ?: 'fast-double-parser'
2525

2626
dependencies {
27-
compileOnly 'org.jetbrains:annotations:26.0.1'
27+
compileOnly libs.jetbrains.annotations
2828

29-
annotationProcessor 'org.immutables:value:2.10.1'
30-
compileOnly 'org.immutables:value-annotations:2.10.1'
29+
annotationProcessor libs.immutables.value
30+
compileOnly libs.immutables.value.annotations
3131

3232
if (customDoubleParser == 'fast-double-parser') {
3333
// By default, use the fast double parser for tests and JMH
@@ -38,25 +38,25 @@ dependencies {
3838
throw new IllegalArgumentException('Invalid customDoubleParser: ' + customDoubleParser)
3939
}
4040

41-
testImplementation 'net.sf.trove4j:trove4j:3.0.3'
42-
testImplementation 'commons-io:commons-io:2.17.0'
43-
testCompileOnly 'org.jetbrains:annotations:26.0.1'
44-
45-
testImplementation 'org.assertj:assertj-core:3.26.3'
46-
testImplementation(platform('org.junit:junit-bom:5.11.3'))
47-
testImplementation 'org.junit.jupiter:junit-jupiter'
48-
49-
jmh 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.18.1'
50-
jmh 'com.opencsv:opencsv:5.9'
51-
jmh 'com.univocity:univocity-parsers:2.9.1'
52-
jmh 'de.siegmar:fastcsv:2.2.2'
53-
jmh 'net.sf.supercsv:super-csv:2.4.0'
54-
jmh 'org.apache.commons:commons-csv:1.12.0'
55-
jmh 'org.simpleflatmapper:sfm-csv:8.2.3'
41+
testImplementation libs.trove4j
42+
testImplementation libs.commons.io
43+
testCompileOnly libs.jetbrains.annotations
44+
45+
testImplementation libs.assertj
46+
testImplementation(platform(libs.junit.bom))
47+
testImplementation libs.junit.jupiter
48+
49+
jmh libs.jackson.dataformat.csv
50+
jmh libs.opencsv
51+
jmh libs.univocity.parsers
52+
jmh libs.fastcsv
53+
jmh libs.super.csv
54+
jmh libs.commons.csv
55+
jmh libs.simpleflatemapper.csv
5656
}
5757

5858
jmh {
59-
jmhVersion = '1.37'
59+
jmhVersion = libs.versions.jmh
6060
// -prof gc
6161
profilers = ['gc']
6262
// -rf JSON

fast-double-parser/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ dependencies {
88
api rootProject
99

1010
// Multi-release jar, 8+ compatible
11-
implementation 'ch.randelshofer:fastdoubleparser:2.0.1'
11+
implementation libs.fast.double.parser
1212

13-
testImplementation 'org.assertj:assertj-core:3.26.3'
14-
testImplementation(platform('org.junit:junit-bom:5.11.3'))
15-
testImplementation 'org.junit.jupiter:junit-jupiter'
13+
testImplementation libs.assertj
14+
testImplementation(platform(libs.junit.bom))
15+
testImplementation libs.junit.jupiter
1616
}
1717

1818
apply plugin: 'io.deephaven.csv.java-publishing-conventions'

gradle/libs.versions.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[versions]
2+
assertj = "3.27.3"
3+
commons = "1.12.0"
4+
commons-io = "2.17.0"
5+
fastcsv = "2.2.2"
6+
fastdoubleparser = "2.0.1"
7+
immutables = "2.10.1"
8+
jackson = "2.18.1"
9+
jetbrains = "26.0.1"
10+
jmh = "1.37"
11+
junit = "5.11.3"
12+
opencsv = "5.9"
13+
simpleflatmapper = "8.2.3"
14+
supercsv = "2.4.0"
15+
trove = "3.0.3"
16+
univocity = "2.9.1"
17+
18+
[libraries]
19+
assertj = { module = "org.assertj:assertj-core", version.ref = "assertj" }
20+
commons-csv = { module = "org.apache.commons:commons-csv", version.ref = "commons" }
21+
commons-io = { module = "commons-io:commons-io", version.ref = "commons-io" }
22+
fastcsv = { module = "de.siegmar:fastcsv", version.ref = "fastcsv" }
23+
fast-double-parser = { module = "ch.randelshofer:fastdoubleparser", version.ref = "fastdoubleparser"}
24+
immutables-value = { module = "org.immutables:value", version.ref = "immutables" }
25+
immutables-value-annotations = { module = "org.immutables:value-annotations", version.ref = "immutables" }
26+
jackson-dataformat-csv = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-csv", version.ref = "jackson" }
27+
jetbrains-annotations = { module = "org.jetbrains:annotations", version.ref = "jetbrains" }
28+
junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" }
29+
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter" }
30+
junit-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine" }
31+
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher" }
32+
junit-vintage-engine = { module = "org.junit.vintage:junit-vintage-engine" }
33+
opencsv = { module = "com.opencsv:opencsv", version.ref = "opencsv" }
34+
simpleflatemapper-csv = { module = "org.simpleflatmapper:sfm-csv", version.ref = "simpleflatmapper" }
35+
super-csv = { module = "net.sf.supercsv:super-csv", version.ref = "supercsv" }
36+
trove4j = { module = "net.sf.trove4j:trove4j", version.ref = "trove" }
37+
univocity-parsers = { module = "com.univocity:univocity-parsers", version.ref = "univocity" }

0 commit comments

Comments
 (0)