Skip to content

fix: Reference to undefined setting: scriptedKeepTempDirectory#1053

Open
EndlessLucky wants to merge 7 commits intofoundweekends:developfrom
EndlessLucky:olive-1049
Open

fix: Reference to undefined setting: scriptedKeepTempDirectory#1053
EndlessLucky wants to merge 7 commits intofoundweekends:developfrom
EndlessLucky:olive-1049

Conversation

@EndlessLucky
Copy link

[2.x] fix: initialize ScriptedPlugin settings for sbt 2 RC9

  • Problem
    Using sbt-giter8 with sbt.version=2.0.0-RC9 fails during load with:
    Reference to undefined setting: scriptedKeepTempDirectory from scripted.
    The plugin was wiring ScriptedPlugin.projectSettings manually, which leaves scripted settings initialization inconsistent on sbt 2 RC9.

  • Solution
    Require sbt.ScriptedPlugin directly in Giter8Plugin so scripted settings are initialized via plugin requirements, and remove the manual ScriptedPlugin.projectSettings ++ merge.
    Also update the sbt 2 cross-build target from 2.0.0-RC8 to 2.0.0-RC9 in build.sbt.

@EndlessLucky
Copy link
Author

@eed3si9n Would you please review this PR? Thanks.

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

I think

override val requires = sbt.plugins.JvmPlugin && sbt.ScriptedPlugin

was the right approach

@xuwei-k xuwei-k changed the title [2.x] fix: Reference to undefined setting: scriptedKeepTempDirectory fix: Reference to undefined setting: scriptedKeepTempDirectory Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants