From 1ff4a2acf3710de9cb370577336bf53b68520bc6 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 15 Nov 2023 09:26:03 -0800 Subject: [PATCH] Remove GWT support. Also target source 1.9 as we no longer need 1.8 for GWT and hopefully the rest of the world has moved on from Java 1.8 in the last twenty years. --- pom.xml | 54 ++----------------- .../samskivert/mustache/GwtTestMustache.java | 23 -------- .../com/samskivert/mustache/SharedTests.java | 9 +--- 3 files changed, 5 insertions(+), 81 deletions(-) delete mode 100644 src/test/java/com/samskivert/mustache/GwtTestMustache.java diff --git a/pom.xml b/pom.xml index 0116eb7..2d802e9 100644 --- a/pom.xml +++ b/pom.xml @@ -41,32 +41,16 @@ http://github.com/samskivert/jmustache - - 1.8 + 1.9 UTF-8 - 2.8.2 - 2.8.2 - - com.google.gwt - gwt-dev - ${gwt.version} - test - - - com.google.gwt - gwt-user - ${gwt.version} - test - junit junit @@ -82,20 +66,6 @@ - - - - ${project.build.sourceDirectory} - - com/samskivert/mustache/DefaultCollector.java - - - - - src/main/gwt - - - org.apache.maven.plugins @@ -104,8 +74,6 @@ ${source.level} ${source.level} - 1.8 - 1.8 true true true @@ -145,7 +113,7 @@ org.apache.felix maven-bundle-plugin - 4.2.0 + 5.1.1 true @@ -157,22 +125,6 @@ - - org.codehaus.mojo - gwt-maven-plugin - ${gwt.maven.version} - - - - test - - - - - htmlunit - - - org.apache.maven.plugins maven-resources-plugin diff --git a/src/test/java/com/samskivert/mustache/GwtTestMustache.java b/src/test/java/com/samskivert/mustache/GwtTestMustache.java deleted file mode 100644 index 3d913ac..0000000 --- a/src/test/java/com/samskivert/mustache/GwtTestMustache.java +++ /dev/null @@ -1,23 +0,0 @@ -// -// JMustache - A Java implementation of the Mustache templating language -// http://github.com/samskivert/jmustache/blob/master/LICENSE - -package com.samskivert.mustache; - -import java.util.HashMap; -import java.util.Map; - -import com.google.gwt.junit.client.GWTTestCase; - -import org.junit.*; -import static org.junit.Assert.*; - -/** - * Tests basic Mustache operation in GWT. - */ -public class GwtTestMustache extends SharedTests -{ - public String getModuleName () { - return "com.samskivert.Mustache"; - } -} diff --git a/src/test/java/com/samskivert/mustache/SharedTests.java b/src/test/java/com/samskivert/mustache/SharedTests.java index 0ce962c..a5d1a8b 100644 --- a/src/test/java/com/samskivert/mustache/SharedTests.java +++ b/src/test/java/com/samskivert/mustache/SharedTests.java @@ -10,21 +10,16 @@ import java.io.StringReader; import java.io.Writer; import java.util.*; -import com.google.gwt.junit.client.GWTTestCase; - import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; /** - * Unit tests that can be shared between GWT and the JVM. Put GWT-only tests in - * {@code GwtTestMustache.java} and JVM-only tests in {@code MustacheTest.java}. + * Vestige from when JMustache supported both GWT and JVM. */ -public abstract class SharedTests extends GWTTestCase +public abstract class SharedTests { - @Override public String getModuleName () { return null; } - @Test public void testSimpleVariable () { test("bar", "{{foo}}", context("foo", "bar")); }