Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit a73d5b1

Browse files
Merge pull request #15 from intenthq/upgrade-thrift
Upgrade Thrift to 0.10.0, bump Pucket to 1.5.0.
2 parents 1f06a88 + 5d75809 commit a73d5b1

File tree

6 files changed

+36
-19
lines changed

6 files changed

+36
-19
lines changed

.gitignore

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1+
*.class
2+
*.log
3+
4+
# sbt specific
5+
.cache
6+
.history
7+
.lib/
8+
dist/*
19
target/
2-
.DS_Store
10+
lib_managed/
11+
src_managed/
12+
project/boot/
13+
project/plugins/project/
14+
15+
# Scala-IDE specific
16+
.ensime
17+
.ensime_cache/
18+
.scala_dependencies
19+
.worksheet
320
.idea
4-
.idea_modules
5-
*.swp

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ language: scala
22
before_install:
33
- sudo apt-get update -qq
44
- sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
5-
- wget http://www.us.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz
6-
- tar xfz thrift-0.9.3.tar.gz && mv thrift-0.9.3 .thrift-0.9.3
7-
- cd .thrift-0.9.3 && ./configure --with-java --without-c_glib --without-cpp --without-csharp --without-python --without-ruby --without-haskell --without-perl --without-php --without-erlang --without-go --without-d --without-nodejs --without-lua && make && sudo make install && cd -
5+
- wget http://www.us.apache.org/dist/thrift/0.10.0/thrift-0.10.0.tar.gz
6+
- tar xfz thrift-0.10.0.tar.gz && mv thrift-0.10.0 .thrift-0.10.0
7+
- cd .thrift-0.10.0 && ./configure --with-java --without-c_glib --without-cpp --without-csharp --without-python --without-ruby --without-haskell --without-perl --without-php --without-erlang --without-go --without-d --without-nodejs --without-lua && make && sudo make install && cd -
88
scala:
99
- 2.11.7
1010
script:
1111
- sbt ++2.11.8 test
1212
- sbt ++2.10.6 test
1313
cache:
1414
directories:
15-
- ~/.thrift-0.9.3
15+
- ~/.thrift-0.10.0
1616
- ~/.ivy2
1717
- ~/.sbt

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ The following top level dependencies are published in Maven central:
1212

1313
**Thrift support**:
1414
```
15-
"com.intenthq.pucket" %% "pucket-thrift" % "1.4.0"
15+
"com.intenthq.pucket" %% "pucket-thrift" % "1.5.0"
1616
```
1717

1818
**Avro support**:
1919
```
20-
"com.intenthq.pucket" %% "pucket-avro" % "1.4.0"
20+
"com.intenthq.pucket" %% "pucket-avro" % "1.5.0"
2121
```
2222

2323
**Spark connectors**:
2424
```
25-
"com.intenthq.pucket" %% "pucket-spark" % "1.4.0"
25+
"com.intenthq.pucket" %% "pucket-spark" % "1.5.0"
2626
```
2727

2828
**MapReduce integration**:
2929
```
30-
"com.intenthq.pucket" %% "pucket-mapreduce" % "1.4.0"
30+
"com.intenthq.pucket" %% "pucket-mapreduce" % "1.5.0"
3131
```
3232

3333
These dependencies should be combined depending on your usages; for example if you use Thrift and Spark then use the following:
3434

3535
```
36-
"com.intenthq.pucket" %% "pucket-thrift" % "1.4.0"
37-
"com.intenthq.pucket" %% "pucket-spark" % "1.4.0"
36+
"com.intenthq.pucket" %% "pucket-thrift" % "1.5.0"
37+
"com.intenthq.pucket" %% "pucket-spark" % "1.5.0"
3838
```
3939

4040

build.sbt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import com.github.bigtoast.sbtthrift.ThriftPlugin
21
import sbt.ExclusionRule
2+
import com.intenthq.sbt.ThriftPlugin._
33
import com.typesafe.sbt.SbtGit.GitKeys._
44

55
val specs2Ver = "3.8.6"
@@ -32,7 +32,7 @@ val pomInfo = (
3232

3333
lazy val commonSettings = Seq(
3434
organization := "com.intenthq.pucket",
35-
version := "1.4.0",
35+
version := "1.5.0",
3636
scalaVersion := "2.11.8",
3737
publishArtifact in Test := false,
3838
pomIncludeRepository := { _ => false },
@@ -115,14 +115,16 @@ lazy val spark = (project in file("spark")).
115115
).dependsOn(core % "compile->compile;test->test", mapreduce % "compile->compile;test->test")
116116

117117
lazy val thrift = (project in file("thrift")).
118-
settings(ThriftPlugin.thriftSettings: _*).
118+
enablePlugins(ThriftPlugin).
119119
settings(commonSettings: _*).
120120
settings(
121121
name := "pucket-thrift",
122122
libraryDependencies ++= Seq(
123-
"org.apache.thrift" % "libthrift" % "0.9.3",
123+
"org.apache.thrift" % "libthrift" % "0.10.0",
124124
"org.apache.parquet" % "parquet-thrift" % parquetVer
125-
)
125+
),
126+
thriftSourceDir in Thrift <<= sourceDirectory { _ / "test" / "thrift" },
127+
thriftOutputDir in Thrift <<= sourceManaged { _ / "test" }
126128
).dependsOn(core % "compile->compile;test->test", mapreduce % "test->test", spark % "test->test")
127129

128130

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resolvers += "bigtoast-github" at "http://bigtoast.github.com/repo/"
22

33
addSbtPlugin("com.cavorite" % "sbt-avro-1-7" % "1.1.2")
4-
addSbtPlugin("com.github.bigtoast" % "sbt-thrift" % "0.7")
4+
addSbtPlugin("com.intenthq.sbt" % "sbt-thrift-plugin" % "1.0.5")
55
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.1")
66
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.0")
77
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.3.0")

0 commit comments

Comments
 (0)