File tree 8 files changed +14
-20
lines changed
danger-kotlin-sample-plugin
8 files changed +14
-20
lines changed Original file line number Diff line number Diff line change 20
20
21
21
- name : Install Kotlin
22
22
run : |
23
- curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v1.7.0 /kotlin-compiler-1.7.0 .zip
23
+ curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v2.0.21 /kotlin-compiler-2.0.21 .zip
24
24
25
25
if [[ "$OSTYPE" != "darwin"* ]]
26
26
then
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ LABEL "com.github.actions.description"="Runs Kotlin Dangerfiles"
7
7
LABEL "com.github.actions.icon" ="zap"
8
8
LABEL "com.github.actions.color" ="blue"
9
9
10
- ARG KOTLINC_VERSION="1.7.0 "
10
+ ARG KOTLINC_VERSION="2.0.21 "
11
11
ARG DANGER_KOTLIN_VERSION="1.3.0"
12
12
13
13
# Install dependencies
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ buildscript {
9
9
}
10
10
11
11
plugins {
12
- id ' org.jetbrains.kotlin.jvm' version ' 1.7.0 '
12
+ id ' org.jetbrains.kotlin.jvm' version ' 2.0.21 '
13
13
}
14
14
15
15
apply plugin : ' danger-kotlin-plugin-installer'
Original file line number Diff line number Diff line change 1
1
apply from : file(' ../secrets.gradle' )
2
2
3
3
task sourceJar (type : Jar ) {
4
- classifier " sources"
4
+ archiveClassifier . set( " sources" )
5
5
from sourceSets. main. allJava
6
6
}
7
7
8
8
task javadocJar (type : Jar , dependsOn : javadoc) {
9
- classifier " javadoc"
9
+ archiveClassifier . set( " javadoc" )
10
10
from javadoc. destinationDir
11
11
}
12
12
@@ -32,14 +32,8 @@ publishing {
32
32
publications {
33
33
maven(MavenPublication ) {
34
34
from components. java
35
- artifact sourceJar {
36
- classifier " sources"
37
- from sourceSets. main. allJava
38
- }
39
- artifact javadocJar {
40
- classifier " javadoc"
41
- from javadoc. destinationDir
42
- }
35
+ artifact sourceJar
36
+ artifact javadocJar
43
37
pom {
44
38
name = ' Danger Kotlin SDK'
45
39
description = ' Develop your own plugin for Danger Kotlin'
@@ -81,4 +75,4 @@ publishing {
81
75
}
82
76
}
83
77
}
84
- }
78
+ }
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ kotlin {
14
14
" linuxX64" -> linuxX64(" runner" )
15
15
" macosArm64" -> macosArm64(" runner" )
16
16
" mingwX64" -> mingwX64(" runner" )
17
- else -> throw GradleException (" OS '$osName ' is not supported." ) as Throwable
17
+ else -> throw GradleException (" OS '$osName ' is not supported." )
18
18
}
19
19
} else {
20
20
when (val osName = System .getProperty(" os.name" )) {
21
21
" Mac OS X" -> macosX64(" runner" )
22
22
" Linux" -> linuxX64(" runner" )
23
23
" Mac OS X Apple silicon" -> macosArm64(" runner" )
24
24
" Windows 11" -> mingwX64(" runner" )
25
- else -> throw GradleException (" OS '$osName ' is not supported." ) as Throwable
25
+ else -> throw GradleException (" OS '$osName ' is not supported." )
26
26
}
27
27
}
28
28
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ project.ext.groupIdOkio = 'com.squareup.okio'
20
20
project. ext. artifactIdOkio = ' okio'
21
21
22
22
// Kotlin
23
- project. ext. versionKotlin = ' 1.7.0 '
23
+ project. ext. versionKotlin = ' 2.0.21 '
24
24
project. ext. groupIdKotlin = ' org.jetbrains.kotlin'
25
25
project. ext. groupIdKotlinx = ' org.jetbrains.kotlinx'
26
26
project. ext. artifactIdKotlinMain = ' kotlin-main-kts'
Original file line number Diff line number Diff line change 1
- kotlinVersion =1.7.0
1
+ kotlinVersion =2.0.21
2
2
kotlin.code.style =official
3
3
systemProp.org.gradle.internal.publish.checksums.insecure =true
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ if [[ -n "$sudo" && "$OSTYPE" != "darwin"* ]]; then
31
31
fi
32
32
33
33
if ! [[ -x " $( command -v kotlinc) " ]]; then
34
- echo " Installing kotlin compiler 1.7.0 "
35
- curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v1.7.0 /kotlin-compiler-1.7.0 .zip
34
+ echo " Installing kotlin compiler 2.0.21 "
35
+ curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v2.0.21 /kotlin-compiler-2.0.21 .zip
36
36
unzip -d /usr/local/ kotlin-compiler.zip
37
37
echo ' export PATH=/usr/local/kotlinc/bin:$PATH' >> ~ /.bash_profile
38
38
rm -rf kotlin-compiler.zip
You can’t perform that action at this time.
0 commit comments