Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sbt 2.x build setting #305

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

add sbt 2.x build setting #305

wants to merge 1 commit into from

Conversation

xuwei-k
Copy link
Member

@xuwei-k xuwei-k commented Oct 6, 2024

No description provided.

build.sbt Show resolved Hide resolved
@xuwei-k xuwei-k force-pushed the sbt-2 branch 2 times, most recently from 79b8b28 to 4e301bc Compare October 7, 2024 02:13
@xuwei-k
Copy link
Member Author

xuwei-k commented Oct 7, 2024

[error] Expected ';'
[error] No such setting/task
[error] ++  2.13.15 {file:/home/runner/work/sbt-dynver/sbt-dynver/}dynver/scripted
[error]                                                                           ^

🤔

@eed3si9n
Copy link
Member

eed3si9n commented Oct 7, 2024

It's cross building the plugin using Scala 2.13. I wonder if you should change to:

crossScalaVersions := Nil

at line 3, and set crossScalaVersions with := in each subproject?

@xuwei-k xuwei-k force-pushed the sbt-2 branch 2 times, most recently from 814764e to 9f00694 Compare October 7, 2024 03:00
@xuwei-k
Copy link
Member Author

xuwei-k commented Oct 7, 2024

Maybe

// no `scripted` task
val p1 = project

// has `scripted` task
val p2 = project.enablePlugins(SbtPlugin)

sbt scripted success.
but sbt +scripted failure. need + p2/scripted

@xuwei-k
Copy link
Member Author

xuwei-k commented Oct 7, 2024

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