Skip to content

Commit 8a85ca8

Browse files
committed
bump to compile with jdk12
1 parent 511f010 commit 8a85ca8

File tree

8 files changed

+31
-26
lines changed

8 files changed

+31
-26
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: ruby
22
sudo: false
33

4-
rvm:
5-
- jruby-9.1.6.0
4+
rvm:
5+
- jruby-9.2.8.0
66
jdk:
7-
- oraclejdk8
7+
- openjdk11
88
os:
99
- linux
10-

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
**v2.0.0** Bump to jdk12 and fix code
2+
13
**v1.0.1** Bump processing to 3.4, support toxiclibs Voronoi etc
24

35
**v1.0.0** About time we got to 1.0.0 bump processing to 3.3.4

examples/boolean_shapes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
def setup
1515
sketch_title 'Boolean Shapes'
16-
@gfx = Gfx::ToxiclibsSupport.new(self)
16+
@gfx = Gfx::ToxiclibsSupport.new(self, self.g)
1717
@bool = KEY.zip(TYPE).to_h
1818
control_panel do |c|
1919
c.title = 'Union or XOR'

lib/toxiclibs/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22
# wrapper to give version a meaningful name
33
module Toxiclibs
4-
VERSION = '1.0.1'.freeze
4+
VERSION = '2.0.0'.freeze
55
end

pom.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project 'toxiclibs' do
22

33
model_version '4.0.0'
4-
id 'ruby-processing:toxiclibs:1.0.1'
4+
id 'ruby-processing:toxiclibs:2.0.0'
55
packaging 'jar'
66

77
description 'toxiclibs-library for JRubyArt'
@@ -22,24 +22,24 @@
2222
:connection => 'scm:git:git://github.com/ruby-processing/toxiclibs.git',
2323
:developer_connection => 'scm:git:[email protected]:ruby-processing/toxiclibs.git' )
2424

25-
properties( 'maven.compiler.source' => '1.8',
25+
properties( 'target.release' => '11',
2626
'project.build.sourceEncoding' => 'UTF-8',
2727
'maven.compiler.target' => '1.8',
2828
'polyglot.dump.pom' => 'pom.xml'
2929
)
3030

3131
jar 'args4j:args4j:2.0.31'
3232
jar 'org.processing:core:3.3.7'
33+
jar 'javax.xml.bind:jaxb-api:2.3.0'
3334

34-
plugin( :compiler, '3.8.0',
35-
'source' => '1.8',
36-
'target' => '1.8' )
37-
plugin( :jar, '3.0.2',
35+
plugin( :compiler, '3.8.1',
36+
'release' => '${target.release}' )
37+
plugin( :jar, '3.1.1',
3838
'archive' => {
3939
'manifestFile' => 'MANIFEST.MF'
4040
} )
41-
plugin :resources, '3.0.2'
42-
plugin :dependency, '3.0.2' do
41+
plugin :resources, '3.1.0'
42+
plugin :dependency, '3.1.1' do
4343
execute_goals( :id => 'default-cli',
4444
'artifactItems' => [ { 'groupId' => 'args4j',
4545
'artifactId' => 'args4j',

pom.xml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
1111
<modelVersion>4.0.0</modelVersion>
1212
<groupId>ruby-processing</groupId>
1313
<artifactId>toxiclibs</artifactId>
14-
<version>1.0.1</version>
14+
<version>2.0.0</version>
1515
<name>toxiclibs</name>
1616
<description>toxiclibs-library for JRubyArt</description>
1717
<organization>
@@ -44,10 +44,10 @@ DO NOT MODIFIY - GENERATED CODE
4444
<url>https://github.com/ruby-processing/toxiclibs/issues</url>
4545
</issueManagement>
4646
<properties>
47-
<maven.compiler.source>1.8</maven.compiler.source>
4847
<maven.compiler.target>1.8</maven.compiler.target>
4948
<polyglot.dump.pom>pom.xml</polyglot.dump.pom>
5049
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
50+
<target.release>11</target.release>
5151
</properties>
5252
<dependencies>
5353
<dependency>
@@ -60,6 +60,11 @@ DO NOT MODIFIY - GENERATED CODE
6060
<artifactId>core</artifactId>
6161
<version>3.3.7</version>
6262
</dependency>
63+
<dependency>
64+
<groupId>javax.xml.bind</groupId>
65+
<artifactId>jaxb-api</artifactId>
66+
<version>2.3.0</version>
67+
</dependency>
6368
</dependencies>
6469
<build>
6570
<sourceDirectory>src</sourceDirectory>
@@ -68,15 +73,14 @@ DO NOT MODIFIY - GENERATED CODE
6873
<plugins>
6974
<plugin>
7075
<artifactId>maven-compiler-plugin</artifactId>
71-
<version>3.8.0</version>
76+
<version>3.8.1</version>
7277
<configuration>
73-
<source>1.8</source>
74-
<target>1.8</target>
78+
<release>${target.release}</release>
7579
</configuration>
7680
</plugin>
7781
<plugin>
7882
<artifactId>maven-jar-plugin</artifactId>
79-
<version>3.0.2</version>
83+
<version>3.1.1</version>
8084
<configuration>
8185
<archive>
8286
<manifestFile>MANIFEST.MF</manifestFile>
@@ -85,11 +89,11 @@ DO NOT MODIFIY - GENERATED CODE
8589
</plugin>
8690
<plugin>
8791
<artifactId>maven-resources-plugin</artifactId>
88-
<version>3.0.2</version>
92+
<version>3.1.0</version>
8993
</plugin>
9094
<plugin>
9195
<artifactId>maven-dependency-plugin</artifactId>
92-
<version>3.0.2</version>
96+
<version>3.1.1</version>
9397
<executions>
9498
<execution>
9599
<id>default-cli</id>

src/toxi/data/feeds/util/Iso8601DateAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import javax.xml.datatype.DatatypeFactory;
3737
import javax.xml.datatype.XMLGregorianCalendar;
3838

39-
import com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl;
39+
//import com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl;
4040

4141
/**
4242
*
@@ -73,7 +73,7 @@ public String marshal(XMLGregorianCalendar date) throws Exception {
7373
public XMLGregorianCalendar unmarshal(String dateString) throws Exception {
7474
XMLGregorianCalendar calendar = null;
7575
GregorianCalendar cal = new GregorianCalendar();
76-
DatatypeFactory dataType = DatatypeFactoryImpl.newInstance();
76+
DatatypeFactory dataType = DatatypeFactory.newInstance();
7777
for (SimpleDateFormat f : ISO8601_FORMATS) {
7878
try {
7979
Date d = f.parse(dateString);

src/toxi/data/feeds/util/Rfc822DateAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import javax.xml.datatype.DatatypeFactory;
3737
import javax.xml.datatype.XMLGregorianCalendar;
3838

39-
import com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl;
39+
//import com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl;
4040

4141
/**
4242
*
@@ -82,7 +82,7 @@ public XMLGregorianCalendar unmarshal(String dateString) throws Exception {
8282
try {
8383
Date d = f.parse(dateString);
8484
cal.setTime(d);
85-
DatatypeFactory dataType = DatatypeFactoryImpl.newInstance();
85+
DatatypeFactory dataType = DatatypeFactory.newInstance();
8686
calendar = dataType.newXMLGregorianCalendar(cal);
8787
break;
8888
} catch (ParseException e) {

0 commit comments

Comments
 (0)