Skip to content

Commit 84721bf

Browse files
authored
Merge pull request #431 from TheKinrar/kotlin2.1
Only support Kotlin 2.1
2 parents f0b6fa2 + c2e9868 commit 84721bf

File tree

34 files changed

+490
-576
lines changed

34 files changed

+490
-576
lines changed

.github/workflows/maven.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,10 @@ jobs:
123123
- uses: ./.github/prepare-cache-action
124124

125125
test-kotlin:
126-
name: Test / Kotlin / ${{ matrix.kotlin-profile }}
126+
name: Test / Kotlin
127127
runs-on: ubuntu-latest
128128
needs:
129129
- build
130-
strategy:
131-
fail-fast: false
132-
matrix:
133-
kotlin-profile: ["kotlin-1.9", "kotlin-2.0"]
134130
steps:
135131
- uses: actions/checkout@v4
136132
- name: Set up JDK 17
@@ -143,8 +139,8 @@ jobs:
143139
run: chmod +x ./mvnw
144140
- name: Build with Maven
145141
run: ./mvnw install --file pom.xml -DskipTests=true
146-
- name: Test Kotlin Profile ${{ matrix.kotlin-profile }}
147-
run: ./mvnw test --file pom.xml --projects jte-kotlin --also-make --activate-profiles ${{ matrix.kotlin-profile }}
142+
- name: Test Kotlin
143+
run: ./mvnw test --file pom.xml --projects jte-kotlin --also-make
148144
- uses: ./.github/prepare-cache-action
149145

150146
coverage:
@@ -170,7 +166,7 @@ jobs:
170166
if: contains(matrix.os, 'win') == false
171167
run: chmod +x ./mvnw
172168
- name: Build with Maven
173-
run: ./mvnw verify --file pom.xml -Pcoverage,kotlin-1.9
169+
run: ./mvnw verify --file pom.xml -Pcoverage
174170
- name: Upload coverage report
175171
uses: codecov/codecov-action@v4
176172
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ buildNumber.properties
1515
### Gradle ###
1616
build/
1717
.gradle/
18+
.kotlin/
1819

1920
### Intellij ###
2021
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm

jte-kotlin/pom.xml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<dependency>
2323
<groupId>org.jetbrains.kotlin</groupId>
2424
<artifactId>kotlin-compiler-embeddable</artifactId>
25-
<version>${kotlin.version}</version>
25+
<version>2.1.10</version>
2626
</dependency>
2727

2828
<dependency>
@@ -47,23 +47,4 @@
4747
</plugin>
4848
</plugins>
4949
</build>
50-
51-
<profiles>
52-
<profile>
53-
<id>kotlin-1.9</id>
54-
<activation>
55-
<activeByDefault>true</activeByDefault>
56-
</activation>
57-
<properties>
58-
<kotlin.version>1.9.10</kotlin.version>
59-
</properties>
60-
</profile>
61-
<profile>
62-
<id>kotlin-2.0</id>
63-
<properties>
64-
<kotlin.version>2.0.20</kotlin.version>
65-
</properties>
66-
</profile>
67-
</profiles>
68-
6950
</project>
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

test/gradle-test-wrapper/gradlew

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146146
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
147+
# shellcheck disable=SC3045
148148
MAX_FD=$( ulimit -H -n ) ||
149149
warn "Could not query maximum file descriptor limit"
150150
esac
151151
case $MAX_FD in #(
152152
'' | soft) :;; #(
153153
*)
154154
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
155+
# shellcheck disable=SC3045
156156
ulimit -n "$MAX_FD" ||
157157
warn "Could not set maximum file descriptor limit to $MAX_FD"
158158
esac

test/jte-runtime-cp-test-gradle-kotlin-convention/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
plugins {
4-
kotlin("jvm") version "1.9.10"
4+
kotlin("jvm") version "2.1.10"
55
id("gg.jte.gradle") version("3.1.17-SNAPSHOT")
66
}
77

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

test/jte-runtime-cp-test-gradle-kotlin-convention/gradlew

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146146
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
147+
# shellcheck disable=SC3045
148148
MAX_FD=$( ulimit -H -n ) ||
149149
warn "Could not query maximum file descriptor limit"
150150
esac
151151
case $MAX_FD in #(
152152
'' | soft) :;; #(
153153
*)
154154
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
155+
# shellcheck disable=SC3045
156156
ulimit -n "$MAX_FD" ||
157157
warn "Could not set maximum file descriptor limit to $MAX_FD"
158158
esac

0 commit comments

Comments
 (0)