Skip to content

Commit

Permalink
Update Kotlin to 1.9.10, and related Maven packages, and jitsi-utils …
Browse files Browse the repository at this point in the history
…and jicoco. (#271)

* Update Kotlin to 1.9.10, and related Maven packages, and jitsi-utils and jicoco.

* Update ktlint-maven-plugin.
  • Loading branch information
JonathanLennox authored Sep 29, 2023
1 parent 9fe2d69 commit 27ad37d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ charset = utf-8
indent_size = 2
indent_style = space
max_line_length = 120

[*.{kt,kts}]
max_line_length = 120

# I find trailing commas annoying
ktlint_standard_trailing-comma-on-call-site = disabled
ktlint_standard_trailing-comma-on-declaration-site = disabled
23 changes: 15 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jicoco.version>1.1-104-g20c4353</jicoco.version>
<kotlin.version>1.6.21</kotlin.version>
<kotest.version>5.3.0</kotest.version>
<junit.version>5.8.2</junit.version>
<jicoco.version>1.1-127-gf49982f</jicoco.version>
<kotlin.version>1.9.10</kotlin.version>
<dokka.version>1.9.0</dokka.version>
<kotest.version>5.7.2</kotest.version>
<junit.version>5.10.0</junit.version>
</properties>

<dependencies>
Expand All @@ -58,7 +59,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jitsi-utils</artifactId>
<version>1.0-114-g43815ed</version>
<version>1.0-127-g6c65524</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand All @@ -70,7 +71,7 @@
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.8.2</version>
<version>1.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -109,6 +110,12 @@
<version>4.5.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.mockk</groupId>
<artifactId>mockk-jvm</artifactId>
<version>1.13.8</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -214,7 +221,7 @@
<plugin>
<groupId>com.github.gantsign.maven</groupId>
<artifactId>ktlint-maven-plugin</artifactId>
<version>1.13.1</version>
<version>2.0.0</version>
<configuration>
<sourceRoots>
<sourceRoot>${project.basedir}/src/main/kotlin</sourceRoot>
Expand Down Expand Up @@ -487,7 +494,7 @@
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<version>${dokka.version}</version>
<executions>
<execution>
<phase>package</phase>
Expand Down
9 changes: 2 additions & 7 deletions src/test/java/org/ice4j/util/PeriodicRunnableTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import java.time.*;
import java.util.concurrent.*;
import org.jitsi.test.concurrent.*;
import org.jitsi.utils.concurrent.*;
import org.junit.jupiter.api.*;

/**
Expand All @@ -21,12 +21,7 @@ public class PeriodicRunnableTests
@BeforeEach
void beforeEach()
{
timer = mock(
FakeScheduledExecutorService.class,
withSettings()
.useConstructor()
.defaultAnswer(CALLS_REAL_METHODS)
);
timer = new FakeScheduledExecutorService();
executor = mock(ExecutorService.class);
when(executor.submit(any(Runnable.class))).thenAnswer(a ->
{
Expand Down

0 comments on commit 27ad37d

Please sign in to comment.