mirror of https://github.com/sbt/sbt.git
Remove lmCoursierCustomProtocol projects
This commit is contained in:
parent
eaf604f14d
commit
379cfa8ca0
40
build.sbt
40
build.sbt
|
|
@ -1505,10 +1505,6 @@ lazy val lmCoursier = project
|
|||
"org.scalatest" %% "scalatest" % "3.2.19" % Test
|
||||
),
|
||||
excludeDependencies ++= coursierExcludedDependencies,
|
||||
Test / exportedProducts := {
|
||||
(lmCustomProtocolJavaForTest / publishLocal).value
|
||||
(Test / exportedProducts).value
|
||||
},
|
||||
Compile / sourceGenerators += dataclassGen(lmCoursierDefinitions).taskValue,
|
||||
)
|
||||
.dependsOn(
|
||||
|
|
@ -1588,39 +1584,3 @@ lazy val lmCoursierShaded = project
|
|||
Utils.noPublish,
|
||||
)
|
||||
.dependsOn(lmIvy % "provided")
|
||||
|
||||
lazy val lmCustomProtocolForTest212 = project
|
||||
.in(file("lm-coursier/custom-protocol-for-test-2-12"))
|
||||
.settings(
|
||||
sourceDirectory := file(
|
||||
"lm-coursier/custom-protocol-for-test/src"
|
||||
).toPath.toAbsolutePath.toFile,
|
||||
scalaVersion := scala212,
|
||||
organization := "org.example",
|
||||
moduleName := "customprotocol-handler",
|
||||
version := "0.1.0",
|
||||
Utils.noPublish
|
||||
)
|
||||
|
||||
lazy val lmCustomProtocolForTest213 = project
|
||||
.in(file("lm-coursier/custom-protocol-for-test-2-13"))
|
||||
.settings(
|
||||
sourceDirectory := file(
|
||||
"lm-coursier/custom-protocol-for-test/src"
|
||||
).toPath.toAbsolutePath.toFile,
|
||||
scalaVersion := scala213,
|
||||
organization := "org.example",
|
||||
moduleName := "customprotocol-handler",
|
||||
version := "0.1.0",
|
||||
Utils.noPublish
|
||||
)
|
||||
|
||||
lazy val lmCustomProtocolJavaForTest = project
|
||||
.in(file("lm-coursier/custom-protocol-java-for-test"))
|
||||
.settings(
|
||||
crossPaths := false,
|
||||
organization := "org.example",
|
||||
moduleName := "customprotocoljava-handler",
|
||||
version := "0.1.0",
|
||||
Utils.noPublish
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
package coursier.cache.protocol
|
||||
|
||||
import java.net.{ URL, URLConnection, URLStreamHandler, URLStreamHandlerFactory }
|
||||
|
||||
class CustomprotocolHandler extends URLStreamHandlerFactory {
|
||||
def createURLStreamHandler(protocol: String): URLStreamHandler = new URLStreamHandler {
|
||||
protected def openConnection(url: URL): URLConnection =
|
||||
new URL("https://repo1.maven.org/maven2" + url.getPath()).openConnection()
|
||||
}
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
package coursier.cache.protocol;
|
||||
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.net.URLStreamHandler;
|
||||
import java.net.URLStreamHandlerFactory;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class CustomprotocoljavaHandler implements URLStreamHandlerFactory {
|
||||
public URLStreamHandler createURLStreamHandler(String protocol) {
|
||||
return new URLStreamHandler() {
|
||||
protected URLConnection openConnection(URL url) throws IOException {
|
||||
return new URL("https://repo1.maven.org/maven2" + url.getPath()).openConnection();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue