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

feature: sbt 2 support #526

Merged
merged 1 commit into from
Oct 10, 2024
Merged

feature: sbt 2 support #526

merged 1 commit into from
Oct 10, 2024

Conversation

xuwei-k
Copy link
Contributor

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

No description provided.

@@ -124,7 +124,7 @@ class SonatypeClient(
// init * (multiplier ^ n) = max
// n = log(max / init) / log(multiplier)
val retryCountUntilMaxInterval = (math.log(maxInterval.toDouble / initInterval) / math.log(1.5)).toInt.max(1)
val numRetry = (timeoutMillis / maxInterval).ceil.toInt
val numRetry = (timeoutMillis / maxInterval).toDouble.ceil.toInt
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Welcome to Scala 3.3.4 (21.0.4, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                                                                           
scala> def f(x: Int) = x.ceil
-- [E008] Not Found Error: -----------------------------------------------------
1 |def f(x: Int) = x.ceil
  |                ^^^^^^
  |        value ceil is not a member of Int.
  |        An extension method was tried, but could not be fully constructed:
  |
  |            floatWrapper(x)
1 error found
                                                                                                                                           
scala> def f(x: Int) = x.toDouble.ceil
def f(x: Int): Double

@xerial xerial changed the title sbt 2 feature: sbt 2 support Oct 10, 2024
@xerial xerial added the feature label Oct 10, 2024
@xerial xerial merged commit 49d4315 into xerial:master Oct 10, 2024
7 checks passed
@xuwei-k xuwei-k deleted the sbt-2 branch October 17, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants