Permalink
Browse files

[split] TO MAVEN

  • Loading branch information...
1 parent c360938 commit 3be050b267c5140f99881a08eeca3e7f406b7f7f mmcbride committed Mar 30, 2012
View
@@ -36,4 +36,4 @@ new SnowflakeConfig {
filename = "snowflake.log"
}
}
-}
+}
@@ -37,4 +37,4 @@ new SnowflakeConfig {
}
}
-}
+}
View
@@ -24,4 +24,4 @@ new SnowflakeConfig {
httpPort = 9990
}
-}
+}
View
80 pom.xml
@@ -0,0 +1,80 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.twitter.service</groupId>
+ <artifactId>snowflake</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0.1-SNAPSHOT</version>
+ <parent>
+ <groupId>com.twitter</groupId>
+ <artifactId>scala-parent-private</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <relativePath>../parents/scala-parent-private/pom.xml</relativePath>
+ </parent>
+ <properties>
+ <git.dir>${project.basedir}/../.git</git.dir>
+ </properties>
+ <dependencies>
+ <!-- library dependencies -->
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.4</version>
+ </dependency>
+ <dependency>
+ <groupId>org.scala-tools.testing</groupId>
+ <artifactId>specs_2.8.1</artifactId>
+ <version>1.6.8</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>1.5.8</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-nop</artifactId>
+ <version>1.5.8</version>
+ </dependency>
+ <dependency>
+ <groupId>thrift</groupId>
+ <artifactId>libthrift</artifactId>
+ <version>0.5.0</version>
+ </dependency>
+ <!-- project dependencies -->
+ <dependency>
+ <groupId>com.twitter</groupId>
+ <artifactId>ostrich</artifactId>
+ <version>6.0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>com.twitter</groupId>
+ <artifactId>scala-zookeeper-client</artifactId>
+ <version>3.0.3-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>com.twitter</groupId>
+ <artifactId>util-logging</artifactId>
+ <version>3.0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>com.twitter</groupId>
+ <artifactId>util-thrift</artifactId>
+ <version>3.0.1-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.twitter</groupId>
+ <artifactId>maven-finagle-thrift-plugin</artifactId>
+ <configuration>
+ <thriftGenerators>
+ <thriftGenerator>java</thriftGenerator>
+ <thriftGenerator>rb</thriftGenerator>
+ </thriftGenerators>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
View
@@ -2,7 +2,7 @@
#Tue Mar 16 15:33:33 PDT 2010
project.name=snowflake
project.organization=com.twitter.service
-project.version=1.0
+project.version=1.0.1-SNAPSHOT
sbt.version=0.7.4
def.scala.version=2.7.7
build.scala.versions=2.8.1
@@ -27,6 +27,7 @@ class SnowflakeProject(info: ProjectInfo) extends StandardServiceProject(info)
<exclude module="jmxtools"/>
<exclude module="jmxri"/>
<exclude org="apache-log4j"/>
+ <override org="junit" rev="4.8.1"/>
</dependencies>
override def pomExtra =
@@ -12,4 +12,4 @@ trait ReporterConfig extends Config[Reporter] {
def apply = {
new Reporter(scribeCategory, scribeHost, scribePort, scribeSocketTimeout, flushQueueLimit)
}
-}
+}
@@ -41,4 +41,4 @@ trait SnowflakeConfig extends ServerConfig[SnowflakeServer] {
reporterConfig.validate
super.validate
}
-}
+}
@@ -5,7 +5,7 @@ import com.twitter.ostrich.stats.Stats
import com.twitter.service.snowflake.gen.InvalidSystemClock
import org.specs._
-class IdWorkerSpec extends Specification {
+class IdWorkerSpec extends SpecificationWithJUnit {
val workerMask = 0x000000000001F000L
val datacenterMask = 0x00000000003E0000L
val timestampMask = 0xFFFFFFFFFFC00000L
@@ -3,7 +3,7 @@ package com.twitter.service.snowflake
import org.specs._
import com.twitter.service.snowflake.gen._
-class ReporterSpec extends Specification {
+class ReporterSpec extends SpecificationWithJUnit {
//
// "report" should {
// "not raise an exception when scribe is down" in {
@@ -6,7 +6,7 @@ import com.twitter.util.Eval
import java.io.{File, FilenameFilter}
import org.specs._
-class SnowflakeConfigSpec extends Specification {
+class SnowflakeConfigSpec extends SpecificationWithJUnit {
"SnowflakeConfig" should {
"properly extract the worker id" in {
@@ -33,4 +33,4 @@ class SnowflakeConfigSpec extends Specification {
}
}
}
-}
+}
@@ -2,5 +2,5 @@ package com.twitter.service.snowflake
import org.specs._
-class SnowflakeServerSpec extends Specification {
+class SnowflakeServerSpec extends SpecificationWithJUnit {
}

0 comments on commit 3be050b

Please sign in to comment.