Skip to content

Commit

Permalink
Maven is great
Browse files Browse the repository at this point in the history
  • Loading branch information
Darrick Wiebe committed Jul 24, 2012
1 parent 55154b1 commit de2d199
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Rakefile
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions lib/pacer/version.rb
Expand Up @@ -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
7 changes: 7 additions & 0 deletions pom.xml
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit de2d199

Please sign in to comment.