Skip to content

Commit 3866a54

Browse files
Bump Groovy: 3.0.24 -> 4.0.28
1 parent 6dc3f85 commit 3866a54

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

communication/src/test/java/datadog/communication/serialization/GrowableBufferTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package datadog.communication.serialization;
22

3-
import static groovy.util.GroovyTestCase.assertEquals;
3+
import static org.junit.jupiter.api.Assertions.assertEquals;
44
import static org.junit.jupiter.api.Assertions.assertFalse;
55
import static org.junit.jupiter.api.Assertions.assertTrue;
66

@@ -73,13 +73,13 @@ public void testPutVariants() {
7373
gb.put(new byte[] {-128}, 0, 1);
7474

7575
ByteBuffer slice = gb.slice();
76-
assertEquals(slice.getShort(), (short) 1);
77-
assertEquals(slice.getChar(), (char) 2);
78-
assertEquals(slice.getInt(), 4);
79-
assertEquals(slice.getLong(), 8L);
80-
assertEquals(slice.getFloat(), 16.0f);
81-
assertEquals(slice.getDouble(), 32.0);
82-
assertEquals(slice.get(), (byte) 64);
83-
assertEquals(slice.get(), (byte) -128);
76+
assertEquals((short) 1, slice.getShort());
77+
assertEquals((char) 2, slice.getChar());
78+
assertEquals(4, slice.getInt());
79+
assertEquals(8L, slice.getLong());
80+
assertEquals(16.0f, slice.getFloat());
81+
assertEquals(32.0, slice.getDouble());
82+
assertEquals((byte) 64, slice.get());
83+
assertEquals((byte) -128, slice.get());
8484
}
8585
}

dd-smoke-tests/src/main/groovy/datadog/smoketest/ProcessManager.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ abstract class ProcessManager extends Specification {
268268
while (reader.read(buffer) != -1) {
269269
buffer.flip()
270270
while (buffer.hasRemaining()) {
271-
int c = buffer.get()
271+
char c = buffer.get()
272272
if (c == '\n' || c == '\r') {
273273
break
274274
}

gradle/codenarc.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: "codenarc"
33
dependencies {
44
codenarc('org.codenarc:CodeNarc:3.6.0')
55
// if the groovy transitive dependencies are upgraded, this may not be pulled
6-
codenarc('org.codehaus.groovy:groovy-templates')
6+
//codenarc('org.codehaus.groovy:groovy-templates')
77
}
88

99
codenarc {

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ okhttp = "3.12.15" # Datadog fork to support Java 7
66
okhttp-legacy = "[3.0,3.12.12]" # 3.12.x is last version to support Java7
77
okio = "1.17.6" # Datadog fork
88

9-
spock = "2.4-M6-groovy-3.0"
10-
groovy = "3.0.24"
9+
spock = "2.4-M6-groovy-4.0"
10+
groovy = "4.0.28"
1111
junit5 = "5.12.2"
1212
junit-platform = "1.12.2"
1313
logback = "1.2.13"
@@ -70,8 +70,8 @@ spock-junit4 = { module = "org.spockframework:spock-junit4", version.ref = "spoc
7070
spock-spring = { module = "org.spockframework:spock-spring", version.ref = "spock" }
7171
objenesis = { module = "org.objenesis:objenesis", version = "3.3" } # Used by Spock for mocking:
7272

73-
groovy = { module = "org.codehaus.groovy:groovy-all", version.ref = "groovy" }
74-
groovy-yaml = { module = "org.codehaus.groovy:groovy-yaml", version.ref = "groovy" }
73+
groovy = { module = "org.apache.groovy:groovy-all", version.ref = "groovy" }
74+
groovy-yaml = { module = "org.apache.groovy:groovy-yaml", version.ref = "groovy" }
7575
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit5" }
7676
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit5" }
7777
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version.ref = "junit-platform" }

0 commit comments

Comments
 (0)