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

Setup sbt-typelevel #418

Merged
merged 14 commits into from
Nov 25, 2022
Merged

Setup sbt-typelevel #418

merged 14 commits into from
Nov 25, 2022

Conversation

armanbilge
Copy link

No description provided.


val scalaVer = versions("2.13")
val scala3Ver = versions("3")
val tzdbVersion = "2019c"
Copy link
Owner

Choose a reason for hiding this comment

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

Perhaps we should do 2022b or newer to exercise the parser fix

Copy link
Author

Choose a reason for hiding this comment

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

Agree. Follow-up PR? I also want to do a follow-up PR that fixes the tests, because right now it is not testing against the JDK at all. It will be a bit of work to fix all of that.

Copy link
Owner

Choose a reason for hiding this comment

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

Sounds good

)
else
List(
)
},
javaOptions ++= Seq("-Dfile.encoding=UTF8"),
autoAPIMappings := true,
Compile / doc / sources := { if (isDotty.value) Seq() else (Compile / doc / sources).value }
Compile / doc / sources := Seq()
Copy link
Owner

Choose a reason for hiding this comment

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

No docs ever again?

Copy link
Author

@armanbilge armanbilge Nov 18, 2022

Choose a reason for hiding this comment

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

What is their purpose? The official documentation is the JDK Javadoc.

Copy link
Owner

Choose a reason for hiding this comment

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

I guess you're right

zonesFilter := zonesFilterFn,
dbVersion := TzdbPlugin.Version(tzdbVersion),
tlFatalWarnings := false,
Test / test := (Compile / run).toTask("").value
Copy link
Owner

Choose a reason for hiding this comment

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

What does it do?

Copy link
Author

Choose a reason for hiding this comment

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

I'll add a comment. When you call test it invokes run. This is so we don't have to add a separate step to CI for checking that.

* If the field is {@link ChronoField#DAY_OF_WEEK DAY_OF_WEEK} then the
* range of the day-of-week, from 1 to 7, will be returned.
* All other {@code ChronoField} instances will throw a {@code DateTimeException}.
* If the field is {@link ChronoField#DAY_OF_WEEK DAY_OF_WEEK} then the range of the day-of-week,
Copy link
Owner

Choose a reason for hiding this comment

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

Are these formatting changes?

Copy link
Author

Choose a reason for hiding this comment

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

Yes. Formatting was not being checked for Scala 3 until this PR.

@cquiroz
Copy link
Owner

cquiroz commented Nov 18, 2022

Hi, thanks for this
Would it be possible to split the formatting changes into a separate PR?

@armanbilge
Copy link
Author

Right, but that PR will have to merge first since this one enforces that all code is formatted.

@cquiroz
Copy link
Owner

cquiroz commented Nov 25, 2022

I'm goingo to merge this including the formatting changes to get the ball rolling

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