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 Dep.withVersion #4729

Draft
wants to merge 2 commits into
base: 0.12.x
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[autofix.ci] apply automated fixes
  • Loading branch information
autofix-ci[bot] authored Mar 14, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit d615328cfc251d9d2ae3b1e03ec61656d53342cb
2 changes: 1 addition & 1 deletion scalalib/src/mill/scalalib/Dep.scala
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ case class Dep(dep: coursier.Dependency, cross: CrossVersion, force: Boolean) {
def name = dep.module.name.value
def version = dep.version

def withVersion(version: String = "") = copy(dep = dep.withVersion(version))
def withVersion(version: String = ""): Dep = copy(dep = dep.withVersion(version))

/**
* If scalaVersion is a Dotty version, replace the cross-version suffix