Skip to content

Commit ea9a686

Browse files
authored
Update to Kotlin 1.8.21 (#95)
1 parent 3e70849 commit ea9a686

File tree

19 files changed

+89
-71
lines changed

19 files changed

+89
-71
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/setup-java@v2
2828
with:
2929
distribution: 'zulu'
30-
java-version: '11'
30+
java-version: '17'
3131

3232
- name: Build with Gradle
3333
run: ./gradlew assemble check --stacktrace

build.gradle.kts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Appmattus Limited
2+
* Copyright 2021-2023 Appmattus Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616

1717
import org.jetbrains.dokka.gradle.DokkaPlugin
1818
import org.jetbrains.dokka.gradle.DokkaTask
19-
import java.net.URL
19+
import java.net.URI
2020

2121
plugins {
2222
kotlin("jvm") version Versions.kotlin apply false
@@ -42,7 +42,6 @@ allprojects {
4242
repositories {
4343
google()
4444
mavenCentral()
45-
jcenter()
4645
maven { setUrl("https://jitpack.io") }
4746
}
4847

@@ -61,7 +60,7 @@ allprojects {
6160

6261
sourceLink {
6362
localDirectory.set(rootDir)
64-
remoteUrl.set(URL("https://github.com/appmattus/kotlinfixture/blob/main"))
63+
remoteUrl.set(URI("https://github.com/appmattus/kotlinfixture/blob/main").toURL())
6564
remoteLineSuffix.set("#L")
6665
}
6766
}
@@ -79,7 +78,14 @@ dependencies {
7978
}
8079

8180
detekt {
82-
input = files("$projectDir")
81+
source = files(fileTree(projectDir).matching {
82+
include("**/*.kt")
83+
include("**/*.kts")
84+
exclude("**/resources/**")
85+
exclude("**/build/**")
86+
}.files)
87+
88+
// input = files("$projectDir")
8389

8490
buildUponDefaultConfig = true
8591

buildSrc/build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Appmattus Limited
2+
* Copyright 2021-2023 Appmattus Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,11 +21,12 @@ plugins {
2121
}
2222

2323
repositories {
24-
jcenter()
24+
mavenCentral()
2525
}
2626

27-
kotlinDslPluginOptions {
28-
experimentalWarning.set(false)
27+
java {
28+
sourceCompatibility = JavaVersion.VERSION_1_8
29+
targetCompatibility = JavaVersion.VERSION_1_8
2930
}
3031

3132
tasks.withType(KotlinCompile::class.java).all {

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Appmattus Limited
2+
* Copyright 2021-2023 Appmattus Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,37 +16,37 @@
1616

1717
object Versions {
1818

19-
const val kotlin = "1.6.0"
19+
const val kotlin = "1.8.21"
2020

21-
const val androidGradlePlugin = "7.0.3"
21+
const val androidGradlePlugin = "8.0.0"
2222
const val dependencyCheckGradlePlugin = "6.1.1"
2323
const val detektGradlePlugin = "1.18.1"
24-
const val dokkaPlugin = "1.5.31"
24+
const val dokkaPlugin = "1.8.10"
2525
const val gradleMavenPublishPlugin = "0.18.0"
2626
const val gradleVersionsPlugin = "0.36.0"
2727
const val markdownlintGradlePlugin = "0.6.0"
2828

29-
const val classgraph = "4.8.133"
30-
const val coroutines = "1.5.2"
29+
const val classgraph = "4.8.157"
30+
const val coroutines = "1.6.4"
3131
const val generex = "1.0.2"
3232
const val javafaker = "1.0.2"
33-
const val jodaTime = "2.10.13"
33+
const val jodaTime = "2.12.5"
3434
const val multiplatformSettings = "0.7.2"
35-
const val threeTen = "1.5.2"
36-
const val kTorm = "3.4.1"
35+
const val threeTen = "1.6.8"
36+
const val kTorm = "3.6.0"
3737

3838
const val junit4 = "4.13.2"
3939
const val kotest = "4.6.3"
4040
const val mockitoKotlin = "2.2.0"
41-
const val robolectric = "4.7"
41+
const val robolectric = "4.10"
4242

4343
const val easyrandom = "5.0.0"
4444
const val flextrade = "0.2.0"
4545
const val marcellogalhardo = "0.0.2"
4646

4747
object AndroidX {
48-
const val testCore = "1.4.0"
49-
const val testExtJunit = "1.1.3"
50-
const val testRunner = "1.4.0"
48+
const val testCore = "1.5.0"
49+
const val testExtJunit = "1.1.5"
50+
const val testRunner = "1.5.2"
5151
}
5252
}

fixture-android-tests/build.gradle.kts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Appmattus Limited
2+
* Copyright 2021-2023 Appmattus Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,11 +24,12 @@ plugins {
2424
apply(from = "$rootDir/gradle/scripts/jacoco-android.gradle.kts")
2525

2626
android {
27-
compileSdk = 30
27+
namespace = "com.appmattus.fixture.android.tests"
28+
29+
compileSdk = 33
2830

2931
defaultConfig {
3032
minSdk = 19
31-
targetSdk = 30
3233
}
3334

3435
testOptions {
@@ -37,9 +38,9 @@ android {
3738
}
3839
}
3940

40-
lintOptions {
41-
isAbortOnError = true
42-
isWarningsAsErrors = true
41+
lint {
42+
abortOnError = true
43+
warningsAsErrors = true
4344
}
4445

4546
java {

fixture-android-tests/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
~ Copyright 2019 Appmattus Limited
2+
~ Copyright 2019-2023 Appmattus Limited
33
~
44
~ Licensed under the Apache License, Version 2.0 (the "License");
55
~ you may not use this file except in compliance with the License.
@@ -14,4 +14,4 @@
1414
~ limitations under the License.
1515
-->
1616

17-
<manifest package="com.appmattus.fixture.android.tests" />
17+
<manifest />

fixture-generex/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Appmattus Limited
2+
* Copyright 2021-2023 Appmattus Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,9 +39,9 @@ dependencies {
3939
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:${Versions.coroutines}")
4040
}
4141

42-
lintOptions {
43-
isAbortOnError = true
44-
isWarningsAsErrors = true
42+
lint {
43+
abortOnError = true
44+
warningsAsErrors = true
4545
htmlOutput = file("$buildDir/reports/lint-results.html")
4646
xmlOutput = file("$buildDir/reports/lint-results.xml")
4747
}

fixture-javafaker/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Appmattus Limited
2+
* Copyright 2021-2023 Appmattus Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -44,9 +44,9 @@ dependencies {
4444
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:${Versions.coroutines}")
4545
}
4646

47-
lintOptions {
48-
isAbortOnError = true
49-
isWarningsAsErrors = true
47+
lint {
48+
abortOnError = true
49+
warningsAsErrors = true
5050
htmlOutput = file("$buildDir/reports/lint-results.html")
5151
xmlOutput = file("$buildDir/reports/lint-results.xml")
5252
}

fixture-kotest/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Appmattus Limited
2+
* Copyright 2021-2023 Appmattus Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,9 +39,9 @@ dependencies {
3939
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:${Versions.coroutines}")
4040
}
4141

42-
lintOptions {
43-
isAbortOnError = true
44-
isWarningsAsErrors = true
42+
lint {
43+
abortOnError = true
44+
warningsAsErrors = true
4545
htmlOutput = file("$buildDir/reports/lint-results.html")
4646
xmlOutput = file("$buildDir/reports/lint-results.xml")
4747
}

fixture/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Appmattus Limited
2+
* Copyright 2021-2023 Appmattus Limited
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -53,9 +53,9 @@ dependencies {
5353
testImplementation("org.jeasy:easy-random-core:${Versions.easyrandom}")
5454
}
5555

56-
lintOptions {
57-
isAbortOnError = true
58-
isWarningsAsErrors = true
56+
lint {
57+
abortOnError = true
58+
warningsAsErrors = true
5959
htmlOutput = file("$buildDir/reports/lint-results.html")
6060
xmlOutput = file("$buildDir/reports/lint-results.xml")
6161
}

0 commit comments

Comments
 (0)