Skip to content

Commit 4305655

Browse files
author
olme04
authored
Update versions (kotlin 1.6.0, ktor 1.6.7, gradle 7.3.1) (#188)
1 parent 9ec26a7 commit 4305655

File tree

18 files changed

+79
-74
lines changed

18 files changed

+79
-74
lines changed

.github/workflows/gradle-main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ macos-latest ]
17-
target: [ macosX64, iosX64, tvosX64, watchosX86 ]
16+
os: [ macos-11 ]
17+
target: [ macosX64, iosX64, tvosX64, watchosX64 ]
1818
jvm: [ 11 ]
1919
include:
2020
- os: windows-latest
@@ -99,7 +99,7 @@ jobs:
9999
build:
100100
strategy:
101101
matrix:
102-
os: [ macos-latest, ubuntu-latest, windows-latest ]
102+
os: [ macos-11, ubuntu-latest, windows-latest ]
103103
fail-fast: false
104104
runs-on: ${{ matrix.os }}
105105

@@ -130,7 +130,7 @@ jobs:
130130
runs-on: ${{ matrix.os }}
131131
strategy:
132132
matrix:
133-
os: [ ubuntu-latest, macos-latest, windows-latest ]
133+
os: [ ubuntu-latest, macos-11, windows-latest ]
134134
fail-fast: false
135135

136136
steps:

.github/workflows/gradle-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
os: [ macos-latest ]
12-
target: [ macosX64, iosX64, tvosX64, watchosX86 ]
11+
os: [ macos-11 ]
12+
target: [ macosX64, iosX64, tvosX64, watchosX64 ]
1313
jvm: [ 11 ]
1414
include:
1515
- os: windows-latest
@@ -94,7 +94,7 @@ jobs:
9494
build:
9595
strategy:
9696
matrix:
97-
os: [ macos-latest, ubuntu-latest, windows-latest ]
97+
os: [ macos-11, ubuntu-latest, windows-latest ]
9898
fail-fast: false
9999
runs-on: ${{ matrix.os }}
100100

.github/workflows/gradle-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
strategy:
1313
matrix:
14-
os: [ macos-latest, ubuntu-latest, windows-latest ]
14+
os: [ macos-11, ubuntu-latest, windows-latest ]
1515
fail-fast: false
1616
runs-on: ${{ matrix.os }}
1717

@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ${{ matrix.os }}
4343
strategy:
4444
matrix:
45-
os: [ ubuntu-latest, macos-latest, windows-latest ]
45+
os: [ ubuntu-latest, macos-11, windows-latest ]
4646
fail-fast: false
4747

4848
steps:

.github/workflows/publish-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ${{ matrix.os }}
77
strategy:
88
matrix:
9-
os: [ ubuntu-latest, macos-latest, windows-latest ]
9+
os: [ ubuntu-latest, macos-11, windows-latest ]
1010
fail-fast: false
1111

1212
steps:

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
os: [ macos-latest ]
11-
target: [ macosX64, iosX64, tvosX64, watchosX86 ]
10+
os: [ macos-11 ]
11+
target: [ macosX64, iosX64, tvosX64, watchosX64 ]
1212
jvm: [ 11 ]
1313
include:
1414
- os: windows-latest

benchmarks/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
import kotlinx.benchmark.gradle.*
18+
import org.gradle.kotlin.dsl.benchmark
1719
import org.jetbrains.kotlin.gradle.plugin.mpp.*
1820

