Skip to content

Commit

Permalink
Merge branch 'main' into fix/write-intent-for-save-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- authored Sep 26, 2024
2 parents 9e775cd + df5642a commit 0750cc3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,25 @@ concurrency:
cancel-in-progress: true

jobs:

codeChecks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Check Spotless
run: ./gradlew spotlessCheck

buildPlugin:
runs-on: ubuntu-latest
needs: codeChecks
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
Expand All @@ -36,6 +53,7 @@ jobs:
runPluginVerifier:
runs-on: ubuntu-latest
needs: codeChecks
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/vaadin/plugin/VaadinProjectDetector.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class VaadinProjectDetector : ModuleRootListener, ProjectActivity {
private val LOG: Logger = Logger.getInstance(VaadinProjectDetector::class.java)

override fun rootsChanged(event: ModuleRootEvent) {
if (isVaadinProject(event.project)) {
if (event.project.isOpen && isVaadinProject(event.project)) {
doNotifyAboutVaadinProject(event.project)
LOG.info("Vaadin detected in dependencies of " + event.project.name)
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/vaadin/plugin/hotswapagent/JdkUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class JdkUtil {
fun isJetbrainsRuntime(jdk: Sdk?): Boolean {
val homePath = jdk?.homePath ?: throw IllegalStateException("JDK has no home path: $jdk")
val jdkInfo = JdkVersionDetector.getInstance().detectJdkVersionInfo(homePath)
return "JBR" == jdkInfo?.variant?.prefix
return "jbr" == jdkInfo?.variant?.prefix?.lowercase()
}

fun getBundledJetbrainsJdk(): Sdk {
Expand Down

0 comments on commit 0750cc3

Please sign in to comment.