Skip to content

Comments

fix: Put marker file into .tmp directory#22

Open
koppor wants to merge 2 commits intojbangdev:mainfrom
koppor:patch-1
Open

fix: Put marker file into .tmp directory#22
koppor wants to merge 2 commits intojbangdev:mainfrom
koppor:patch-1

Conversation

@koppor
Copy link
Contributor

@koppor koppor commented Jan 5, 2026

When running the plugin, I get following output

Calculating task graph as configuration cache cannot be reused because file '..\..\Users\olive\.gradle\caches\kordamp\jbang\0.4.0-SNAPSHOT\marker.txt' has changed

The claim is true - the file seems to be modified on each run.

Proposal: Treat the file as temporary file - in most cases, this will lead to the same results.

(Side track: We are using the release build, but still -SNAPSHOT is output. Not sure why)

@koppor koppor changed the title Put marker file into .tmp directory fix: Put marker file into .tmp directory Jan 5, 2026
@koppor
Copy link
Contributor Author

koppor commented Feb 22, 2026

@aalmiray May I ask for a comment? I worked the whole day on the build again and saw this message in the output.

boolean printBanner = null == System.getProperty(ORG_KORDAMP_BANNER) || Boolean.getBoolean(ORG_KORDAMP_BANNER)

File parent = new File(gradle.gradleUserHomeDir, 'caches')
File parent = new File(gradle.gradleUserHomeDir, '.tmp')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use the gradleUserHomeDir directly, do not specify a child directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Committed :)

@aalmiray
Copy link
Contributor

The build is currently failing. You didn't run a local build, did you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants