Skip to content

Commit

Permalink
Add testLibs system properties directly in the task configuration
Browse files Browse the repository at this point in the history
This fixes a configuration cache error and works the same.

The last config cache issue seems to be from the licenser plugin,
 which is already fixed in master but not released yet -_-
  • Loading branch information
RedNesto committed Jul 30, 2024
1 parent 32278d5 commit e54877a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,9 @@ tasks.processResources {
tasks.test {
dependsOn(tasks.jar, testLibs)
useJUnitPlatform()
doFirst {
testLibs.resolvedConfiguration.resolvedArtifacts.forEach {
systemProperty("testLibs.${it.name}", it.file.absolutePath)
}

testLibs.resolvedConfiguration.resolvedArtifacts.forEach {
systemProperty("testLibs.${it.name}", it.file.absolutePath)
}
systemProperty("NO_FS_ROOTS_ACCESS_CHECK", "true")
systemProperty("java.awt.headless", "true")
Expand Down

0 comments on commit e54877a

Please sign in to comment.