Skip to content

Commit

Permalink
switch over to use SNAPSHOT version but keep final_names without SNAP…
Browse files Browse the repository at this point in the history
…SHOT to preserve tools depending on file-naming conventions [skip ci]
  • Loading branch information
mkristian committed Apr 8, 2014
1 parent 16a7307 commit 58635c2
Show file tree
Hide file tree
Showing 17 changed files with 41 additions and 27 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
9000.dev 9000.dev-SNAPSHOT
2 changes: 1 addition & 1 deletion core/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-parent</artifactId> <artifactId>jruby-parent</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
</parent> </parent>
<artifactId>jruby-core</artifactId> <artifactId>jruby-core</artifactId>
<name>JRuby Core</name> <name>JRuby Core</name>
Expand Down
4 changes: 2 additions & 2 deletions lib/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-parent</artifactId> <artifactId>jruby-parent</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
</parent> </parent>
<artifactId>jruby-lib</artifactId> <artifactId>jruby-lib</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
Expand All @@ -20,7 +20,7 @@
<dependency> <dependency>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-core</artifactId> <artifactId>jruby-core</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jruby.gems</groupId> <groupId>org.jruby.gems</groupId>
Expand Down
4 changes: 4 additions & 0 deletions maven/jruby-complete/pom.rb
Expand Up @@ -24,6 +24,10 @@
'org.ow2.asm:asm-util' ] ) 'org.ow2.asm:asm-util' ] )
jar 'org.jruby:jruby-stdlib:${project.version}' jar 'org.jruby:jruby-stdlib:${project.version}'


build do
final_name "#{model.artifact_id}-#{version.sub(/-SNAPSHOT/,'')}"
end

