Skip to content

Commit

Permalink
feat(intellij): upgrade platform version to 2022.3 / Java 17 (#4258)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel authored Oct 2, 2024
1 parent 5a80a9a commit 2bd2b6b
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions extensions/intellij/intellij_generator_plugin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries
local.properties

# Sensitive or high-churn files:
.idea/**/dataSources/
Expand Down
18 changes: 9 additions & 9 deletions extensions/intellij/intellij_generator_plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.16.1'
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
id 'org.jetbrains.intellij' version '1.17.4'
id 'org.jetbrains.kotlin.jvm' version '1.9.25'
}

group 'com.bloc'
version '4.0.1'
version '4.0.2'

apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'idea'

java {
sourceCompatibility = 11
targetCompatibility = 11
sourceCompatibility = 17
targetCompatibility = 17
}

intellij {
version = '2022.1.1'
type = 'IC'
version = '2022.3'
plugins = ['java']
updateSinceUntilBuild.set(false)
}
Expand All @@ -28,17 +29,16 @@ repositories {
}

dependencies {
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testCompileOnly(group: 'junit', name: 'junit', version: '4.13.2')
implementation("com.fleshgrinder.kotlin:case-format:0.2.0")
}

compileKotlin {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = "17"
}

compileTestKotlin {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = "17"
}

patchPluginXml {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
kotlin.code.style=official
kotlin.code.style=official
kotlin.stdlib.default.dependency = true
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.intellij.openapi.project.Project
import com.intellij.psi.*

class GenerateBlocAction : AnAction(), GenerateBlocDialog.Listener {
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT

private lateinit var dataContext: DataContext

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.intellij.openapi.project.Project
import com.intellij.psi.*

class GenerateCubitAction : AnAction(), GenerateBlocDialog.Listener {
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT

private lateinit var dataContext: DataContext

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.bloc.intellij_generator_plugin.action
import com.intellij.lang.ASTNode
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.editor.Document
Expand All @@ -13,6 +14,7 @@ import com.intellij.psi.util.PsiUtilBase


class GenerateEquatablePropsAction : AnAction() {
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT

private var propsNullable = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<change-notes><![CDATA[
<ul>
<li>v4.0.2 - Support for Intellij 2024.2</li>
<li>v4.0.1 - Support for Intellij 2024</li>
<li>v4.0.0 - Support for Sealed Classes and Dependency Upgrades</li>
<li>v3.4.0 - Support for Freezed</li>
Expand Down Expand Up @@ -40,7 +41,7 @@
</change-notes>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
<idea-version since-build="145.0" until-build="241.*"/>
<idea-version since-build="223" until-build="243.*"/>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
on how to target different products -->
Expand Down

0 comments on commit 2bd2b6b

Please sign in to comment.