Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 20335

Exclude file from classpath runtime does not have desired effect

$
0
0

In my project, there is a build-info.properties which is generated every build. I am following the example of using classpath filtering (see this link) to exclude it from the runtime classpath as it affects the caching of the test task. I added the following to the allprojects{} block in my build.gradle file.

normalization {
        runtimeClasspath {
            ignore "build-info.properties"
        }
}

However, my test task keeps getting executed every build even though I make no changes to the project. Looking at the build scan, this is what the message displayed on the test task

The task was not up-to-date because of the following reasons:
Input property ‘classpath’ file titles-api-app/build/resources/main/META-INF/build-info.properties has changed.

Did I do something wrong?


Viewing all articles
Browse latest Browse all 20335

Trending Articles