Skip to content

Commit

Permalink
Move PluginCompat to give access to package.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyAutrey committed Oct 12, 2024
1 parent bfe241e commit 03419ce
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.typesafe.sbt.web
package com.typesafe.sbt

import java.nio.file.{ Path => NioPath }
import sbt.*
import sbt.Keys.Classpath
import xsbti.FileConverter

private[web] object PluginCompat {
import java.nio.file.Path as NioPath

private[sbt] object PluginCompat {
type FileRef = java.io.File
type Out = java.io.File

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.typesafe.sbt.web
package com.typesafe.sbt

import java.nio.file.{ Path => NioPath }
import java.io.{ File => IoFile }
import sbt.*
import sbt.Keys.Classpath
import xsbti.{ FileConverter, HashedVirtualFileRef, VirtualFile }

private[web] object PluginCompat:
private[sbt] object PluginCompat:
type FileRef = HashedVirtualFileRef
type Out = VirtualFile

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
package com.typesafe.sbt.web.incremental

import com.typesafe.sbt.web.PluginCompat.toSet
import com.typesafe.sbt.PluginCompat.toSet
import java.io.File
import sbt.Hash

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.typesafe.sbt.web

import java.io.File
import PluginCompat.toSet
import com.typesafe.sbt.PluginCompat.toSet

/**
* The incremental task API lets tasks run more quickly when they are called more than once. The idea is to do less work
Expand Down
4 changes: 3 additions & 1 deletion src/main/scala/com/typesafe/sbt/web/package.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.typesafe.sbt

import PluginCompat.FileRef

import java.io.File

package object web {
Expand All @@ -12,5 +14,5 @@ package object web {
/**
* A function for possibly selecting a single file from a sequence.
*/
type Deduplicator = Seq[File] => Option[File]
type Deduplicator = Seq[FileRef] => Option[FileRef]
}

0 comments on commit 03419ce

Please sign in to comment.