Comments (17)
if you are using SBT 0.11.0 go to project/build.properties and change sbt.version=0.11.0
from finagle.
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.
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.
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.
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.
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.
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.
Sure-- there's no real reason scala bootstrapper can't use sbt 0.11-- standard project and friends are ported.
from finagle.
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.
@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.
@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.
@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.
@jponge thanks your help...but,have one question..I don't know use maven..:(
from finagle.
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.
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.
Finagle builds by default with sbt11 now. ./sbt test
from finagle.
There is a difference in using sbt and ./sbt
Go back to school,Vadi!
from finagle.
Related Issues (20)
- Unexpected Netty TLS 1.3 warnings HOT 1
- Update the Netty to latest version greater than 4.1.78.Final to remove the vulnerability CVE-2022-24823 HOT 1
- Growth of the number of prepared statements on server
- DeadlineFilter takes `rejectWithdrawal` regardless of passed Deadline HOT 1
- Custom Monitor not picked up for the ChannelStatsHandler HOT 1
- Finagle `22.7.0` uses vulnerable `jackson-databind` dependency: `2.13.3` HOT 1
- Is Finagle still maintained? HOT 11
- Netty (and other) dependency upgrades HOT 1
- Upgrade to netty 4.1.86.Final in Finagle HOT 3
- How do you calculate your retry budget? HOT 1
- Homepage broken image HOT 1
- Cors Filter does an add to the HeaderMap instead of set
- How to use the partitioning strategy with the http client? HOT 2
- com.twitter.finagle.Http not work HOT 3
- Methodbuilder retry budget gets double deposit HOT 2
- Update the Netty to latest version greater than 4.1.94.Final to remove the vulnerability CVE-2023-34462 HOT 2
- Fix CVE-2023-44487 HOT 1
- How to limit the finagle/RPC's max request size HOT 1
- finagle-http: Http methodbuilder does not allow setting sendInterrupts flag to backup request filter
- Update the Netty to latest version (4.1.108.Final) - Vulnerability CVE-2024-29025 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finagle.