Git Product home page Git Product logo

Comments (17)

danielschonfeld avatar danielschonfeld commented on August 15, 2024

if you are using SBT 0.11.0 go to project/build.properties and change sbt.version=0.11.0

from finagle.

jponge avatar jponge commented on August 15, 2024

It doesn't work with either 0.11.0 or 0.11.2 (the version that I have through Homebrew).

It looks like the project definition cannot be compiled, both update / reload fail:

[info] Compiling 1 Scala source to /Users/jponge/Code/finagle/project/plugins/target/scala-2.9.1/sbt-0.11.0/classes...
[error] /Users/jponge/Code/finagle/project/plugins/Plugins.scala:3: not found: type PluginDefinition
[error] class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
[error]                                          ^
[error] /Users/jponge/Code/finagle/project/plugins/Plugins.scala:3: not found: type ProjectInfo
[error] class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
[error]                     ^
[error] /Users/jponge/Code/finagle/project/plugins/Plugins.scala:3: too many arguments for constructor Object: ()java.lang.Object
[error] class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
[error]              ^
[error] /Users/jponge/Code/finagle/project/plugins/Plugins.scala:4: jcl is not a member of scala.collection
[error]   import scala.collection.jcl
[error]          ^
[error] /Users/jponge/Code/finagle/project/plugins/Plugins.scala:5: not found: value jcl
[error]   val environment = jcl.Map(System.getenv())
[error]                     ^
[error] /Users/jponge/Code/finagle/project/plugins/Plugins.scala:15: value repositories is not a member of AnyRef with ScalaObject
[error]     super.repositories ++ Seq("twitter.com" at "http://maven.twttr.com/")
[error]           ^
[error] /Users/jponge/Code/finagle/project/plugins/Plugins.scala:19: sbt.FileRepository does not take parameters
[error]       Seq(Resolver.defaultLocal(None)) ++ repositories
[error]                                ^
[error] /Users/jponge/Code/finagle/project/plugins/Plugins.scala:21: value ivyRepositories is not a member of AnyRef with ScalaObject
[error]       super.ivyRepositories
[error]             ^
[error] 8 errors found
[error] {file:/Users/jponge/Code/finagle/project/plugins/}default-0bfec2/compile:compile: Compilation failed

from finagle.

danielschonfeld avatar danielschonfeld commented on August 15, 2024

Once you do that, the projects/plugings/Plugins.scala file becomes obsolete as the new SBT doesn't use these classes anymore.

From there on... even afer ones adds the correct resolvers and dependencies in the build.sbt file - I am lost as to how to get it to compile against SBT 0.11.0 and Scala 2.8.1

First compilation error (I am now referring to searchbird, but finagle-example exhibits similar problems):

Client.scala:4: value thrift is not a member of package com.twitter.finagle
[error] import com.twitter.finagle.thrift.ThriftClientFramedCodec

And so on....

from finagle.

jponge avatar jponge commented on August 15, 2024

I would just love to play with Finagle, not fight with SBT, the so-called "Simple" Build Tool :-)

Isn't there a way out bar downgrading SBT?

from finagle.

danielschonfeld avatar danielschonfeld commented on August 15, 2024

I'm very new to scala myself and it's been hell with SBT and with Twitter showing a very promising framework but it not compiling with the latest and greatest in the scala world. I wish one of them authors would chime in here...

There is a way to downgrade and compile perfectly. Just download sbt 0.7.4:
http://code.google.com/p/simple-build-tool/downloads/detail?name=sbt-launch-0.7.4.jar&can=2&q=

reset any changes you've made to this finagle cloning of yours and make a quick script to launch sbt

#!/bin/bash

java -Xmx512M -jar dirname $0/sbt-launch-0.7.4.jar "$@"

from finagle.

mariusae avatar mariusae commented on August 15, 2024

Finagle only builds with sbt 0.7.x. Note that this doesn't mean you have to use it in your projects -- it's only required to compile finagle itself.

Furthermore we publish binary artifacts so you needn't compile it yourself if you don't want.

I'll add some shell scripts to the finagle source (as well as util) to make it self-bootstrapping so that you don't need to install sbt yourself.

from finagle.

danielschonfeld avatar danielschonfeld commented on August 15, 2024

Is there any chance those scripts could be integrated into scala-bootstrapper gem?

It would be nice to have the ability to use that boilerplate Service/Client structure and be able to compile our code on SBT 0.11.0 and Scala 2.8.1...

Thanks so much!

from finagle.

mariusae avatar mariusae commented on August 15, 2024

Sure-- there's no real reason scala bootstrapper can't use sbt 0.11-- standard project and friends are ported.

from finagle.

jponge avatar jponge commented on August 15, 2024

It works with sbt-0.7.4 downloaded and launched locally.

@mariusaeriksen => you mentioned that you publish binaries, but I couldn't find any mention of those... or are they available on Maven Central?

from finagle.

mariusae avatar mariusae commented on August 15, 2024

@jponge they're on our own maven repo: http://maven.twttr.com/. I just realized that this is in fact not documented. I'm going to bring this up to date tomorrow. I'm also working on getting us published to sonatype.

from finagle.

SamPeng87 avatar SamPeng87 commented on August 15, 2024

@mariusaeriksen you say will publish binary artifacts .where are this?
I want use finagle to my project.i have same program,and build one day don't success...:(
thank you very much.

from finagle.

jponge avatar jponge commented on August 15, 2024

@SamPeng87 @mariusaeriksen said that they push to http://maven.twttr.com/ and I see that the GItHub page has been updated to reflect this.

from finagle.

SamPeng87 avatar SamPeng87 commented on August 15, 2024

@jponge thanks your help...but,have one question..I don't know use maven..:(

from finagle.

rshelley avatar rshelley commented on August 15, 2024

For anyone else also looking for the binaries, they are in com/twitter, not com.twitter:

http://maven.twttr.com/com/twitter/

As a side note, I don't see any reference on the GitHub homepage to binaries, binary, library or maven.twttr.com.

from finagle.

sodabrew avatar sodabrew commented on August 15, 2024

If you'd like to to get a Scala 2.9.1, SBT 0.11.2, Thrift 0.8.0, Finagle 3.0.0 stack, a working example is in the README here:

https://github.com/twitter/sbt-scrooge/tree/sbt11

from finagle.

mariusae avatar mariusae commented on August 15, 2024

Finagle builds by default with sbt11 now. ./sbt test

from finagle.

Vadi avatar Vadi commented on August 15, 2024

There is a difference in using sbt and ./sbt
Go back to school,Vadi!

from finagle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.