Skip to content

Commit

Permalink
fix(ci): update kotlin to 2.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Vacxe committed Oct 18, 2024
1 parent d222aed commit b496c7a
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Install Kotlin
run: |
curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v1.7.0/kotlin-compiler-1.7.0.zip
curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v2.0.21/kotlin-compiler-2.0.21.zip
if [[ "$OSTYPE" != "darwin"* ]]
then
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL "com.github.actions.description"="Runs Kotlin Dangerfiles"
LABEL "com.github.actions.icon"="zap"
LABEL "com.github.actions.color"="blue"

ARG KOTLINC_VERSION="1.7.0"
ARG KOTLINC_VERSION="2.0.21"
ARG DANGER_KOTLIN_VERSION="1.3.0"

# Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion danger-kotlin-sample-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}

plugins {
id 'org.jetbrains.kotlin.jvm' version '1.7.0'
id 'org.jetbrains.kotlin.jvm' version '2.0.21'
}

apply plugin: 'danger-kotlin-plugin-installer'
Expand Down
16 changes: 5 additions & 11 deletions danger-kotlin-sdk/maven-publish.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply from: file('../secrets.gradle')

task sourceJar(type: Jar) {
classifier "sources"
archiveClassifier.set("sources")
from sourceSets.main.allJava
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
archiveClassifier.set("javadoc")
from javadoc.destinationDir
}

Expand All @@ -32,14 +32,8 @@ publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
from sourceSets.main.allJava
}
artifact javadocJar {
classifier "javadoc"
from javadoc.destinationDir
}
artifact sourceJar
artifact javadocJar
pom {
name = 'Danger Kotlin SDK'
description = 'Develop your own plugin for Danger Kotlin'
Expand Down Expand Up @@ -81,4 +75,4 @@ publishing {
}
}
}
}
}
4 changes: 2 additions & 2 deletions danger-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ kotlin {
"linuxX64" -> linuxX64("runner")
"macosArm64" -> macosArm64("runner")
"mingwX64" -> mingwX64("runner")
else -> throw GradleException("OS '$osName' is not supported.") as Throwable
else -> throw GradleException("OS '$osName' is not supported.")
}
} else {
when (val osName = System.getProperty("os.name")) {
"Mac OS X" -> macosX64("runner")
"Linux" -> linuxX64("runner")
"Mac OS X Apple silicon" -> macosArm64("runner")
"Windows 11" -> mingwX64("runner")
else -> throw GradleException("OS '$osName' is not supported.") as Throwable
else -> throw GradleException("OS '$osName' is not supported.")
}
}

Expand Down
2 changes: 1 addition & 1 deletion dependencyVersions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ project.ext.groupIdOkio = 'com.squareup.okio'
project.ext.artifactIdOkio = 'okio'

// Kotlin
project.ext.versionKotlin = '1.7.0'
project.ext.versionKotlin = '2.0.21'
project.ext.groupIdKotlin = 'org.jetbrains.kotlin'
project.ext.groupIdKotlinx = 'org.jetbrains.kotlinx'
project.ext.artifactIdKotlinMain = 'kotlin-main-kts'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlinVersion=1.7.0
kotlinVersion=2.0.21
kotlin.code.style=official
systemProp.org.gradle.internal.publish.checksums.insecure=true
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ if [[ -n "$sudo" && "$OSTYPE" != "darwin"* ]]; then
fi

if ! [[ -x "$(command -v kotlinc)" ]]; then
echo "Installing kotlin compiler 1.7.0"
curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v1.7.0/kotlin-compiler-1.7.0.zip
echo "Installing kotlin compiler 2.0.21"
curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v2.0.21/kotlin-compiler-2.0.21.zip
unzip -d /usr/local/ kotlin-compiler.zip
echo 'export PATH=/usr/local/kotlinc/bin:$PATH' >> ~/.bash_profile
rm -rf kotlin-compiler.zip
Expand Down

0 comments on commit b496c7a

Please sign in to comment.