Skip to content

Commit 70daaf4

Browse files
authored
Merge branch 'integrated-core' into master
2 parents 9a0305c + 65baa00 commit 70daaf4

File tree

119 files changed

+95932
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+95932
-141
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rake javadoc
2323
## Installation
2424
```bash
2525
jgem install propane # from rubygems
26-
jgem install propane-2.6.6-java.gem # local install requires a custom processing-core
26+
jgem install propane-2.8.0.pre-java.gem # local install requires a custom processing-core
2727
```
2828

2929
## Usage

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def create_manifest
77
File.open('MANIFEST.MF', 'w') do |f|
88
f.puts(title)
99
f.puts(version)
10-
f.puts('Class-Path: processing-core.jar gluegen-rt-2.3.2.jar jog-all-2.3.2.jar')
10+
f.puts('Class-Path: gluegen-rt-2.3.2.jar jog-all-2.3.2.jar')
1111
end
1212
end
1313

@@ -21,7 +21,7 @@ end
2121
desc 'Install'
2222
task :install do
2323
sh 'mvn dependency:copy'
24-
sh 'mv target/propane.jar lib'
24+
sh 'mv target/propane-2.8.0.jar lib'
2525
end
2626

2727
desc 'Gem'

lib/propane/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# frozen_string_literal: true
22
module Propane
3-
VERSION = '2.7.1'.freeze
3+
VERSION = '2.8.0.pre'.freeze
44
end

library/control_panel/control_panel.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ def self.app_value(name, val)
99
end
1010

1111
# class used to create slider elements for control_panel
12-
class Slider < javax.swing.JSlider
1312
def initialize(control_panel, name, range, initial, proc = nil)
1413
min = range.begin * 100
1514
mx = range.end

pom.rb

Lines changed: 90 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,109 @@
1-
require 'fileutils'
2-
project 'rp5extras', 'https://github.com/monkstone/propane' do
1+
project 'propane', 'http://maven.apache.org' do
2+
33
model_version '4.0.0'
4-
id 'propane:propane', '2.7.1'
4+
id 'ruby-processing:propane:2.8.0'
55
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+
79
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|
915
developer key do
1016
name value
1117
roles 'developer'
1218
end
1319
end
1420
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'
1622

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'
2224

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',
2926
'jruby.api' => 'http://jruby.org/apidocs/',
27+
'source.directory' => 'src',
28+
'maven.compiler.target' => '1.8',
3029
'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}'
4039

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+
}
8584
]
8685
)
8786
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-
)
10087
end
10188

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

Comments
 (0)