|
1 | | -require 'fileutils' |
2 | | -project 'rp5extras', 'https://github.com/monkstone/propane' do |
| 1 | +project 'propane', 'http://maven.apache.org' do |
| 2 | + |
3 | 3 | model_version '4.0.0' |
4 | | - id 'propane:propane', '2.7.1' |
| 4 | + id 'ruby-processing:propane:2.8.0' |
5 | 5 | packaging 'jar' |
6 | | - description 'rp5extras for propane' |
| 6 | + |
| 7 | + description 'Processing core is the engine that drives processing, this is a hacked version for propane (a ruby version).' |
| 8 | + |
7 | 9 | organization 'ruby-processing', 'https://ruby-processing.github.io' |
8 | | - { 'monkstone' => 'Martin Prout' }.each do |key, value| |
| 10 | + |
| 11 | + { |
| 12 | + 'monkstone' => 'Martin Prout', 'benfry' => 'Ben Fry', |
| 13 | + 'REAS' => 'Casey Reas', 'codeanticode' => 'Andres Colubri' |
| 14 | + }.each do |key, value| |
9 | 15 | developer key do |
10 | 16 | name value |
11 | 17 | roles 'developer' |
12 | 18 | end |
13 | 19 | end |
14 | 20 | license 'GPL 3', 'http://www.gnu.org/licenses/gpl-3.0-standalone.html' |
15 | | - issue_management 'https://github.com/ruby-processing/propane/issues', 'Github' |
| 21 | + license 'LGPL 2', 'https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html' |
16 | 22 |
|
17 | | - source_control( |
18 | | - url: 'https://github.com/ruby-processing/propane', |
19 | | - connection: 'scm:git:git://github.com/ruby-processing/propane.git', |
20 | | - developer_connection: 'scm:git:git@github.com/ruby-processing/propane.git' |
21 | | - ) |
| 23 | + issue_management 'https://github.com/ruby-processing/propane/issues', 'Github' |
22 | 24 |
|
23 | | - properties('source.directory' => 'src', |
24 | | - 'propane.basedir' => '${project.basedir}', |
25 | | - 'polyglot.dump.pom' => 'pom.xml', |
26 | | - 'maven.compiler.source' => '1.8', |
27 | | - 'project.build.sourceEncoding' => 'utf-8', |
28 | | - 'maven.compiler.target' => '1.8', |
| 25 | + properties( 'jogl.version' => '2.3.2', |
29 | 26 | 'jruby.api' => 'http://jruby.org/apidocs/', |
| 27 | + 'source.directory' => 'src', |
| 28 | + 'maven.compiler.target' => '1.8', |
30 | 29 | 'processing.api' => 'http://processing.github.io/processing-javadocs/core/', |
31 | | - 'jruby.api' => 'http://jruby.org/apidocs/', |
32 | | - 'jogl.version' => '2.3.2' |
33 | | - ) |
34 | | - |
35 | | - pom 'org.jruby:jruby:9.1.16.0' |
36 | | - jar 'org.processing:core:3.3.7' |
37 | | - jar 'org.processing:video:3.0.2' |
38 | | - jar('org.jogamp.jogl:jogl-all:${jogl.version}') |
39 | | - jar('org.jogamp.gluegen:gluegen-rt-main:${jogl.version}') |
| 30 | + 'propane.basedir' => '${project.basedir}', |
| 31 | + 'project.build.sourceEncoding' => 'utf-8', |
| 32 | + 'polyglot.dump.pom' => 'pom.xml', |
| 33 | + 'maven.compiler.source' => '1.8' ) |
| 34 | + pom 'org.jruby:jruby:9.1.16.0' |
| 35 | + jar 'org.processing:video:3.0.2' |
| 36 | + jar 'com.apple.eawt:apple:1.0' |
| 37 | + jar 'org.jogamp.jogl:jogl-all:${jogl.version}' |
| 38 | + jar 'org.jogamp.gluegen:gluegen-rt-main:${jogl.version}' |
40 | 39 |
|
41 | | - overrides do |
42 | | - plugin :resources, '2.6' |
43 | | - plugin :dependency, '2.10' do |
44 | | - execute_goals( id: 'default-cli', |
45 | | - artifactItems: [ { groupId: 'org.jogamp.jogl', |
46 | | - artifactId: 'jogl-all', |
47 | | - version: '${jogl.version}', |
48 | | - type: 'jar', |
49 | | - outputDirectory: '${propane.basedir}/lib' |
50 | | - }, |
51 | | - { groupId: 'org.jogamp.gluegen', |
52 | | - artifactId: 'gluegen-rt', |
53 | | - version: '${jogl.version}', |
54 | | - type: 'jar', |
55 | | - outputDirectory: '${propane.basedir}/lib' |
56 | | - }, |
57 | | - { groupId: 'org.jogamp.jogl', |
58 | | - artifactId: 'jogl-all', |
59 | | - version: '${jogl.version}', |
60 | | - classifier: 'natives-linux-amd64', |
61 | | - type: 'jar', |
62 | | - outputDirectory: '${propane.basedir}/lib' |
63 | | - }, |
64 | | - { groupId: 'org.jogamp.gluegen', |
65 | | - artifactId: 'gluegen-rt', |
66 | | - version: '${jogl.version}', |
67 | | - type: 'jar', |
68 | | - classifier: 'natives-linux-amd64', |
69 | | - outputDirectory: '${propane.basedir}/lib' |
70 | | - }, |
71 | | - { groupId: 'org.jogamp.jogl', |
72 | | - artifactId: 'jogl-all', |
73 | | - version: '${jogl.version}', |
74 | | - classifier: 'natives-macosx-universal', |
75 | | - type: 'jar', |
76 | | - outputDirectory: '${propane.basedir}/lib' |
77 | | - }, |
78 | | - { groupId: 'org.jogamp.gluegen', |
79 | | - artifactId: 'gluegen-rt', |
80 | | - version: '${jogl.version}', |
81 | | - type: 'jar', |
82 | | - classifier: 'natives-macosx-universal', |
83 | | - outputDirectory: '${propane.basedir}/lib' |
84 | | - } |
| 40 | + overrides do |
| 41 | + plugin :resources, '2.6' |
| 42 | + plugin :dependency, '2.10' do |
| 43 | + execute_goals( id: 'default-cli', |
| 44 | + artifactItems: [ { groupId: 'org.jogamp.jogl', |
| 45 | + artifactId: 'jogl-all', |
| 46 | + version: '${jogl.version}', |
| 47 | + type: 'jar', |
| 48 | + outputDirectory: '${propane.basedir}/lib' |
| 49 | + }, |
| 50 | + { groupId: 'org.jogamp.gluegen', |
| 51 | + artifactId: 'gluegen-rt', |
| 52 | + version: '${jogl.version}', |
| 53 | + type: 'jar', |
| 54 | + outputDirectory: '${propane.basedir}/lib' |
| 55 | + }, |
| 56 | + { groupId: 'org.jogamp.jogl', |
| 57 | + artifactId: 'jogl-all', |
| 58 | + version: '${jogl.version}', |
| 59 | + classifier: 'natives-linux-amd64', |
| 60 | + type: 'jar', |
| 61 | + outputDirectory: '${propane.basedir}/lib' |
| 62 | + }, |
| 63 | + { groupId: 'org.jogamp.gluegen', |
| 64 | + artifactId: 'gluegen-rt', |
| 65 | + version: '${jogl.version}', |
| 66 | + type: 'jar', |
| 67 | + classifier: 'natives-linux-amd64', |
| 68 | + outputDirectory: '${propane.basedir}/lib' |
| 69 | + }, |
| 70 | + { groupId: 'org.jogamp.jogl', |
| 71 | + artifactId: 'jogl-all', |
| 72 | + version: '${jogl.version}', |
| 73 | + classifier: 'natives-macosx-universal', |
| 74 | + type: 'jar', |
| 75 | + outputDirectory: '${propane.basedir}/lib' |
| 76 | + }, |
| 77 | + { groupId: 'org.jogamp.gluegen', |
| 78 | + artifactId: 'gluegen-rt', |
| 79 | + version: '${jogl.version}', |
| 80 | + type: 'jar', |
| 81 | + classifier: 'natives-macosx-universal', |
| 82 | + outputDirectory: '${propane.basedir}/lib' |
| 83 | + } |
85 | 84 | ] |
86 | 85 | ) |
87 | 86 | end |
88 | | - |
89 | | - plugin( :compiler, '3.7.0', |
90 | | - source: '${maven.compiler.source}', |
91 | | - target: '${maven.compiler.target}' |
92 | | - ) |
93 | | - plugin( :javadoc, '2.10.4', |
94 | | - detect_offline_links: 'false', |
95 | | - links: ['${jruby.api}', '${processing.api}'] |
96 | | - ) |
97 | | - plugin( :jar, '3.0.2', |
98 | | - archive: { manifestFile: 'MANIFEST.MF' } |
99 | | - ) |
100 | 87 | end |
101 | 88 |
|
102 | | - build do |
103 | | - default_goal 'package' |
104 | | - source_directory 'src' |
105 | | - final_name 'propane' |
106 | | - end |
107 | | -end |
| 89 | + plugin( :resources, '2.7', |
| 90 | + 'encoding' => 'UTF-8' ) |
| 91 | + plugin( :compiler, '3.7.0', |
| 92 | + 'source' => '1.8', |
| 93 | + 'target' => '1.8' ) |
| 94 | + plugin( :pmd, '3.3', |
| 95 | + 'sourceEncoding' => 'utf-8', |
| 96 | + 'minimumTokens' => '100', |
| 97 | + 'targetJdk' => '${compileSource}' ) |
| 98 | + build do |
| 99 | + resource do |
| 100 | + directory '${source.directory}/main/java' |
| 101 | + includes ['**/**/*.glsl', '**/*.jnilib'] |
| 102 | + excludes '**/**/*.java' |
| 103 | + end |
| 104 | + resource do |
| 105 | + directory '${source.directory}/main/resources' |
| 106 | + includes ['**/*.png', '*.txt'] |
| 107 | + end |
| 108 | + end |
| 109 | + end |
0 commit comments