1921
plugins {
@@ -26,6 +28,8 @@ val rsocketJavaVersion: String by rootProject
2628
val kotlinxCoroutinesVersion: String by rootProject
2729
val kotlinxBenchmarkVersion: String by rootProject
2830

31+
val jmhVersionOverride: String by rootProject
32+
2933
kotlin {
3034
val jvm = jvm() //common jvm source set
3135
val kotlinJvm = jvm("kotlin") //kotlin benchmark
@@ -70,6 +74,8 @@ benchmark {
7074
register("kotlin")
7175
register("java")
7276
}
77+
78+
targets.withType<JvmBenchmarkTarget> { jmhVersion = jmhVersionOverride }
7379
}
7480

7581
tasks.register<JavaExec>("jmhProfilers") {

benchmarks/src/jvmMain/kotlin/io/rsocket/kotlin/benchmarks/RSocketBenchmark.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
@file:OptIn(DelicateCoroutinesApi::class)
18+
1719
package io.rsocket.kotlin.benchmarks
1820

1921
import kotlinx.coroutines.*

build.gradle.kts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ val Project.publicationNames: Array<String>
5757
subprojects {
5858
tasks.whenTaskAdded {
5959
if (name.endsWith("test", ignoreCase = true)) onlyIf { !rootProject.hasProperty("skipTests") }
60+
if (name.startsWith("link", ignoreCase = true)) onlyIf { !rootProject.hasProperty("skipLink") }
6061
}
6162

6263
plugins.withId("org.jetbrains.kotlin.multiplatform") {
@@ -67,7 +68,9 @@ subprojects {
6768
project.name == "rsocket-transport-ktor-server" || //server is jvm only
6869
project.name == "rsocket-test-server"
6970
//windows target isn't supported by ktor-network
70-
val supportMingw = project.name != "rsocket-transport-ktor" && project.name != "rsocket-transport-ktor-client"
71+
val supportMingw =
72+
project.name != "rsocket-transport-ktor" &&
73+
project.name != "rsocket-transport-ktor-client"
7174

7275

7376
if (!isAutoConfigurable) return@configure
@@ -105,12 +108,15 @@ subprojects {
105108
}
106109

107110
//native targets configuration
108-
val hostTargets = listOfNotNull(linuxX64(), macosX64(), if (supportMingw) mingwX64() else null)
109-
110-
val iosTargets = listOf(iosArm32(), iosArm64(), iosX64())
111-
val tvosTargets = listOf(tvosArm64(), tvosX64())
112-
val watchosTargets = listOf(watchosArm32(), watchosArm64(), watchosX86())
113-
val nativeTargets = hostTargets + iosTargets + tvosTargets + watchosTargets
111+
val linuxTargets = listOf(linuxX64())
112+
val mingwTargets = if (supportMingw) listOf(mingwX64()) else emptyList()
113+
val macosTargets = listOf(macosX64(), macosArm64())
114+
val iosTargets = listOf(iosArm32(), iosArm64(), iosX64(), iosSimulatorArm64())
115+
val tvosTargets = listOf(tvosArm64(), tvosX64(), tvosSimulatorArm64())
116+
val watchosTargets =
117+
listOf(watchosArm32(), watchosArm64(), watchosX86(), watchosX64(), watchosSimulatorArm64())
118+
val darwinTargets = macosTargets + iosTargets + tvosTargets + watchosTargets
119+
val nativeTargets = darwinTargets + linuxTargets + mingwTargets
114120

115121
val nativeMain by sourceSets.creating {
116122
dependsOn(sourceSets["commonMain"])
@@ -149,8 +155,6 @@ subprojects {
149155
sourceSets.all {
150156
languageSettings.apply {
151157
progressiveMode = true
152-
languageVersion = "1.5"
153-
apiVersion = "1.5"
154158

155159
optIn("kotlin.RequiresOptIn")
156160

gradle.properties

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,44 +13,29 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
1716
#Project
1817
group=io.rsocket.kotlin
1918
version=0.14.0
20-
2119
#Versions
22-
kotlinVersion=1.5.31
23-
ktorVersion=1.6.4
20+
kotlinVersion=1.6.0
21+
ktorVersion=1.6.7
2422
kotlinxCoroutinesVersion=1.5.2-native-mt
25-
kotlinxAtomicfuVersion=0.16.3
26-
kotlinxSerializationVersion=1.3.0
27-
kotlinxBenchmarkVersion=0.3.1
23+
kotlinxAtomicfuVersion=0.17.0
24+
kotlinxSerializationVersion=1.3.1
25+
kotlinxBenchmarkVersion=0.4.0
2826
kotlinxNodejsVersion=0.0.7
2927
rsocketJavaVersion=1.1.1
30-
turbineVersion=0.6.1
31-
artifactoryVersion=4.24.20
28+
turbineVersion=0.7.0
29+
artifactoryVersion=4.25.1
3230
versionUpdatesVersion=0.39.0
3331
gradleEnterpriseVersion=3.4.1
34-
32+
jmhVersionOverride=1.33
3533
#Kotlin
36-
#kotlin.code.style=official
37-
kotlin.caching.enabled=true
38-
kotlin.incremental=true
39-
kotlin.incremental.multiplatform=true
34+
kotlin.js.compiler=both
4035
kotlin.mpp.stability.nowarn=true
41-
42-
#HMPP support
4336
kotlin.mpp.enableGranularSourceSetsMetadata=true
44-
kotlin.mpp.enableCompatibilityMetadataVariant=true
45-
46-
#JS and Native flags
47-
kotlin.js.compiler=both
4837
kotlin.native.enableDependencyPropagation=false
4938
kotlin.native.ignoreIncorrectDependencies=true
50-
kotlin.native.ignoreDisabledTargets=true
51-
kotlin.native.distribution.type=prebuilt
52-
53-
5439
#Gradle
5540
org.gradle.parallel=true
5641
org.gradle.caching=true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)