Skip to content

Commit

Permalink
Merge pull request #389 from valb3r/bugfix/FBP-387-EDT-exception
Browse files Browse the repository at this point in the history
Updated builds + Initial fix for https://github.com/valb3r/flowable-b…
  • Loading branch information
valb3r committed Apr 29, 2024
2 parents 1083451 + a1ff844 commit 2a08cc5
Show file tree
Hide file tree
Showing 21 changed files with 88 additions and 67 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
fi
env:
TAG_NAME: ${{ github.ref_name }}
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build, test with Gradle
Expand Down
12 changes: 6 additions & 6 deletions activiti-intellij-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = 'com.valb3r.bpmn.intellij.plugin.activiti'

sourceCompatibility = 1.8
sourceCompatibility = 17

repositories {
mavenCentral()
Expand Down Expand Up @@ -43,7 +43,7 @@ intellij {
}

runPluginVerifier {
ideVersions = ["IU-2021.3", "IC-2021.3"]
ideVersions = ["IU-2022.3", "IC-2022.3"]
}

verifyPlugin {
Expand All @@ -56,13 +56,13 @@ publishPlugin {

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
Expand All @@ -87,7 +87,7 @@ test {
jacocoTestReport {
// Adjust the output of the test report
reports {
xml.enabled true
csv.enabled false
xml.required = true
csv.required = true
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.valb3r.bpmn.intellij.activiti.plugin.actions

import com.intellij.notification.NotificationType
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiFile
Expand All @@ -23,4 +24,8 @@ class ViewActivitiBpmnDiagramAction : BaseViewBpmnDiagramAction() {
override fun notificationBalloon(project: Project, message: String, type: NotificationType) {
showNotificationBalloon(project, message, type)
}

override fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.BGT
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<!-- <helpset file="myhelp.jar" path="/Help.hs" /> -->

<!-- Minimum and maximum build of IDE compatible with the plugin -->
<idea-version since-build="213"/>
<idea-version since-build="223"/>

<!-- Resource bundle (/messages/MyPluginBundle.properties) to be used with `key` attributes in extension points
and implicit keys like `action.[pluginID].[ActionID].text` -->
Expand Down
12 changes: 7 additions & 5 deletions activiti-xml-parser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
group = 'com.valb3r.bpmn.intellij.plugin.activiti.parser'


sourceCompatibility = 1.8
sourceCompatibility = 17

repositories {
mavenCentral()
Expand Down Expand Up @@ -38,18 +38,20 @@ dependencies {

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}

test {
jvmArgs "--add-opens=java.base/java.nio.charset=ALL-UNNAMED"

jacoco {
destinationFile = file("${buildDir}/jacoco/test.exec")
}
Expand All @@ -65,7 +67,7 @@ test {
jacocoTestReport {
// Adjust the output of the test report
reports {
xml.enabled true
csv.enabled false
xml.required = true
csv.required = true
}
}
6 changes: 3 additions & 3 deletions bpmn-intellij-plugin-common-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = 'com.valb3r.bpmn.intellij.plugin.core.tests'

sourceCompatibility = 1.8
sourceCompatibility = 17

repositories {
mavenCentral()
Expand Down Expand Up @@ -40,13 +40,13 @@ sourceSets {

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
Expand Down
10 changes: 5 additions & 5 deletions bpmn-intellij-plugin-commons/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group 'com.valb3r.bpmn.intellij.plugin.commons'

sourceCompatibility = 1.8
sourceCompatibility = 17

repositories {
mavenCentral()
Expand Down Expand Up @@ -47,13 +47,13 @@ publishPlugin.enabled = false

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
Expand All @@ -78,7 +78,7 @@ test {
jacocoTestReport {
// Adjust the output of the test report
reports {
xml.enabled true
csv.enabled false
xml.required = true
csv.required = true
}
}
10 changes: 5 additions & 5 deletions bpmn-intellij-plugin-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group 'com.valb3r.bpmn.intellij.plugin.core'

sourceCompatibility = 1.8
sourceCompatibility = 17

repositories {
mavenCentral()
Expand Down Expand Up @@ -53,13 +53,13 @@ publishPlugin.enabled = false

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
Expand All @@ -84,7 +84,7 @@ test {
jacocoTestReport {
// Adjust the output of the test report
reports {
xml.enabled true
csv.enabled false
xml.required = true
csv.required = true
}
}
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.11.0'
id 'org.jetbrains.kotlin.jvm' version '1.5.30'
id 'org.jetbrains.kotlin.kapt' version '1.5.30'
id 'org.jetbrains.kotlin.jvm' version '1.6.0'
id 'org.jetbrains.kotlin.kapt' version '1.6.0'
}

ext {
intellijPlatform = 'IU-2021.3'
intellijPlatform = 'IU-2022.3'
intellijPlatformPlugins = ['java', 'DatabaseTools'] // DatabaseTools is for BPMN process 'debugging'

kotlinStdlib = '1.5.30'
Expand All @@ -20,13 +20,13 @@ ext {
jsonPath = '2.8.0'
junitPlatformRunner = '1.6.2'
kluent = '1.68'
mockitoInline = '3.3.3'
mockitoInline = '5.2.0'
mockitoKotlin = '2.2.0'
}

group = 'com.valb3r'

sourceCompatibility = 1.8
sourceCompatibility = 17

repositories {
mavenCentral()
Expand Down
12 changes: 6 additions & 6 deletions camunda-intellij-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = 'com.valb3r.bpmn.intellij.plugin.camunda'

sourceCompatibility = 1.8
sourceCompatibility = 17

repositories {
mavenCentral()
Expand Down Expand Up @@ -43,7 +43,7 @@ intellij {
}

runPluginVerifier {
ideVersions = ["IU-2021.3", "IC-2021.3"]
ideVersions = ["IU-2022.3", "IC-2022.3"]
}

verifyPlugin {
Expand All @@ -56,13 +56,13 @@ publishPlugin {

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
Expand All @@ -87,7 +87,7 @@ test {
jacocoTestReport {
// Adjust the output of the test report
reports {
xml.enabled true
csv.enabled false
xml.required = true
csv.required = true
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package com.valb3r.bpmn.intellij.plugin.camunda.actions

import com.intellij.notification.NotificationType
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiFile
import com.valb3r.bpmn.intellij.plugin.camunda.notifications.showNotificationBalloon
import com.valb3r.bpmn.intellij.plugin.camunda.CamundaBpmnPluginToolWindowProjectService
import com.valb3r.bpmn.intellij.plugin.camunda.notifications.showNotificationBalloon
import com.valb3r.bpmn.intellij.plugin.camunda.settings.CamundaBpmnPluginSettingsState
import com.valb3r.bpmn.intellij.plugin.core.BpmnActionContext
import com.valb3r.bpmn.intellij.plugin.core.actions.BaseViewBpmnDiagramAction
Expand Down Expand Up @@ -34,4 +35,8 @@ class ViewCamundaBpmnDiagramAction : BaseViewBpmnDiagramAction() {
val psiElement = psiElement(anActionEvent)
anActionEvent.presentation.isEnabledAndVisible = project != null && isValidFileName(psiElement?.containingFile?.name)
}

override fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.BGT
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<!-- <helpset file="myhelp.jar" path="/Help.hs" /> -->

<!-- Minimum and maximum build of IDE compatible with the plugin -->
<idea-version since-build="213"/>
<idea-version since-build="223"/>

<!-- Resource bundle (/messages/MyPluginBundle.properties) to be used with `key` attributes in extension points
and implicit keys like `action.[pluginID].[ActionID].text` -->
Expand Down
12 changes: 7 additions & 5 deletions camunda-xml-parser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
group = 'com.valb3r.bpmn.intellij.plugin.camunda.parser'


sourceCompatibility = 1.8
sourceCompatibility = 17

repositories {
mavenCentral()
Expand Down Expand Up @@ -38,18 +38,20 @@ dependencies {

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
apiVersion = kotlinApiVersion
}
}

test {
jvmArgs "--add-opens=java.base/java.nio.charset=ALL-UNNAMED"

jacoco {
destinationFile = file("${buildDir}/jacoco/test.exec")
}
Expand All @@ -65,7 +67,7 @@ test {
jacocoTestReport {
// Adjust the output of the test report
reports {
xml.enabled true
csv.enabled false
xml.required = true
csv.required = true
}
}
Loading

0 comments on commit 2a08cc5

Please sign in to comment.