Skip to content

Commit

Permalink
Feature/update to kotlin 1.6.21 and add deployment IJ213 intellij plu…
Browse files Browse the repository at this point in the history
…gin (#324)

* chore: update godot kotlin module version to 0.3.5

* enh: Add deployment of intellij plugin for 2021.3 version

* feat: Update module to kotlin 1.6.21
  • Loading branch information
piiertho authored Jul 4, 2022
1 parent 4e48098 commit 5e2fdc3
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-pr-intellij-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build-intellij-plugin:
strategy:
matrix:
ij_sdk: [IJ203, IJ211, IJ212]
ij_sdk: [ IJ211, IJ212, IJ213 ]
runs-on: ubuntu-latest
steps:
- name: Clone Godot JVM module.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-intellij-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
deploy_godot_intellij_plugin:
strategy:
matrix:
ij_sdk: [ IJ203, IJ211, IJ212 ]
ij_sdk: [ IJ211, IJ212, IJ213 ]
runs-on: ubuntu-latest
steps:
- name: Clone Godot JVM module.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The only language currently supported is Kotlin. That said it is possible to sup
## Supported kotlin version
This module relies on a kotlin compiler plugin for registering your classes and members to godot. As the compiler api from kotlin is not yet stable, we can only support specific kotlin version per release for now.

The current latest release is compatible with kotlin version `1.6.0`.
The current latest release is compatible with kotlin version `1.6.21`.

## Custom engine builds
Get our pre built engine builds and export templates from the latest [github release](https://github.com/utopia-rise/godot-kotlin-jvm/releases).
Expand Down
4 changes: 2 additions & 2 deletions docs/src/doc/user-guide/versioning.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The module uses semantic versioning for its own versions but adds a suffix for the supported godot version:

Full version: `0.3.4-3.4.4`
Full version: `0.3.5-3.4.4`

Module Version: `0.3.4`
Module Version: `0.3.5`

Supported Godot Version: `3.4.4`
2 changes: 1 addition & 1 deletion harness/tests/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
// no need to apply kotlin jvm plugin. Our plugin already applies the correct version for you
// kotlin("jvm") version "1.6.0"
// kotlin("jvm") version "1.6.21"
id("com.utopia-rise.godot-kotlin-jvm")
}

Expand Down
2 changes: 1 addition & 1 deletion kt/api-generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ gradlePlugin {
}

dependencies {
implementation(kotlin("gradle-plugin", version = "1.6.0"))
implementation(kotlin("gradle-plugin", version = "1.6.21"))
implementation("com.squareup:kotlinpoet:1.8.0")
implementation("com.fasterxml.jackson.core:jackson-databind:2.11.0")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.10.1")
Expand Down
2 changes: 1 addition & 1 deletion kt/buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ gradlePlugin {
}

dependencies {
implementation(kotlin("gradle-plugin", version = "1.6.0"))
implementation(kotlin("gradle-plugin", version = "1.6.21"))
}
4 changes: 2 additions & 2 deletions kt/buildSrc/src/main/kotlin/DependenciesVersions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ object DependenciesVersions {
const val godotVersion: String = "3.4.4"
const val shadowJarPluginVersion: String = "7.1.2"
const val kotlinPoetVersion: String = "1.8.0"
const val kspVersion: String = "1.6.0-1.0.1"
const val supportedKotlinVersion: String = "1.6.0"
const val kspVersion: String = "1.6.21-1.0.5"
const val supportedKotlinVersion: String = "1.6.21"
}
2 changes: 1 addition & 1 deletion kt/buildSrc/src/main/kotlin/godotKotlinJvmVersion.kt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const val godotKotlinJvmVersion = "0.3.4"
const val godotKotlinJvmVersion = "0.3.5"
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import org.jetbrains.kotlin.psi.psiUtil.containingClassOrObject
import org.jetbrains.kotlin.psi.psiUtil.referenceExpression
import org.jetbrains.kotlin.resolve.BindingContext
import org.jetbrains.kotlin.resolve.bindingContextUtil.getReferenceTargets
import org.jetbrains.kotlin.resolve.calls.callUtil.getType
import org.jetbrains.kotlin.resolve.calls.util.getType
import org.jetbrains.kotlin.resolve.descriptorUtil.fqNameSafe
import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedClassConstructorDescriptor
import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedSimpleFunctionDescriptor
Expand Down
27 changes: 9 additions & 18 deletions kt/plugins/godot-intellij-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,29 @@ plugins {
//sdk version: https://github.com/JetBrains/intellij-community/tags
//kotlin plugin version: https://plugins.jetbrains.com/plugin/6954-kotlin/versions
val buildMatrix: Map<String, BuildConfig> = mapOf(
"IJ203" to BuildConfig(
sdk = "203.8084.24",
prefix = "IJ2020.3",
extraSource = "IJ183",
version = VersionRange("203.1", "203.*"),
ideVersionsForVerifierTask = listOf("2020.1.4", "2020.2.3", "2020.3"),
deps = listOf("java", "org.jetbrains.kotlin:203-1.5.21-release-316-IJ7717.8", "gradle")
),
"IJ211" to BuildConfig(
sdk = "211.7628.21",
sdk = "211.7442.40",
prefix = "IJ2021.1",
extraSource = "IJ183",
version = VersionRange("211.1", "211.*"),
version = VersionRange("211.2", "211.*"),
ideVersionsForVerifierTask = listOf("2021.1.1", "2021.1.2", "2021.1.3"),
deps = listOf("java", "org.jetbrains.kotlin:211-1.5.21-release-317-IJ7442.40", "gradle")
deps = listOf("java", "org.jetbrains.kotlin:211-1.6.21-release-334-IJ7442.40", "gradle")
),
"IJ212" to BuildConfig(
sdk = "212.5080.55",
sdk = "212.5457.46",
prefix = "IJ2021.2",
extraSource = "IJ183",
version = VersionRange("212.1", "212.*"),
version = VersionRange("212.3", "212.*"),
ideVersionsForVerifierTask = listOf("2021.2.1"),
deps = listOf("java", "org.jetbrains.kotlin:212-1.5.30-release-409-IJ4638.7", "gradle")
deps = listOf("java", "org.jetbrains.kotlin:212-1.6.21-release-334-IJ5457.46", "gradle")
),
"IJ213" to BuildConfig(
sdk = "213.5744.223",
sdk = "213.6777.52",
prefix = "IJ2021.3",
extraSource = "IJ213",
version = VersionRange("212.1", "213.*"),
version = VersionRange("213.2", "213.*"),
ideVersionsForVerifierTask = listOf("2021.3"),
//TODO: replace kotlin plugin version with release channel once released by Jetbrains
deps = listOf("java", "org.jetbrains.kotlin:213-1.5.10-release-IJ5333@Ideadev", "gradle")
deps = listOf("java", "org.jetbrains.kotlin:213-1.6.21-release-334-IJ6777.52", "gradle")
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import org.jetbrains.kotlin.psi.KtOperationReferenceExpression
import org.jetbrains.kotlin.psi.KtStringTemplateExpression
import org.jetbrains.kotlin.psi.psiUtil.referenceExpression
import org.jetbrains.kotlin.resolve.bindingContextUtil.getReferenceTargets
import org.jetbrains.kotlin.resolve.calls.callUtil.getType
import org.jetbrains.kotlin.resolve.calls.util.getType
import org.jetbrains.kotlin.resolve.descriptorUtil.fqNameSafe
import org.jetbrains.kotlin.resolve.descriptorUtil.isCompanionObject
import org.jetbrains.kotlin.resolve.lazy.BodyResolveMode
Expand Down

0 comments on commit 5e2fdc3

Please sign in to comment.