Skip to content

Commit 4cc9487

Browse files
Update Gradle and Kotlin
1 parent 2944b64 commit 4cc9487

File tree

4 files changed

+111
-119
lines changed

4 files changed

+111
-119
lines changed

build.gradle

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.21'
2+
ext.kotlin_version = '2.0.0'
33

44
repositories {
55
mavenCentral()
66
jcenter()
77
}
88
dependencies {
99
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
10-
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.8.0'
10+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.29.0'
1111
}
1212
}
1313

@@ -22,17 +22,10 @@ repositories {
2222
}
2323

2424
dependencies {
25-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
25+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
2626

2727
testImplementation 'junit:junit:4.12'
2828
testImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0'
2929
testImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
30-
testImplementation 'org.assertj:assertj-core:3.11.1'
31-
}
32-
33-
compileKotlin {
34-
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
35-
}
36-
compileTestKotlin {
37-
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
30+
testImplementation "com.google.truth:truth:1.4.4"
3831
}

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip

src/main/kotlin/com/tinder/StateMachine.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class StateMachine<STATE : Any, EVENT : Any, SIDE_EFFECT : Any> private construc
66
private val graph: Graph<STATE, EVENT, SIDE_EFFECT>
77
) {
88

9-
private val stateRef = AtomicReference<STATE>(graph.initialState)
9+
private val stateRef = AtomicReference(graph.initialState)
1010

1111
val state: STATE
1212
get() = stateRef.get()

0 commit comments

Comments
 (0)