This repository was archived by the owner on Oct 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +442
-425
lines changed
src/main/kotlin/slack/cli/buildkite Expand file tree Collapse file tree 12 files changed +442
-425
lines changed Original file line number Diff line number Diff line change 31
31
uses : actions/setup-java@v4
32
32
with :
33
33
distribution : ' zulu'
34
- java-version : ' 21 '
34
+ java-version : ' 22 '
35
35
36
36
- name : Setup Gradle
37
37
uses : gradle/actions/setup-gradle@v3
Original file line number Diff line number Diff line change 1
1
.gradle
2
+ .kotlin /
2
3
local.properties
3
4
.idea
4
5
! /.idea /codeStyles
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ spotless {
57
57
}
58
58
}
59
59
60
- configure<JavaPluginExtension > { toolchain { languageVersion.set(JavaLanguageVersion .of(21 )) } }
60
+ configure<JavaPluginExtension > { toolchain { languageVersion.set(JavaLanguageVersion .of(22 )) } }
61
61
62
62
tasks.withType<JavaCompile >().configureEach {
63
63
options.release.set(libs.versions.jvmTarget.get().toInt())
@@ -66,7 +66,7 @@ tasks.withType<JavaCompile>().configureEach {
66
66
tasks.withType<Detekt >().configureEach { jvmTarget = libs.versions.jvmTarget.get() }
67
67
68
68
tasks.withType<DokkaTask >().configureEach {
69
- outputDirectory.set(rootDir.resolve( " ../ docs/0 .x" ))
69
+ outputDirectory.set(rootProject.layout.projectDirectory.dir( " docs/2 .x" ))
70
70
dokkaSourceSets.configureEach { skipDeprecated.set(true ) }
71
71
}
72
72
@@ -85,11 +85,13 @@ kotlin {
85
85
}
86
86
}
87
87
88
+ lint { baseline = file(" lint-baseline.xml" ) }
89
+
88
90
moshi { enableSealed.set(true ) }
89
91
90
92
// We have a couple flaky tests on CI right now
91
93
if (System .getenv(" CI" ) != null ) {
92
- tasks.withType< Test >().configureEach {
94
+ tasks.test {
93
95
retry {
94
96
maxRetries.set(2 )
95
97
maxFailures.set(20 )
Original file line number Diff line number Diff line change @@ -7,8 +7,17 @@ org.gradle.jvmargs=-Xms1g -Xmx2g -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemor
7
7
8
8
org.gradle.parallel =true
9
9
org.gradle.caching =true
10
+ org.gradle.configureondemand =true
11
+ org.gradle.configuration-cache =true
10
12
moshix.generateProguardRules =false
11
13
14
+ # Use new K2 UAST for lint
15
+ android.lint.useK2Ugast =true
16
+ android.experimental.lint.missingBaselineIsEmptyBaseline =true
17
+
18
+ # Use KSP2
19
+ ksp.useKSP2 =true
20
+
12
21
POM_NAME =Kotlin CLI Util
13
22
POM_ARTIFACT_ID =kotlin-cli-util
14
23
POM_PACKAGING =jar
Original file line number Diff line number Diff line change 1
1
[versions ]
2
- kotlin = " 1.9.24 "
3
- kotlinx-serialization = " 1.6.3 "
4
- ksp = " 1.9.24 -1.0.20 "
2
+ kotlin = " 2.0.20 "
3
+ kotlinx-serialization = " 1.7.0 "
4
+ ksp = " 2.0.20 -1.0.24 "
5
5
ktfmt = " 0.49"
6
6
jvmTarget = " 17"
7
- moshix = " 0.26 .0"
7
+ moshix = " 0.28 .0"
8
8
moshi = " 1.15.1"
9
9
tikxml = " 0.8.15"
10
10
xmlutil = " 0.86.3"
11
11
12
12
[plugins ]
13
13
detekt = { id = " io.gitlab.arturbosch.detekt" , version = " 1.23.6" }
14
14
dokka = { id = " org.jetbrains.dokka" , version = " 1.9.20" }
15
- lint = { id = " com.android.lint" , version = " 8.4.1 " }
15
+ lint = { id = " com.android.lint" , version = " 8.7.0-alpha08 " }
16
16
mavenPublish = { id = " com.vanniktech.maven.publish" , version = " 0.29.0" }
17
17
moshix = { id = " dev.zacsweers.moshix" , version.ref = " moshix" }
18
18
kotlin-jvm = { id = " org.jetbrains.kotlin.jvm" , version.ref = " kotlin" }
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.6 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10 -bin.zip
4
4
networkTimeout =10000
5
5
validateDistributionUrl =true
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 15
15
# See the License for the specific language governing permissions and
16
16
# limitations under the License.
17
17
#
18
+ # SPDX-License-Identifier: Apache-2.0
19
+ #
18
20
19
21
# #############################################################################
20
22
#
55
57
# Darwin, MinGW, and NonStop.
56
58
#
57
59
# (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/HEAD/subprojects/ plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60
+ # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/ plugins-application /src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
61
# within the Gradle project.
60
62
#
61
63
# You can find Gradle at https://github.com/gradle/gradle/.
84
86
# shellcheck disable=SC2034
85
87
APP_BASE_NAME=${0##*/ }
86
88
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
- APP_HOME=$( cd " ${APP_HOME:- ./ } " > /dev/null && pwd -P ) || exit
89
+ APP_HOME=$( cd -P " ${APP_HOME:- ./ } " > /dev/null && printf ' %s
90
+ ' " $PWD " ) || exit
88
91
89
92
# Use the maximum available, or set MAX_FD != -1 to use that value.
90
93
MAX_FD=maximum
Original file line number Diff line number Diff line change 13
13
@ rem See the License for the specific language governing permissions and
14
14
@ rem limitations under the License.
15
15
@ rem
16
+ @ rem SPDX-License-Identifier: Apache-2.0
17
+ @ rem
16
18
17
19
@ if " %DEBUG% " == " " @ echo off
18
20
@ rem ##########################################################################
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ git commit -am "Prepare for release $NEW_VERSION."
74
74
git tag -a " $NEW_VERSION " -m " Version $NEW_VERSION "
75
75
76
76
# Publish
77
- ./gradlew publish -x dokkaHtml
77
+ ./gradlew publish -x dokkaHtml --no-configuration-cache
78
78
79
79
# Prepare next snapshot
80
80
echo " Setting next snapshot version $NEXT_SNAPSHOT_VERSION "
Original file line number Diff line number Diff line change @@ -173,8 +173,8 @@ private object JsonLiteralSerializer : KSerializer<JsonLiteral> {
173
173
return encoder.encodeString(value.content)
174
174
}
175
175
176
- if ( value.coerceToInlineType != null ) {
177
- return encoder.encodeInline(value.coerceToInlineType ).encodeString(value.content)
176
+ value.coerceToInlineType?. let {
177
+ return encoder.encodeInline(it ).encodeString(value.content)
178
178
}
179
179
180
180
// use .content instead of .longOrNull as latter can process exponential notation,
You can’t perform that action at this time.
0 commit comments