|
1 |
| -# frozen_string_literal: true |
2 |
| - |
3 | 1 | project 'jruby_art', 'https://github.com/ruby-processing/JRubyArt' do
|
| 2 | + |
4 | 3 | model_version '4.0.0'
|
5 | 4 | id 'ruby-processing:jruby_art:2.5.0'
|
6 | 5 | packaging 'jar'
|
7 | 6 |
|
8 | 7 | description 'Jar for JRubyArt'
|
9 | 8 |
|
10 | 9 | {
|
11 |
| - 'monkstone' => 'Martin Prout', 'benfry' => 'Ben Fry', |
12 |
| - 'REAS' => 'Casey Reas', 'codeanticode' => 'Andres Colubri' |
| 10 | + 'monkstone' => 'Martin Prout', 'sampottinger' => 'Sam Pottinger', |
| 11 | + 'benfry' => 'Ben Fry', 'REAS' => 'Casey Reas', 'codeanticode' => 'Andres Colubri' |
13 | 12 | }.each do |key, value|
|
14 | 13 | developer key do
|
15 | 14 | name value
|
|
19 | 18 |
|
20 | 19 | issue_management 'https://github.com/ruby-processing/JRubyArt/issues', 'Github'
|
21 | 20 |
|
22 |
| - source_control(url: 'https://github.com/ruby-processing/JRubyArt', |
23 |
| - connection: 'scm:git:git://github.com/ruby-processing/JRubyArt.git', |
24 |
| - developer_connection: 'scm:git:git@github.com/ruby-processing/JRubyArt.git') |
| 21 | + source_control( :url => 'https://github.com/ruby-processing/JRubyArt', |
| 22 | + :connection => 'scm:git:git://github.com/ruby-processing/JRubyArt.git', |
| 23 | + :developer_connection => 'scm:git:git@github.com/ruby-processing/JRubyArt.git' ) |
25 | 24 |
|
26 |
| - properties('processing.api' => 'http://processing.github.io/processing-javadocs/core/', |
27 |
| - 'source.directory' => 'src', |
28 |
| - 'polyglot.dump.pom' => 'pom.xml', |
29 |
| - 'project.build.sourceEncoding' => 'UTF-8', |
30 |
| - 'jruby_art.basedir' => '${project.basedir}', |
31 |
| - 'jogl.version' => '2.3.2', |
32 |
| - 'batik.version' => '1.14', |
33 |
| - 'itextpdf.version' => '5.5.13.2', |
34 |
| - 'jruby.api' => 'http://jruby.org/apidocs/') |
| 25 | + properties( 'jruby_art.basedir' => '${project.basedir}', |
| 26 | + 'processing.api' => 'http://processing.github.io/processing-javadocs/core/', |
| 27 | + 'source.directory' => 'src', |
| 28 | + 'polyglot.dump.pom' => 'pom.xml', |
| 29 | + 'project.build.sourceEncoding' => 'UTF-8', |
| 30 | + 'jogl.version' => '2.3.2', |
| 31 | + 'itextpdf.version' => '5.5.13.2', |
| 32 | + 'batik.version' => '1.14', |
| 33 | + 'jruby.api' => 'http://jruby.org/apidocs/' ) |
35 | 34 |
|
36 |
| - pom 'org.jruby:jruby:9.2.17.0' |
37 |
| - jar 'org.jogamp.jogl:jogl-all:${jogl.version}' |
38 |
| - jar 'org.jogamp.gluegen:gluegen-rt-main:${jogl.version}' |
39 |
| - jar 'org.processing:video:3.0.2' |
40 |
| - jar 'org.apache.xmlgraphics:batik-all:${batik.version}' |
41 |
| - jar 'com.itextpdf:itextpdf:${itextpdf.version}' |
| 35 | + pom 'org.jruby:jruby:9.2.17.0' |
| 36 | + jar 'org.jogamp.jogl:jogl-all:${jogl.version}' |
| 37 | + jar 'org.jogamp.gluegen:gluegen-rt-main:${jogl.version}' |
| 38 | + jar 'org.processing:video:3.0.2' |
| 39 | + jar 'org.apache.xmlgraphics:batik-all:${batik.version}' |
| 40 | + jar 'com.itextpdf:itextpdf:${itextpdf.version}' |
42 | 41 |
|
43 |
| - overrides do |
44 |
| - plugin :resources, '3.1.0' |
45 |
| - plugin :dependency, '3.1.2' do |
46 |
| - execute_goals( id: 'default-cli', |
47 |
| - artifactItems:[ |
48 |
| - { groupId: 'com.itextpdf', |
49 |
| - artifactId: 'itextpdf', |
50 |
| - version: '${itextpdf.version}', |
51 |
| - type: 'jar', |
52 |
| - outputDirectory: '${jruby_art.basedir}/library/pdf' |
53 |
| - }, |
54 |
| - { groupId: 'org.apache.xmlgraphics', |
55 |
| - artifactId: 'batik-all', |
56 |
| - version: '${batik.version}', |
57 |
| - type: 'jar', |
58 |
| - outputDirectory: '${jruby_art.basedir}/library/svg' |
59 |
| - } |
60 |
| - ] |
61 |
| - ) |
62 |
| - end |
63 |
| - plugin(:compiler, '3.8.1', |
64 |
| - 'release' => '11') |
65 |
| - plugin(:javadoc, '2.10.4', |
66 |
| - 'detectOfflineLinks' => 'false', |
67 |
| - 'links' => ['${processing.api}', |
68 |
| - '${jruby.api}']) |
69 |
| - plugin(:jar, '3.2.0', |
70 |
| - 'archive' => { |
71 |
| - 'manifestEntries' => { |
72 |
| - 'Automatic-Module-Name' => 'processing.core' |
73 |
| - } |
74 |
| - }) |
75 |
| - plugin('org.apache.maven.plugins:maven-pmd-plugin:3.14.0') |
76 |
| - plugin :jdeps, '3.1.2' do |
77 |
| - execute_goals 'jdkinternals', 'test-jdkinternals' |
78 |
| - end |
79 |
| - end |
| 42 | + overrides do |
| 43 | + plugin :resources, '3.1.0' |
| 44 | + plugin :dependency, '3.1.2' do |
| 45 | + execute_goals( :id => 'default-cli', |
| 46 | + 'artifactItems' => [ { 'groupId' => 'com.itextpdf', |
| 47 | + 'artifactId' => 'itextpdf', |
| 48 | + 'version' => '${itextpdf.version}', |
| 49 | + 'type' => 'jar', |
| 50 | + 'outputDirectory' => '${jruby_art.basedir}/library/pdf' }, |
| 51 | + { 'groupId' => 'org.apache.xmlgraphics', |
| 52 | + 'artifactId' => 'batik-all', |
| 53 | + 'version' => '${batik.version}', |
| 54 | + 'type' => 'jar', |
| 55 | + 'outputDirectory' => '${jruby_art.basedir}/library/svg' } ] ) |
| 56 | + end |
80 | 57 |
|
81 |
| - build do |
82 |
| - resource do |
83 |
| - directory '${source.directory}/main/java' |
84 |
| - includes '**/**/*.glsl', '**/*.jnilib' |
85 |
| - excludes '**/**/*.java' |
86 |
| - end |
| 58 | + plugin( :compiler, '3.8.1', |
| 59 | + 'release' => '11' ) |
| 60 | + plugin( :javadoc, '2.10.4', |
| 61 | + 'detectOfflineLinks' => 'false', |
| 62 | + 'links' => [ '${processing.api}', |
| 63 | + '${jruby.api}' ] ) |
| 64 | + plugin( :jar, '3.2.0', |
| 65 | + 'archive' => { |
| 66 | + 'manifestEntries' => { |
| 67 | + 'Automatic-Module-Name' => 'processing.core' |
| 68 | + } |
| 69 | + } ) |
| 70 | + plugin :pmd, '3.14.0' |
| 71 | + plugin :jdeps, '3.1.2' do |
| 72 | + execute_goals 'jdkinternals', 'test-jdkinternals' |
| 73 | + end |
| 74 | + end |
87 | 75 |
|
88 |
| - resource do |
89 |
| - directory '${source.directory}/main/resources' |
90 |
| - includes '**/*.png', '*.txt' |
91 |
| - excludes |
92 |
| - end |
93 |
| - end |
94 |
| - reporting do |
95 |
| - plugin('org.apache.maven.plugins:mavan-jxr-plugin:2.3') |
96 |
| - end |
| 76 | + build do |
| 77 | + resource do |
| 78 | + directory '${source.directory}/main/java' |
| 79 | + includes '**/**/*.glsl', '**/*.jnilib' |
| 80 | + excludes '**/**/*.java' |
| 81 | + end |
| 82 | + resource do |
| 83 | + directory '${source.directory}/main/resources' |
| 84 | + includes '**/*.png', '*.txt' |
97 | 85 | end
|
| 86 | + end |
| 87 | + |
| 88 | + reporting do |
| 89 | + plugin 'org.apache.maven.plugins:mavan-jxr-plugin:2.3' |
| 90 | + end |
| 91 | + |
| 92 | +end |
0 commit comments