mirror of
https://github.com/sbt/sbt.git
synced 2026-09-04 08:45:56 +02:00
Fix pom-advanced
This commit is contained in:
@@ -6,15 +6,17 @@ lazy val root = (project in file(".")).
|
||||
settings(
|
||||
resolvers ++= Seq(local, Resolver.sonatypeRepo("releases"), Resolver.sonatypeRepo("snapshots")),
|
||||
InputKey[Unit]("checkPom") := {
|
||||
val converter = fileConverter.value
|
||||
val result = spaceDelimited("<args>").parsed
|
||||
checkPomRepositories(makePom.value, result, streams.value)
|
||||
val pomFile = converter.toPath(makePom.value)
|
||||
checkPomRepositories(pomFile.toFile, result, streams.value)
|
||||
},
|
||||
makePomConfiguration := {
|
||||
val conf = makePomConfiguration.value
|
||||
conf
|
||||
.withFilterRepositories(pomIncludeRepository(baseDirectory.value, conf.filterRepositories))
|
||||
},
|
||||
ivyPaths := baseDirectory( dir => IvyPaths(dir, Some(dir / "ivy-home"))).value
|
||||
ivyPaths := baseDirectory(dir => IvyPaths(dir.toString, Some((dir / "ivy-home").toString))).value
|
||||
)
|
||||
|
||||
val local = "local-maven-repo" at "file://" + (Path.userHome / ".m2" /"repository").absolutePath
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
# write the default pom. The only repositories should be Scala Tools Releases and Snapshots
|
||||
> checkPom https://scala-ci.typesafe.com/artifactory/scala-integration/ https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/ https://oss.sonatype.org/service/local/repositories/releases/content/ https://oss.sonatype.org/content/repositories/snapshots/
|
||||
|
||||
# include file:// repositories. The generated repositories section should include the local Maven repository as well
|
||||
$ touch repo.all
|
||||
> checkPom https://scala-ci.typesafe.com/artifactory/scala-integration/ https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/ https://oss.sonatype.org/service/local/repositories/releases/content/ https://oss.sonatype.org/content/repositories/snapshots/ file://*.m2/repository/
|
||||
|
||||
$ delete repo.all
|
||||
$ touch repo.none
|
||||
> checkPom
|
||||
@@ -0,0 +1,10 @@
|
||||
# write the default pom. The only repositories should be Scala Tools Releases and Snapshots
|
||||
> checkPom https://oss.sonatype.org/service/local/repositories/releases/content/ https://oss.sonatype.org/content/repositories/snapshots/
|
||||
|
||||
# include file:// repositories. The generated repositories section should include the local Maven repository as well
|
||||
$ touch repo.all
|
||||
> checkPom https://oss.sonatype.org/service/local/repositories/releases/content/ https://oss.sonatype.org/content/repositories/snapshots/ file://*.m2/repository/
|
||||
|
||||
$ delete repo.all
|
||||
$ touch repo.none
|
||||
> checkPom
|
||||
Reference in New Issue
Block a user