Skip to content

Commit

Permalink
Merge pull request #1851 from GiganticMinecraft/KisaragiEffective-pat…
Browse files Browse the repository at this point in the history
…ch-1
  • Loading branch information
rito528 authored Mar 12, 2023
2 parents a5ceb1d + f580b0a commit b4e4ec2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ assembly / assemblyExcludedJars := {
}
}

// protocol配下とルートのLICENSEが衝突してCIが落ちる
// cf. https://github.com/sbt/sbt-assembly/issues/141
assembly / assemblyMergeStrategy := {
case PathList(ps @ _*) if ps.last endsWith "LICENSE" => MergeStrategy.first
case otherFile =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(otherFile)
}

// endregion

// region プラグインJarに埋め込むリソースの処理
Expand All @@ -150,8 +159,6 @@ Compile / filteredResourceGenerator :=

Compile / resourceGenerators += (Compile / filteredResourceGenerator)

Compile / unmanagedResources += baseDirectory.value / "LICENSE"

// トークン置換を行ったファイルをunmanagedResourcesのコピーから除外する
unmanagedResources / excludeFilter :=
filesToBeReplacedInResourceFolder.foldLeft((unmanagedResources / excludeFilter).value)(
Expand Down
4 changes: 2 additions & 2 deletions project/scalapb.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.28")
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.6")

libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.10.1"
libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.11.11"

0 comments on commit b4e4ec2

Please sign in to comment.