diff --git a/build.gradle b/build.gradle
index 315a47ec..8600dd0a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -52,12 +52,12 @@ subprojects {
targetCompatibility = '1.8'
repositories {
- jcenter()
+ mavenCentral()
maven githubPackage.invoke("metafacture")
}
dependencies {
- compile platform("org.eclipse.xtext:xtext-dev-bom:${versions.xtext}")
+ implementation platform("org.eclipse.xtext:xtext-dev-bom:${versions.xtext}")
}
configurations.all {
diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml
index 5b5bb2c9..7d7b827f 100644
--- a/config/checkstyle/checkstyle.xml
+++ b/config/checkstyle/checkstyle.xml
@@ -29,6 +29,7 @@
+
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 44e7c4d1..a2e01c0d 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
+distributionSha256Sum=f581709a9c35e9cb92e16f585d2c4bc99b2b1a5f85d2badbd3dc6bff59e1e6dd
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/org.metafacture.fix.ide/build.gradle b/org.metafacture.fix.ide/build.gradle
index b438ace3..c4faa28d 100644
--- a/org.metafacture.fix.ide/build.gradle
+++ b/org.metafacture.fix.ide/build.gradle
@@ -3,10 +3,10 @@ plugins {
}
dependencies {
- compile project(':metafacture-fix')
+ implementation project(':metafix')
- compile "org.eclipse.xtext:org.eclipse.xtext.ide:${versions.xtext}"
- compile "org.eclipse.xtext:org.eclipse.xtext.xbase.ide:${versions.xtext}"
+ implementation "org.eclipse.xtext:org.eclipse.xtext.ide:${versions.xtext}"
+ implementation "org.eclipse.xtext:org.eclipse.xtext.xbase.ide:${versions.xtext}"
}
apply plugin: 'application'
@@ -17,7 +17,7 @@ applicationName = 'xtext-server'
shadowJar {
from(project.convention.getPlugin(JavaPluginConvention).sourceSets.main.output)
- configurations = [project.configurations.runtime]
+ configurations = [project.configurations.runtimeClasspath]
exclude(
'*.html',
diff --git a/org.metafacture.fix.ide/src/main/java/org/metafacture/fix/ide/FixIdeModule.java b/org.metafacture.fix.ide/src/main/java/org/metafacture/metafix/ide/FixIdeModule.java
similarity index 80%
rename from org.metafacture.fix.ide/src/main/java/org/metafacture/fix/ide/FixIdeModule.java
rename to org.metafacture.fix.ide/src/main/java/org/metafacture/metafix/ide/FixIdeModule.java
index 226c18c4..4b9f4785 100644
--- a/org.metafacture.fix.ide/src/main/java/org/metafacture/fix/ide/FixIdeModule.java
+++ b/org.metafacture.fix.ide/src/main/java/org/metafacture/metafix/ide/FixIdeModule.java
@@ -1,11 +1,9 @@
-package org.metafacture.fix.ide;
+package org.metafacture.metafix.ide;
/**
* Use this class to register ide components.
*/
public class FixIdeModule extends AbstractFixIdeModule {
-
public FixIdeModule() {
}
-
}
diff --git a/org.metafacture.fix.ide/src/main/java/org/metafacture/fix/ide/FixIdeSetup.java b/org.metafacture.fix.ide/src/main/java/org/metafacture/metafix/ide/FixIdeSetup.java
similarity index 76%
rename from org.metafacture.fix.ide/src/main/java/org/metafacture/fix/ide/FixIdeSetup.java
rename to org.metafacture.fix.ide/src/main/java/org/metafacture/metafix/ide/FixIdeSetup.java
index 2d446884..2dd6f9fc 100644
--- a/org.metafacture.fix.ide/src/main/java/org/metafacture/fix/ide/FixIdeSetup.java
+++ b/org.metafacture.fix.ide/src/main/java/org/metafacture/metafix/ide/FixIdeSetup.java
@@ -1,7 +1,7 @@
-package org.metafacture.fix.ide;
+package org.metafacture.metafix.ide;
-import org.metafacture.fix.FixRuntimeModule;
-import org.metafacture.fix.FixStandaloneSetup;
+import org.metafacture.metafix.FixRuntimeModule;
+import org.metafacture.metafix.FixStandaloneSetup;
import com.google.inject.Guice;
import com.google.inject.Injector;
diff --git a/org.metafacture.fix.ide/src/main/java/org/metafacture/fix/ide/contentassist/antlr/FixTokenSource.java b/org.metafacture.fix.ide/src/main/java/org/metafacture/metafix/ide/contentassist/antlr/FixTokenSource.java
similarity index 84%
rename from org.metafacture.fix.ide/src/main/java/org/metafacture/fix/ide/contentassist/antlr/FixTokenSource.java
rename to org.metafacture.fix.ide/src/main/java/org/metafacture/metafix/ide/contentassist/antlr/FixTokenSource.java
index 579e345f..138a7f9d 100644
--- a/org.metafacture.fix.ide/src/main/java/org/metafacture/fix/ide/contentassist/antlr/FixTokenSource.java
+++ b/org.metafacture.fix.ide/src/main/java/org/metafacture/metafix/ide/contentassist/antlr/FixTokenSource.java
@@ -1,6 +1,6 @@
-package org.metafacture.fix.ide.contentassist.antlr;
+package org.metafacture.metafix.ide.contentassist.antlr;
-import org.metafacture.fix.ide.contentassist.antlr.internal.InternalFixParser;
+import org.metafacture.metafix.ide.contentassist.antlr.internal.InternalFixParser;
import org.antlr.runtime.Token;
import org.antlr.runtime.TokenSource;
@@ -31,5 +31,4 @@ protected int getEndTokenType() {
protected boolean shouldEmitPendingEndTokens() {
return false;
}
-
}
diff --git a/org.metafacture.fix.web/build.gradle b/org.metafacture.fix.web/build.gradle
index 72a1cbfa..61e79562 100644
--- a/org.metafacture.fix.web/build.gradle
+++ b/org.metafacture.fix.web/build.gradle
@@ -3,15 +3,15 @@ plugins {
}
dependencies {
- compile project(':metafacture-fix')
- compile project(':org.metafacture.fix.ide')
+ implementation project(':metafix')
+ implementation project(':org.metafacture.fix.ide')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:${versions.xtext}"
- compile "org.eclipse.xtext:org.eclipse.xtext.web.servlet:${versions.xtext}"
- compile "org.eclipse.xtext:org.eclipse.xtext.xbase.web:${versions.xtext}"
- compile "org.webjars:ace:${versions.ace}"
- compile "org.webjars:jquery:${versions.jquery}"
- compile "org.webjars:requirejs:${versions.requirejs}"
+ implementation "org.eclipse.xtend:org.eclipse.xtend.lib:${versions.xtext}"
+ implementation "org.eclipse.xtext:org.eclipse.xtext.web.servlet:${versions.xtext}"
+ implementation "org.eclipse.xtext:org.eclipse.xtext.xbase.web:${versions.xtext}"
+ implementation "org.webjars:ace:${versions.ace}"
+ implementation "org.webjars:jquery:${versions.jquery}"
+ implementation "org.webjars:requirejs:${versions.requirejs}"
providedCompile "org.eclipse.jetty:jetty-annotations:${versions.jetty}"
providedCompile "org.slf4j:slf4j-simple:${versions.slf4j}"
@@ -27,7 +27,7 @@ dependencies {
task jettyRun(type: JavaExec) {
dependsOn(sourceSets.main.runtimeClasspath)
classpath = sourceSets.main.runtimeClasspath.filter { it.exists() }
- main = 'org.metafacture.fix.web.ServerLauncher'
+ mainClass = 'org.metafacture.metafix.web.ServerLauncher'
standardInput = System.in
group = 'run'
description = 'Starts an example Jetty server with your language'
diff --git a/org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/FixServlet.java b/org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/FixServlet.java
similarity index 93%
rename from org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/FixServlet.java
rename to org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/FixServlet.java
index 2b675426..16866e70 100644
--- a/org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/FixServlet.java
+++ b/org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/FixServlet.java
@@ -1,6 +1,6 @@
-package org.metafacture.fix.web;
+package org.metafacture.metafix.web;
-import org.metafacture.metamorph.Metafix;
+import org.metafacture.metafix.FixStandaloneSetup;
import org.metafacture.runner.Flux;
import org.antlr.runtime.RecognitionException;
@@ -86,7 +86,7 @@ private boolean process(final HttpServletRequest request, final HttpServletRespo
builder.append(request.getParameter(PARAM_FLUX).replaceAll("\\s?\\|\\s?", "|").replace(
"|" + COMMAND_FIX + "|",
- "|org.metafacture.metamorph.Metafix(fixFile=\"" + fixFile + "\")|"));
+ "|org.metafacture.metafix.Metafix(\"" + fixFile + "\")|"));
builder.append("|write(\"");
builder.append(outFile);
builder.append("\");");
@@ -106,7 +106,7 @@ private boolean process(final HttpServletRequest request, final HttpServletRespo
}
private String absPathToTempFile(final String content, final String suffix) throws IOException {
- return Metafix.absPathToTempFile(new StringReader(content), suffix);
+ return FixStandaloneSetup.absPathToTempFile(new StringReader(content), suffix);
}
}
diff --git a/org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/FixWebModule.java b/org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/FixWebModule.java
similarity index 71%
rename from org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/FixWebModule.java
rename to org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/FixWebModule.java
index 3825a191..ad61024e 100644
--- a/org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/FixWebModule.java
+++ b/org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/FixWebModule.java
@@ -1,11 +1,10 @@
-package org.metafacture.fix.web;
+package org.metafacture.metafix.web;
/**
- * Use this class to register additional components to be used within the web application.
+ * Use this class to register additional components to be used within the web
+ * application.
*/
public class FixWebModule extends AbstractFixWebModule {
-
public FixWebModule() {
}
-
}
diff --git a/org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/FixWebSetup.java b/org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/FixWebSetup.java
similarity index 71%
rename from org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/FixWebSetup.java
rename to org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/FixWebSetup.java
index 74cee0ee..ad7c397a 100644
--- a/org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/FixWebSetup.java
+++ b/org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/FixWebSetup.java
@@ -1,8 +1,8 @@
-package org.metafacture.fix.web;
+package org.metafacture.metafix.web;
-import org.metafacture.fix.FixRuntimeModule;
-import org.metafacture.fix.FixStandaloneSetup;
-import org.metafacture.fix.ide.FixIdeModule;
+import org.metafacture.metafix.FixRuntimeModule;
+import org.metafacture.metafix.FixStandaloneSetup;
+import org.metafacture.metafix.ide.FixIdeModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
diff --git a/org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/ServerLauncher.java b/org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/ServerLauncher.java
similarity index 90%
rename from org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/ServerLauncher.java
rename to org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/ServerLauncher.java
index 1526dafe..93893f7c 100644
--- a/org.metafacture.fix.web/src/main/java/org/metafacture/fix/web/ServerLauncher.java
+++ b/org.metafacture.fix.web/src/main/java/org/metafacture/metafix/web/ServerLauncher.java
@@ -1,4 +1,4 @@
-package org.metafacture.fix.web;
+package org.metafacture.metafix.web;
import org.eclipse.jetty.annotations.AnnotationConfiguration;
import org.eclipse.jetty.server.Server;
@@ -16,7 +16,8 @@
* This program starts an HTTP server for testing the web integration of your DSL.
* Just execute it and point a web browser to http://localhost:8080/
*/
-public class ServerLauncher { // checkstyle-disable-line ClassDataAbstractionCoupling
+@SuppressWarnings({"checkstyle:ClassDataAbstractionCoupling", "checkstyle:IllegalCatch"})
+public class ServerLauncher {
private ServerLauncher() {
throw new IllegalAccessError("Utility class");
@@ -52,14 +53,14 @@ public static void main(final String[] args) {
log.warn("Console input is not available. In order to stop the server, you need to cancel the process manually.");
}
}
- catch (final Exception e) { // checkstyle-disable-line IllegalCatch
+ catch (final Exception e) {
throw Exceptions.sneakyThrow(e);
}
}).start();
server.join();
}
- catch (final Throwable e) { // checkstyle-disable-line IllegalCatch
+ catch (final Throwable e) {
if (e instanceof Exception) {
log.warn(((Exception) e).getMessage());
System.exit(1);
diff --git a/org.metafacture.fix.web/src/main/webapp/index.html b/org.metafacture.fix.web/src/main/webapp/index.html
index 55f347f2..88eea196 100644
--- a/org.metafacture.fix.web/src/main/webapp/index.html
+++ b/org.metafacture.fix.web/src/main/webapp/index.html
@@ -34,7 +34,7 @@