Skip to content

Commit 3f85912

Browse files
committed
update maven
1 parent a77be2a commit 3f85912

File tree

7 files changed

+35
-28
lines changed

7 files changed

+35
-28
lines changed

.mvn/wrapper/MavenWrapperDownloader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
public class MavenWrapperDownloader {
2222

23-
private static final String WRAPPER_VERSION = "0.5.5";
23+
private static final String WRAPPER_VERSION = "0.5.6";
2424
/**
2525
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
2626
*/

.mvn/wrapper/maven-wrapper.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip
2-
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2+
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
v2.1.1 Bump to JRuby-9.2.13.0, include examples using ruby `clamp` in place of processing `constrain`.
1+
v2.1.1 Bump to JRuby-9.2.13.0, include examples using ruby `clamp` in place of processing `constrain`, update to video-2.0 release, add run instruction to help
22

33
v2.1.0 Refactor how we configure geany so we can use ENV['HOME'] rather hard code config file. Bump to JRuby-9.2.12.0, include Sam Pottingers July 2020 staging changes.
44

lib/picrate/runner.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ def install(library = nil)
8383
library ||= 'new'
8484
choice = library.downcase
8585
case choice
86-
when /sound/
87-
warn 'The sound library is broken, try minim instead'
88-
when /samples|video/
86+
when /samples|sound|video/
8987
system "cd #{PICRATE_ROOT}/vendors && rake install_#{choice}"
9088
when /new/
9189
# install samples and config geany

mvnw

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ else
212212
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
213213
fi
214214
if [ -n "$MVNW_REPOURL" ]; then
215-
jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
215+
jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
216216
else
217-
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
217+
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
218218
fi
219219
while IFS="=" read key value; do
220220
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;

mvnw.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120120
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121121
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122122

123-
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
123+
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
124124

125125
FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126126
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
@@ -134,7 +134,7 @@ if exist %WRAPPER_JAR% (
134134
)
135135
) else (
136136
if not "%MVNW_REPOURL%" == "" (
137-
SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
137+
SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
138138
)
139139
if "%MVNW_VERBOSE%" == "true" (
140140
echo Couldn't find %WRAPPER_JAR%, downloading it ...

vendors/Rakefile

+26-17
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ require 'rake/clean'
55
require_relative './geany'
66
WARNING = 'WARNING: wget download failed you could do a manual download'
77
SOUND = 'sound.zip'
8-
SOUND_VERSION = 'v1.3.2'
9-
VIDEO = 'video-2.0-beta4.zip'
10-
VIDEO_VERSION = 'r6-v2.0-beta4'
8+
PROCESSING_GITHUB = 'https://github.com/processing'
9+
VIDEO = 'video.zip'
10+
DOWNLOAD = 'releases/download/latest'
1111
EXAMPLES = '0.5.5'
1212
HOME_DIR = ENV['HOME']
1313
LIBRARY = File.join(HOME_DIR, '.picrate', 'libraries')
@@ -47,16 +47,24 @@ task download_samples: ["#{EXAMPLES}.tar.gz"]
4747

4848
desc 'download sound library'
4949
task :download_sound do
50-
wget_base = 'wget -P https://github.com/processing/processing-sound'
51-
wget_string = [wget_base, 'releases/download/latest', SOUND].join('/')
52-
system wget_string
50+
wget_base = ['wget', PROCESSING_GITHUB].join(' ')
51+
wget_string = [wget_base, 'processing-sound', DOWNLOAD, SOUND].join('/')
52+
begin
53+
sh wget_string
54+
rescue StandardError
55+
warn(WARNING)
56+
end
5357
end
5458

5559
desc 'download video library'
5660
task :download_video do
57-
wget_base = 'wget -P /tmp https://github.com/processing/processing-video'
58-
wget_string = [wget_base, 'releases/download', VIDEO_VERSION, VIDEO].join('/')
59-
system wget_string
61+
wget_base = ['wget', PROCESSING_GITHUB].join(' ')
62+
wget_string = [wget_base, 'processing-video', DOWNLOAD, VIDEO].join('/')
63+
begin
64+
sh wget_string
65+
rescue StandardError
66+
warn(WARNING)
67+
end
6068
end
6169

6270
desc 'initialize ~/.picrate directories'
@@ -89,15 +97,16 @@ end
8997

9098
desc 'copy sound library'
9199
task copy_sound: SOUND do
92-
system "unzip -d /tmp /tmp/#{SOUND}"
93-
FileUtils.rm_r "#{LIBRARY}/sound" if File.exist? "#{LIBRARY}/sound"
94-
FileUtils.cp_r '/tmp/sound', LIBRARY
100+
sh "unzip #{SOUND}"
101+
sh "rm -r #{LIBRARY}/sound" if File.exist? "#{LIBRARY}/sound"
102+
sh "cp -r sound #{LIBRARY}"
103+
sh 'rm -r sound'
95104
end
96105

97106
desc 'copy video library'
98-
task copy_video: "/tmp/#{VIDEO}" do
99-
system "unzip -d /tmp /tmp/#{VIDEO}"
100-
FileUtils.rm_r "#{LIBRARY}/video" if File.exist? "#{LIBRARY}/video"
101-
FileUtils.mkdir_p "#{LIBRARY}/video/library"
102-
FileUtils.mv Dir.glob('/tmp/video/library/*.jar'), "#{LIBRARY}/video/library"
107+
task copy_video: VIDEO do
108+
sh "unzip #{VIDEO}"
109+
sh "rm -r #{LIBRARY}/video" if File.exist? "#{LIBRARY}/video"
110+
sh "cp -r video #{LIBRARY}"
111+
sh 'rm -r video'
103112
end

0 commit comments

Comments
 (0)