Skip to content

hotreload & multi-project: doFindPathMatchingFileResources looks after resources into the wrong path #15129

@Taack

Description

@Taack

Expected Behavior

Translations should work as for a regular bootRun

Actual Behaviour

Either launching ./gradlew server:bootRun -Dgrails.run.active=true or adding in server/build.gradle:

bootRun {
    doFirst {
        classpath = classpath.filter { file ->
            boolean r = true
            gradle.ext.taackPlugins.each { p ->
                r = r && !file.path.contains(p + '-' + version + '.jar')  // Exclude the JAR to avoid duplicates
            }
            r
        }
        gradle.ext.taackPlugins.each { p ->
            classpath = classpath + project(':' + p).sourceSets.main.output  // Add classes and resources output
        }
    }
// [. . .]

Seems to results in message.property files not being included.

Steps To Reproduce

First we import the infra into local maven:

  1. clone the infra repo: git clone git@github.com:Taack/infra.git
  2. into this repo, ./gradlew publishMavenPublicationToMavenLocal

Then

  1. clone the intranet repo: git clone git@github.com:Taack/intranet.git
  2. swith to branch g7s2: git switch g7s2
  3. Launch with ./gradlew server:bootRun -Dgrails.run.active=true (i18n NOK, hotreload OK), ./gradlew server:bootRun (i18n OK, hotreload NOK)...

Environment Information

Example Application

No response

Version

Grails 7.0.0-RC2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions