Permalink
Browse files

Maven is great

  • Loading branch information...
1 parent 55154b1 commit de2d1996089c304a047ce0fd81a6174369820b2d @pangloss committed Jul 24, 2012
Showing with 16 additions and 1 deletion.
  1. +8 −1 Rakefile
  2. +1 −0 lib/pacer/version.rb
  3. +7 −0 pom.xml
View
@@ -27,6 +27,7 @@ file 'pom.xml' => 'lib/pacer/version.rb' do
line.sub!(%r{<gem.version>.*</gem.version>}, "<gem.version>#{ Pacer::VERSION }</gem.version>")
line.sub!(%r{<blueprints.version>.*</blueprints.version>}, "<blueprints.version>#{ Pacer::BLUEPRINTS_VERSION }</blueprints.version>")
line.sub!(%r{<pipes.version>.*</pipes.version>}, "<pipes.version>#{ Pacer::PIPES_VERSION }</pipes.version>")
+ line.sub!(%r{<gremlin.version>.*</gremlin.version>}, "<gremlin.version>#{ Pacer::GREMLIN_VERSION }</gremlin.version>")
f << line
end
end
@@ -35,7 +36,8 @@ end
file Pacer::JAR_PATH => 'pom.xml' do
when_writing("Execute 'mvn package' task") do
- system('mvn clean package')
+ system 'mvn', 'clean'
+ system 'mvn', 'package'
end
end
@@ -46,6 +48,11 @@ task :check_18_mode do
end
end
+desc 'Touch version.rb so that the jar rebuilds'
+task :touch do
+ system 'touch', 'lib/pacer/version.rb'
+end
+
desc "build the JAR at #{ Pacer::JAR_PATH }"
task :jar => Pacer::JAR_PATH
@@ -9,5 +9,6 @@ module Pacer
BLUEPRINTS_VERSION = "2.1.0-SNAPSHOT"
PIPES_VERSION = "2.1.0-SNAPSHOT"
+ GREMLIN_VERSION = "2.1.0-SNAPSHOT"
end
end
View
@@ -10,6 +10,7 @@
<gem.version>1.0.0.pre</gem.version>
<blueprints.version>2.1.0-SNAPSHOT</blueprints.version>
<pipes.version>2.1.0-SNAPSHOT</pipes.version>
+ <gremlin.version>2.1.0-SNAPSHOT</gremlin.version>
</properties>
<!-- NOTE: the following properties are automatically updated based on the values in lib/pacer-neo4j/version.rb -->
<version>${gem.version}</version>
@@ -40,6 +41,12 @@
<artifactId>pipes</artifactId>
<version>${pipes.version}</version>
</dependency>
+ <!-- MOAR GRAPH TRAVERSAL SUPPORT -->
+ <dependency>
+ <groupId>com.tinkerpop.gremlin</groupId>
+ <artifactId>gremlin-java</artifactId>
+ <version>${gremlin.version}</version>
+ </dependency>
</dependencies>
<repositories>

0 comments on commit de2d199

Please sign in to comment.