Skip to content

Commit

Permalink
Showing 4 changed files with 30 additions and 3 deletions.
8 changes: 8 additions & 0 deletions maven/jruby-complete/pom.rb
Original file line number Diff line number Diff line change
@@ -82,6 +82,14 @@
:failOnError => false )
end

phase :package do
plugin( 'net.ju-n.maven.plugins:checksum-maven-plugin', '1.2' ) do
execute_goals(
:artifacts,
algorithms: ['MD5', 'SHA-1', 'SHA-256', 'SHA-512' ] )
end
end

['sonatype-oss-release', 'snapshots'].each do |name|
profile name do

9 changes: 6 additions & 3 deletions maven/jruby-dist/pom.rb
Original file line number Diff line number Diff line change
@@ -62,6 +62,12 @@
:attach => false,
:descriptors => [ 'src/main/assembly/bin200.xml' ] )
end

plugin( 'net.ju-n.maven.plugins:checksum-maven-plugin', '1.2' ) do
execute_goals(
:artifacts,
algorithms: ['MD5', 'SHA-1', 'SHA-256', 'SHA-512' ] )
end
end

plugin( :invoker )
@@ -102,9 +108,6 @@
:classifier => 'src' } ] )

end
plugin( 'net.ju-n.maven.plugins:checksum-maven-plugin', '1.2' ) do
execute_goals( :artifacts, :algorithms => ['SHA256' ] )
end
end
end
end
8 changes: 8 additions & 0 deletions maven/jruby-jars/Mavenfile
Original file line number Diff line number Diff line change
@@ -63,4 +63,12 @@ end

plugin :invoker, :properties => { 'ruby.version' => ruby_version, 'gem.home' => '${project.build.directory}/rubygems', 'gem.path' => '${project.build.directory}/rubygems' }

phase :package do
plugin( 'net.ju-n.maven.plugins:checksum-maven-plugin', '1.2' ) do
execute_goals(
:artifacts,
algorithms: ['MD5', 'SHA-1', 'SHA-256', 'SHA-512' ] )
end
end

# vim: syntax=Ruby
8 changes: 8 additions & 0 deletions maven/jruby/pom.rb
Original file line number Diff line number Diff line change
@@ -30,6 +30,14 @@
end
end

phase :package do
plugin( 'net.ju-n.maven.plugins:checksum-maven-plugin', '1.2' ) do
execute_goals(
:artifacts,
algorithms: ['MD5', 'SHA-1', 'SHA-256', 'SHA-512' ] )
end
end

profile :apps do
activation do
property :name => 'invoker.test'

4 comments on commit 3b17b3b

@mkristian
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@headius maven/pom.rb has a plugin-management section. put the plugin in there with the extra attribute phase: :package then each of this poms/Mavenfile just need a single line:

plugin( 'net.ju-n.maven.plugins:checksum-maven-plugin')

with this there is only one place for the version and the configuration.

@headius
Copy link
Member Author

@headius headius commented on 3b17b3b Nov 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to have this code there and it didn't like that there weren't actually any artifacts. Thanks!

@headius
Copy link
Member Author

@headius headius commented on 3b17b3b Nov 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkristian
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, if it does work the other way around than that is the way to go.

Please sign in to comment.