Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Kafka #18070

Closed
wants to merge 1 commit into from
Closed

Kafka #18070

wants to merge 1 commit into from

Conversation

oggy
Copy link
Contributor

@oggy oggy commented Feb 25, 2013

Took heed of comments on #7878. I'm only just starting to play around with Kafka, however, so very much open to further suggestions.


def install
system "sh sbt update"
system "sh sbt package"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need a dependency on sbt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this runs a packaged executable.

@adamv
Copy link
Contributor

adamv commented Mar 29, 2013

==> sh sbt update
sh sbt update
Getting Scala 2.7.7 ...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.7.7/scala-compiler-2.7.7.jar ...

(ugh!)

@oggy
Copy link
Contributor Author

oggy commented Mar 29, 2013

@adamv Agreed with this sentiment.

Not sure if there's a reliable way to build it using an installed scala - that would be ideal. Didn't see anything documented along these lines, and I don't know scala/sbt well enough yet to discover a solution on my own.

@marcomorain
Copy link

It gets worse lower down – it install a second Scala compiler.

Getting Scala 2.7.7 ...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.7.7/scala-compiler-2.7.7.jar ...
        [SUCCESSFUL ] org.scala-lang#scala-compiler;2.7.7!scala-compiler.jar (37168ms)
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.7.7/scala-library-2.7.7.jar ...
    [SUCCESSFUL ] org.scala-lang#scala-library;2.7.7!scala-library.jar (10714ms)

....

Getting Scala 2.8.0 ...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.8.0/scala-compiler-2.8.0.jar ...
    [SUCCESSFUL ] org.scala-lang#scala-compiler;2.8.0!scala-compiler.jar (23065ms)
downloading file:/Users/marc/.m2/repository/org/scala-lang/scala-library/2.8.0/scala-library-2.8.0.jar ...
    [SUCCESSFUL ] org.scala-lang#scala-library;2.8.0!scala-library.jar (234ms)

@adamv
Copy link
Contributor

adamv commented May 29, 2013

Any news on 0.8?

@adamv
Copy link
Contributor

adamv commented Jun 3, 2013

Passing on this as it "installs a bunch of stuff"; would review an update for version 0.8 if it plays nicer with packaging systems.

@adamv adamv closed this Jun 3, 2013
@hanxue
Copy link
Contributor

hanxue commented Dec 10, 2013

The way sbt works is to look for dependencies in a project and download them to the sbt cache, usually $HOME/.sbt. If you have built/run other sbt projects that uses the same dependencies, then sbt will not "install a bunch of stuff".

Note that even if you already have, say, Scala 2.8.0 installed, if the scala 2.8.0 compiler and library do not exist in the SBT cache, it will be downloaded. Resolving dependencies in SBT is different from installing Scala or other libraries using a package manager.

Pull Request #25109 is the formula for kafka 0.8.0 and sbt will build for scala 2.8.0 by default, and can build for these Scala versions: "2.8.0","2.8.2", "2.9.1", "2.9.2", "2.10.1")

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants