forked from softprops/assembly-sbt
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
136 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,4 @@ jobs: | |
- name: Build and test | ||
shell: bash | ||
run: | | ||
sbt -v clean scripted | ||
sbt -v +compile scripted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.9.9 | ||
sbt.version=1.10.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// format: off | ||
// DO NOT EDIT! This file is auto-generated. | ||
|
||
// This plugin enables semantic information to be produced by sbt. | ||
// It also adds support for debugging using the Debug Adapter Protocol | ||
|
||
addSbtPlugin("org.scalameta" % "sbt-metals" % "1.3.5") | ||
|
||
// This plugin makes sure that the JDI tools are in the sbt classpath. | ||
// JDI tools are used by the debug adapter server. | ||
|
||
addSbtPlugin("org.scala-debugger" % "sbt-jdi-tools" % "1.1.1") | ||
|
||
// format: on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package sbtassembly | ||
|
||
import java.nio.file.{ Path => NioPath } | ||
import java.util.jar.{ Manifest => JManifest } | ||
import sbt.* | ||
import xsbti.FileConverter | ||
|
||
private[sbtassembly] object PluginCompat { | ||
type MainClass = sbt.Package.MainClass | ||
|
||
object CollectionConverters | ||
|
||
val moduleIDStr = Keys.moduleID.key | ||
def parseModuleIDStrAttribute(m: ModuleID): ModuleID = m | ||
|
||
def toNioPath(a: Attributed[File])(implicit conv: FileConverter): NioPath = | ||
a.data.toPath() | ||
def toFile(a: Attributed[File])(implicit conv: FileConverter): File = | ||
a.data | ||
def toNioPaths(cp: Seq[Attributed[File]])(implicit conv: FileConverter): Vector[NioPath] = | ||
cp.map(_.data.toPath()).toVector | ||
def toFiles(cp: Seq[Attributed[File]])(implicit conv: FileConverter): Vector[File] = | ||
cp.map(_.data).toVector | ||
|
||
type CacheKey = FilesInfo[ModifiedFileInfo] :+: | ||
Map[String, (Boolean, String)] :+: // map of target paths that matched a merge strategy | ||
JManifest :+: | ||
// Assembly options... | ||
Boolean :+: | ||
Option[Seq[String]] :+: | ||
Option[Int] :+: | ||
Boolean :+: | ||
HNil | ||
|
||
val HListFormats = sbt.internal.util.HListFormats | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package sbtassembly | ||
|
||
import java.io.File | ||
import java.nio.file.{ Path => NioPath } | ||
import sbt.* | ||
import sbt.librarymanagement.ModuleID | ||
import xsbti.{ FileConverter, HashedVirtualFileRef } | ||
|
||
object PluginCompat: | ||
type MainClass = PackageOption.MainClass | ||
|
||
val CollectionConverters = scala.collection.parallel.CollectionConverters | ||
|
||
val moduleIDStr = Keys.moduleIDStr | ||
def parseModuleIDStrAttribute(str: String): ModuleID = | ||
Classpaths.moduleIdJsonKeyFormat.read(str) | ||
|
||
def toNioPath(a: Attributed[HashedVirtualFileRef])(implicit conv: FileConverter): NioPath = | ||
conv.toPath(a.data) | ||
inline def toFile(a: Attributed[HashedVirtualFileRef])(implicit conv: FileConverter): File = | ||
toNioPath(a).toFile() | ||
def toNioPaths(cp: Seq[Attributed[HashedVirtualFileRef]])(implicit conv: FileConverter): Vector[NioPath] = | ||
cp.map(toNioPath).toVector | ||
inline def toFiles(cp: Seq[Attributed[HashedVirtualFileRef]])(implicit conv: FileConverter): Vector[File] = | ||
toNioPaths(cp).map(_.toFile()) | ||
end PluginCompat |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.