require 'fileutils' project 'joonsrenderer' do model_version '4.0.0' id 'joons:joonsrenderer:1.1-SNAPSHOT' packaging 'jar' description 'joonsrenderer for propane and JRubyArt' organization 'ruby-processing', 'https://ruby-processing.github.io' { 'fpsunflower' => 'Christopher Kulla', 'geneome' => 'Not Known', 'joonhyublee' => 'Joon Hyub Lee', 'monkstone' => 'Martin Prout' }.each do |key, value| developer key do name value roles 'developer' end end license 'GPL 3', 'http://www.gnu.org/licenses/gpl-3.0-standalone.html' issue_management 'https://github.com/monkstone/joonsrenderer/issues', 'Github' properties( 'source.directory' => 'src', 'joonsrenderer.basedir' => '${project.basedir}', 'polyglot.dump.pom' => 'pom.xml', 'maven.compiler.source' => '1.8', 'project.build.sourceEncoding' => 'utf-8', 'maven.compiler.target' => '1.8', 'janino.version' => '3.0.6', 'jogl.version' => '2.3.2', 'processing.version' => '3.2.3' ) jar 'org.processing:core:${processing.version}' jar 'org.jogamp.jogl:jogl-all:${jogl.version}' jar 'org.jogamp.gluegen:gluegen-rt:${jogl.version}' jar('org.codehaus.janino:commons-compiler:${janino.version}') jar('org.codehaus.janino:janino:${janino.version}') overrides do plugin :resources, '2.6' plugin :dependency, '2.10' do execute_goals( id: 'default-cli', artifactItems:[ { groupId: 'org.codehaus.janino', artifactId: 'janino', version: '${janino.version}', type: 'jar', outputDirectory: '${joonsrenderer.basedir}/lib' }, { groupId: 'org.codehaus.janino', artifactId: 'commons-compiler', version: '${janino.version}', type: 'jar', outputDirectory: '${joonsrenderer.basedir}/lib' } ] ) end plugin( :compiler, '3.6.0', source: '${maven.compiler.source}', target: '${maven.compiler.target}' ) plugin( :javadoc, '2.10.4', detect_offline_links: 'false', ) plugin( :jar, '3.0.2', 'archive' => { 'manifestFile' => 'MANIFEST.MF' } ) end build do default_goal 'package' source_directory 'src' final_name 'joonsrenderer' end end