Skip to content

Commit

Permalink
Merge pull request #488 from adpi2/configured-repositories
Browse files Browse the repository at this point in the history
Use configured repositories from sbt build
  • Loading branch information
adpi2 authored Aug 6, 2024
2 parents b1ef505 + 40db36b commit df60b1d
Show file tree
Hide file tree
Showing 19 changed files with 448 additions and 352 deletions.
2 changes: 1 addition & 1 deletion .scalafix.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ OrganizeImports {

RemoveUnused {
imports = false // handled by OrganizeImports
}
}
23 changes: 13 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,20 @@ lazy val `sbt-plugin` = project
.settings(
scalaVersion := V.scala212,
name := "sbt-scala3-migrate",
libraryDependencies ++= Seq(
"io.get-coursier" %% "coursier" % V.coursierApi,
"io.get-coursier" %% "coursier-sbt-maven-repository" % V.coursierApi,
"org.scalatest" %% "scalatest" % V.scalatest % Test
),
scriptedLaunchOpts ++= Seq(s"-Dplugin.version=${version.value}"),
scriptedDependencies := {
scriptedDependencies
.dependsOn(
`migrate-interface` / publishLocal,
`compiler-interface` / publishLocal,
migrate / publishLocal,
`scalafix-rules` / publishLocal
)
.value
},
scriptedDependencies := scriptedDependencies
.dependsOn(
`migrate-interface` / publishLocal,
`compiler-interface` / publishLocal,
migrate / publishLocal,
`scalafix-rules` / publishLocal
)
.value,
buildInfoPackage := "migrate",
scriptedBufferLog := false,
buildInfoKeys := Seq[BuildInfoKey](
Expand Down
12 changes: 0 additions & 12 deletions interfaces/migrate/src/main/java/migrate/interfaces/Lib.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ void migrate(List<Path> unmanagedSources,
Path baseDirectory);

MigratedScalacOptions migrateScalacOption(List<String> scala3CompilerOptions);
MigratedLibs migrateLibs(List<Lib> libs);

void migrateSyntax(List<Path> unmanagedSources,
Path targetRoot,
Expand Down

This file was deleted.

This file was deleted.

99 changes: 0 additions & 99 deletions migrate/src/main/scala/migrate/LibraryMigration.scala

This file was deleted.

7 changes: 0 additions & 7 deletions migrate/src/main/scala/migrate/interfaces/MigrateImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ import java.{util => jutil}

import scala.jdk.CollectionConverters._

import migrate.LibraryMigration
import migrate.Scala3Migrate
import migrate.ScalacOptionsMigration
import migrate.internal.AbsolutePath
import migrate.internal.Classpath
import migrate.internal.InitialLib
import migrate.utils.ScalaExtensions._
import migrate.utils.ScalafixService

Expand Down Expand Up @@ -58,11 +56,6 @@ final class MigrateImpl(logger: Logger) extends Migrate {
override def migrateScalacOption(scalacOptions: jutil.List[String]): MigratedScalacOptions =
ScalacOptionsMigration.migrate(scalacOptions.asScala.toSeq)

override def migrateLibs(libs: jutil.List[Lib]): MigratedLibs = {
val initialLibs = libs.asScala.map(InitialLib.apply).toSeq
LibraryMigration.migrateLibs(initialLibs)
}

override def migrateSyntax(
unmanagedSources: jutil.List[Path],
targetRoot: Path,
Expand Down
38 changes: 0 additions & 38 deletions migrate/src/main/scala/migrate/internal/CrossVersion.scala

This file was deleted.

3 changes: 3 additions & 0 deletions migrate/src/main/scala/migrate/internal/Repository.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package migrate.internal

case class Repository(url: String)
50 changes: 0 additions & 50 deletions migrate/src/main/scala/migrate/utils/CoursierHelper.scala

This file was deleted.

24 changes: 0 additions & 24 deletions plugin/src/main/scala/migrate/LibImpl.scala

This file was deleted.

Loading

0 comments on commit df60b1d

Please sign in to comment.