Skip to content

Commit

Permalink
Merge pull request #1888 from scalacenter/byeKafka
Browse files Browse the repository at this point in the history
refactor: remove unused cloneKafka stuff.
  • Loading branch information
ckipp01 authored Nov 29, 2022
2 parents 8d2fb51 + fd52a14 commit 6d802b4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions project/BuildPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -339,19 +339,6 @@ object BuildImplementation {
"-Xmx3g" :: "-Xms1g" :: "-XX:ReservedCodeCacheSize=512m" :: "-XX:MaxInlineLevel=20" :: Nil

object BuildDefaults {
private final val kafka =
uri("https://github.com/apache/kafka.git#57320981bb98086a0b9f836a29df248b1c0378c3")

// Currently unused, we leave it here because we might need it in the future
private def cloneKafka(state: State): State = {
val staging = getStagingDirectory(state)
sbt.Resolvers.git(new BuildLoader.ResolveInfo(kafka, staging, null, state)) match {
case Some(f) => state.put(BuildKeys.gradleIntegrationDirs, List(f()))
case None =>
state.log.error("Kafka git reference is invalid and cannot be cloned"); state
}
}

def exportProjectsInTestResources(
baseDir: File,
log: Logger,
Expand Down

0 comments on commit 6d802b4

Please sign in to comment.