File tree 9 files changed +19
-17
lines changed
src/main/java/slack/lint/compose
9 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 29
29
uses : actions/setup-java@v3
30
30
with :
31
31
distribution : ' zulu'
32
- java-version : ' 19 '
32
+ java-version : ' 20 '
33
33
34
34
- name : Build
35
35
uses : gradle/gradle-build-action@v2
Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ import com.google.devtools.ksp.gradle.KspTask
8
8
import com.vanniktech.maven.publish.MavenPublishBaseExtension
9
9
import io.gitlab.arturbosch.detekt.Detekt
10
10
import org.jetbrains.dokka.gradle.DokkaTask
11
+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
11
12
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
12
13
13
14
plugins {
15
+ alias(libs.plugins.kotlin.jvm) apply false
14
16
alias(libs.plugins.spotless) apply false
15
17
alias(libs.plugins.mavenPublish) apply false
16
18
alias(libs.plugins.dokka) apply false
@@ -109,15 +111,15 @@ allprojects {
109
111
110
112
subprojects {
111
113
pluginManager.withPlugin(" java" ) {
112
- configure<JavaPluginExtension > { toolchain { languageVersion.set(JavaLanguageVersion .of(19 )) } }
114
+ configure<JavaPluginExtension > { toolchain { languageVersion.set(JavaLanguageVersion .of(20 )) } }
113
115
114
116
tasks.withType<JavaCompile >().configureEach { options.release.set(11 ) }
115
117
}
116
118
117
119
pluginManager.withPlugin(" org.jetbrains.kotlin.jvm" ) {
118
120
tasks.withType<KotlinCompile >().configureEach {
119
- kotlinOptions {
120
- jvmTarget = " 11 "
121
+ compilerOptions {
122
+ jvmTarget.set( JvmTarget . JVM_11 )
121
123
// TODO re-enable once lint uses Kotlin 1.5
122
124
// allWarningsAsErrors = true
123
125
// freeCompilerArgs = freeCompilerArgs + listOf("-progressive")
Original file line number Diff line number Diff line change 3
3
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4
4
5
5
plugins {
6
- kotlin( " jvm" )
6
+ alias(libs.plugins.kotlin. jvm)
7
7
// Run lint on the lints! https://groups.google.com/g/lint-dev/c/q_TVEe85dgc
8
8
alias(libs.plugins.lint)
9
9
alias(libs.plugins.ksp)
Original file line number Diff line number Diff line change @@ -58,8 +58,7 @@ constructor(
58
58
block.statements.filterIsInstance<KtCallExpression >().count {
59
59
it.emitsContent(contentEmitterOption.value)
60
60
}
61
- }
62
- ? : 0
61
+ } ? : 0
63
62
64
63
internal fun KtFunction.indirectUiEmitterCount (mapping : Map <KtFunction , Int >): Int {
65
64
val bodyBlock = bodyBlockExpression ? : return 0
Original file line number Diff line number Diff line change @@ -57,8 +57,7 @@ constructor(
57
57
block.statements.filterIsInstance<KtCallExpression >().count {
58
58
it.emitsContent(contentEmitterOption.value)
59
59
}
60
- }
61
- ? : 0
60
+ } ? : 0
62
61
63
62
internal fun KtFunction.indirectUiEmitterCount (mapping : Map <KtFunction , Int >): Int {
64
63
val bodyBlock = bodyBlockExpression ? : return 0
Original file line number Diff line number Diff line change 1
1
[versions ]
2
- kotlin = " 1.8.0 "
3
- ktfmt = " 0.44 "
2
+ kotlin = " 1.9.10 "
3
+ ktfmt = " 0.46 "
4
4
jvmTarget = " 11"
5
5
lint = " 31.1.1"
6
6
lint-latest = " 31.2.0-alpha13"
7
7
8
8
[plugins ]
9
9
detekt = { id = " io.gitlab.arturbosch.detekt" , version = " 1.23.1" }
10
- dokka = { id = " org.jetbrains.dokka" , version = " 1.8.20" }
11
- lint = { id = " com.android.lint" , version = " 8.1.1" }
12
- ksp = { id = " com.google.devtools.ksp" , version = " 1.8.22-1.0.11" }
10
+ dokka = { id = " org.jetbrains.dokka" , version = " 1.9.0" }
11
+ lint = { id = " com.android.lint" , version = " 8.1.2" }
12
+ kotlin-jvm = { id = " org.jetbrains.kotlin.jvm" , version.ref = " kotlin" }
13
+ ksp = { id = " com.google.devtools.ksp" , version = " 1.9.10-1.0.13" }
13
14
mavenPublish = { id = " com.vanniktech.maven.publish" , version = " 0.25.3" }
14
- spotless = { id = " com.diffplug.spotless" , version = " 6.20 .0" }
15
+ spotless = { id = " com.diffplug.spotless" , version = " 6.21 .0" }
15
16
16
17
[libraries ]
17
18
autoService-annotations = " com.google.auto.service:auto-service-annotations:1.1.1"
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.2.1 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.3 -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 83
83
# This is normally unused
84
84
# shellcheck disable=SC2034
85
85
APP_BASE_NAME=${0##*/ }
86
- APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
86
+ # 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
87
88
88
89
# Use the maximum available, or set MAX_FD != -1 to use that value.
89
90
MAX_FD=maximum
You can’t perform that action at this time.
0 commit comments