Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Chrome Profile を scalac に出してもらうようにする
Browse files Browse the repository at this point in the history
kory33 authored and outductor committed Jul 10, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 77372ae commit 9fe6c01
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -26,3 +26,6 @@ docker/spigot/serverfiles/eula.txt
.metals
project/.bloop/
project/metals.sbt

# scalac に -Yprofile-trace profile.trace を渡しているので、Chrome Trace file が生成される
/profile.trace
14 changes: 12 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -71,7 +71,11 @@ val providedDependencies = Seq(
).map(_ % "provided")

val scalafixCoreDep =
"ch.epfl.scala" %% "scalafix-core" % _root_.scalafix.sbt.BuildInfo.scalafixVersion % ScalafixConfig
"ch.epfl.scala" %% "scalafix-core" % _root_
.scalafix
.sbt
.BuildInfo
.scalafixVersion % ScalafixConfig

val testDependencies = Seq(
"org.scalamock" %% "scalamock" % "5.2.0",
@@ -198,6 +202,8 @@ lazy val root = (project in file(".")).settings(
excludeDependencies := Seq(ExclusionRule(organization = "org.bukkit", name = "bukkit")),
unmanagedBase := baseDirectory.value / "localDependencies",
scalacOptions ++= Seq(
"-Yprofile-trace",
"profile.trace",
"-encoding",
"utf8",
"-unchecked",
@@ -210,7 +216,11 @@ lazy val root = (project in file(".")).settings(
),
javacOptions ++= Seq("-encoding", "utf8"),
assembly / assemblyShadeRules ++= Seq(
ShadeRule.rename("org.mariadb.jdbc.**" -> "com.github.unchama.seichiassist.relocateddependencies.org.mariadb.jdbc.@1").inAll
ShadeRule
.rename(
"org.mariadb.jdbc.**" -> "com.github.unchama.seichiassist.relocateddependencies.org.mariadb.jdbc.@1"
)
.inAll
),
// sbt-assembly 1.0.0からはTestを明示的にタスクツリーに入れる必要がある
// cf. https://github.com/sbt/sbt-assembly/pull/432/commits/361224a6202856bc2e572df811d0e6a1f1efda98

0 comments on commit 9fe6c01

Please sign in to comment.