plugin( 'org.apache.felix:maven-bundle-plugin', plugin( 'org.apache.felix:maven-bundle-plugin',
:archive => { :archive => {
:manifest => { :manifest => {
Expand Down
3 changes: 2 additions & 1 deletion maven/jruby-complete/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-artifacts</artifactId> <artifactId>jruby-artifacts</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
</parent> </parent>
<artifactId>jruby-complete</artifactId> <artifactId>jruby-complete</artifactId>
<packaging>bundle</packaging> <packaging>bundle</packaging>
Expand Down Expand Up @@ -53,6 +53,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>jruby-complete-9000.dev</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.felix</groupId> <groupId>org.apache.felix</groupId>
Expand Down
3 changes: 2 additions & 1 deletion maven/jruby-dist/pom.rb
Expand Up @@ -42,6 +42,7 @@


phase :package do phase :package do
plugin( :assembly, '2.4', plugin( :assembly, '2.4',
'finalName' => "#{model.artifact_id}-#{version.sub(/-SNAPSHOT/, '')}",
'tarLongFileMode' => 'gnu', 'tarLongFileMode' => 'gnu',
'descriptors' => [ 'src/main/assembly/jruby.xml' ] ) do 'descriptors' => [ 'src/main/assembly/jruby.xml' ] ) do
execute_goals( 'single' ) execute_goals( 'single' )
Expand Down Expand Up @@ -109,7 +110,7 @@


revision = `git show`.gsub( /\n.*|commit /, '' ) revision = `git show`.gsub( /\n.*|commit /, '' )


basefile = "#{ctx.project.build.directory}/#{ctx.project.artifactId}-#{ctx.project.version}-src" basefile = "#{ctx.project.build.directory}/#{ctx.project.artifactId}-#{ctx.project.version}-src".sub(/-SNAPSHOT/, '')


FileUtils.cd( File.join( ctx.project.basedir.to_s, '..', '..' ) ) do FileUtils.cd( File.join( ctx.project.basedir.to_s, '..', '..' ) ) do
[ 'tar', 'zip' ].each do |format| [ 'tar', 'zip' ].each do |format|
Expand Down
3 changes: 2 additions & 1 deletion maven/jruby-dist/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-artifacts</artifactId> <artifactId>jruby-artifacts</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
</parent> </parent>
<artifactId>jruby-dist</artifactId> <artifactId>jruby-dist</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
Expand Down Expand Up @@ -56,6 +56,7 @@
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<finalName>jruby-dist-9000.dev</finalName>
<tarLongFileMode>gnu</tarLongFileMode> <tarLongFileMode>gnu</tarLongFileMode>
<descriptors> <descriptors>
<descriptor>src/main/assembly/jruby.xml</descriptor> <descriptor>src/main/assembly/jruby.xml</descriptor>
Expand Down
6 changes: 5 additions & 1 deletion maven/jruby-jars/Mavenfile
Expand Up @@ -7,7 +7,7 @@ name "JRuby Jars Gem"
gemspec :include_jars => true gemspec :include_jars => true


version = File.read( File.join( basedir, '..', '..', 'VERSION' ) ).strip version = File.read( File.join( basedir, '..', '..', 'VERSION' ) ).strip
version.gsub!( /-SNAPSHOT$/, '' )
# overwrite the version from gemspec # overwrite the version from gemspec
model.version = version model.version = version
inherit "org.jruby:jruby-artifacts:#{model.version}" inherit "org.jruby:jruby-artifacts:#{model.version}"
Expand Down Expand Up @@ -60,4 +60,8 @@ end


plugin( :invoker ) plugin( :invoker )


build do
final_name "#{model.artifact_id}-#{version.sub(/-SNAPSHOT/, '')}"
end

# vim: syntax=Ruby # vim: syntax=Ruby
15 changes: 11 additions & 4 deletions maven/jruby-jars/jruby-jars.gemspec
@@ -1,22 +1,29 @@
#-*- mode: ruby -*- #-*- mode: ruby -*-


require 'rake'
require 'rexml/document' require 'rexml/document'
require 'rexml/xpath' require 'rexml/xpath'


version = File.read( File.join( File.dirname(File.expand_path(__FILE__)), '..', '..', 'VERSION' ) ).strip version = File.read( File.join( File.dirname(File.expand_path(__FILE__)), '..', '..', 'VERSION' ) ).strip
version.gsub!( /-SNAPSHOT$/, '' )
File.open( 'lib/jruby-jars/version.rb', 'w' ) do |f|
f.print <<EOF
module JRubyJars
VERSION = '#{version.sub( /-SNAPSHOT$/, '' )}'
MAVEN_VERSION = '#{version}'
end
EOF
end


Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = 'jruby-jars' s.name = 'jruby-jars'
s.version = version.sub( /.SNAPSHOT/, '.SNAPSHOT' ) s.version = version.sub( /-SNAPSHOT$/, '' )
s.authors = ['Charles Oliver Nutter'] s.authors = ['Charles Oliver Nutter']
s.email = "headius@headius.com" s.email = "headius@headius.com"
s.summary = "The core JRuby code and the JRuby stdlib as jar files." s.summary = "The core JRuby code and the JRuby stdlib as jar files."
s.homepage = 'http://github.com/jruby/jruby/tree/master/gem/jruby-jars' s.homepage = 'http://github.com/jruby/jruby/tree/master/gem/jruby-jars'
s.description = File.read('README.txt', encoding: "UTF-8").split(/\n{2,}/)[3] s.description = File.read('README.txt', encoding: "UTF-8").split(/\n{2,}/)[3]
s.rubyforge_project = 'jruby/jruby' s.rubyforge_project = 'jruby/jruby'
s.files = FileList['[A-Z]*', 'lib/**/*.rb', "lib/**/jruby-*-#{version}*.jar", 'test/**/*'].to_a s.files = Dir['[A-Z]*'] + Dir['lib/**/*.rb'] + Dir[ "lib/**/jruby-*-#{version}*.jar" ] + Dir[ 'test/**/*']
end end


# vim: syntax=Ruby # vim: syntax=Ruby
4 changes: 2 additions & 2 deletions maven/jruby-jars/lib/jruby-jars.rb
Expand Up @@ -4,10 +4,10 @@ module JRubyJars
PATH = File.expand_path(File.dirname(__FILE__)) PATH = File.expand_path(File.dirname(__FILE__))


def self.core_jar_path def self.core_jar_path
Dir[ PATH + "/jruby-core-complete-#{JRubyJars::VERSION}.jar" ].first Dir[ PATH + "/jruby-core-complete-#{JRubyJars::MAVEN_VERSION}.jar" ].first
end end


def self.stdlib_jar_path def self.stdlib_jar_path
Dir[ PATH + "/jruby-stdlib-#{JRubyJars::VERSION}.jar" ].first Dir[ PATH + "/jruby-stdlib-#{JRubyJars::MAVEN_VERSION}.jar" ].first
end end
end end
3 changes: 2 additions & 1 deletion maven/jruby-jars/lib/jruby-jars/version.rb
@@ -1,3 +1,4 @@
module JRubyJars module JRubyJars
VERSION = Dir[ File.expand_path(File.dirname(File.dirname(__FILE__))) + '/jruby-core-complete-*jar' ].first.gsub( /^.*jruby-core-complete-|.jar$/, '' ) VERSION = '9000.dev'
MAVEN_VERSION = '9000.dev-SNAPSHOT'
end end
9 changes: 2 additions & 7 deletions maven/jruby-jars/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-artifacts</artifactId> <artifactId>jruby-artifacts</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
</parent> </parent>
<groupId>rubygems</groupId> <groupId>rubygems</groupId>
<artifactId>jruby-jars</artifactId> <artifactId>jruby-jars</artifactId>
Expand All @@ -25,12 +25,6 @@ freezing to) a specific jruby-complete jar version.</description>
<tesla.version>0.0.9</tesla.version> <tesla.version>0.0.9</tesla.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency>
<groupId>rubygems</groupId>
<artifactId>rake</artifactId>
<version>[0,)</version>
<type>gem</type>
</dependency>
<dependency> <dependency>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-stdlib</artifactId> <artifactId>jruby-stdlib</artifactId>
Expand All @@ -52,6 +46,7 @@ freezing to) a specific jruby-complete jar version.</description>
</extension> </extension>
</extensions> </extensions>
<directory>${basedir}/pkg</directory> <directory>${basedir}/pkg</directory>
<finalName>jruby-jars-9000.dev</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>de.saumya.mojo</groupId> <groupId>de.saumya.mojo</groupId>
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby-noasm/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-artifacts</artifactId> <artifactId>jruby-artifacts</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
</parent> </parent>
<artifactId>jruby-noasm</artifactId> <artifactId>jruby-noasm</artifactId>
<name>JRuby Main Maven Artifact With ASM Relocated</name> <name>JRuby Main Maven Artifact With ASM Relocated</name>
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby-stdlib/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-artifacts</artifactId> <artifactId>jruby-artifacts</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
</parent> </parent>
<artifactId>jruby-stdlib</artifactId> <artifactId>jruby-stdlib</artifactId>
<name>JRuby Stdlib</name> <name>JRuby Stdlib</name>
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-artifacts</artifactId> <artifactId>jruby-artifacts</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
</parent> </parent>
<artifactId>jruby</artifactId> <artifactId>jruby</artifactId>
<name>JRuby Main Maven Artifact</name> <name>JRuby Main Maven Artifact</name>
Expand Down
2 changes: 1 addition & 1 deletion maven/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-parent</artifactId> <artifactId>jruby-parent</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
</parent> </parent>
<artifactId>jruby-artifacts</artifactId> <artifactId>jruby-artifacts</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -9,7 +9,7 @@
</parent> </parent>
<groupId>org.jruby</groupId> <groupId>org.jruby</groupId>
<artifactId>jruby-parent</artifactId> <artifactId>jruby-parent</artifactId>
<version>9000.dev</version> <version>9000.dev-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>JRuby</name> <name>JRuby</name>
<description>JRuby is the effort to recreate the Ruby (http://www.ruby-lang.org) interpreter in Java.</description> <description>JRuby is the effort to recreate the Ruby (http://www.ruby-lang.org) interpreter in Java.</description>
Expand Down

0 comments on commit 58635c2

Please sign in to comment.