Skip to content
Snippets Groups Projects
Commit 49ec7892 authored by René Schöne's avatar René Schöne
Browse files

Update dependencies (and make jar much smaller).

parent 76aeef7f
Branches
No related tags found
1 merge request!200.4.0
Pipeline #8217 passed
import org.jastadd.relast.plugin.RelastTest import org.jastadd.relast.plugin.RelastTest
apply plugin: "com.github.ben-manes.versions"
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'jastadd' apply plugin: 'jastadd'
apply plugin: 'application' apply plugin: 'application'
apply plugin: "idea" apply plugin: "idea"
...@@ -21,20 +23,21 @@ buildscript { ...@@ -21,20 +23,21 @@ buildscript {
repositories.jcenter() repositories.jcenter()
dependencies { dependencies {
classpath 'org.jastadd:jastaddgradle:1.13.3' classpath 'org.jastadd:jastaddgradle:1.13.3'
classpath "com.github.ben-manes:gradle-versions-plugin:0.34.0"
} }
} }
dependencyUpdates.gradleReleaseChannel="current"
dependencyUpdates.revision="release"
dependencies { dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.0' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.0' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
testCompile 'org.assertj:assertj-core:3.12.1' testImplementation 'org.assertj:assertj-core:3.18.0'
compile 'com.fasterxml.jackson.core:jackson-core:2.9.8' testImplementation 'com.fasterxml.jackson.core:jackson-core:2.11.3'
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.8' testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.11.3'
compile 'org.jastadd:jastadd:2.3.4' implementation group: 'org.jastadd', name: 'jastadd', version: '2.3.4'
runtime 'org.jastadd:jastadd:2.3.4' api group: 'net.sf.beaver', name: 'beaver-rt', version: '0.9.11'
compile group: 'net.sf.beaver', name: 'beaver-rt', version: '0.9.11'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.10.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.10.0'
} }
File genSrc = file("src/gen/java") File genSrc = file("src/gen/java")
......
package org.jastadd.relast.tests; package org.jastadd.relast.tests;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.jastadd.relast.compiler.Compiler; import org.jastadd.relast.compiler.Compiler;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
...@@ -20,7 +18,6 @@ import static org.jastadd.relast.tests.TestHelpers.readFile; ...@@ -20,7 +18,6 @@ import static org.jastadd.relast.tests.TestHelpers.readFile;
class Errors { class Errors {
private static final Logger logger = LogManager.getLogger(Errors.class);
private static final String FILENAME_PATTERN = "$FILENAME"; private static final String FILENAME_PATTERN = "$FILENAME";
@Test @Test
...@@ -61,7 +58,7 @@ class Errors { ...@@ -61,7 +58,7 @@ class Errors {
String expectedFile = "./src/test/jastadd/errors/" + name + ".expected"; String expectedFile = "./src/test/jastadd/errors/" + name + ".expected";
try { try {
logger.debug("user.dir: {}", System.getProperty("user.dir")); System.out.println("user.dir: " + System.getProperty("user.dir"));
int returnValue = exec(Compiler.class, inFiles.toArray(new String[0]), new File(outFile)); int returnValue = exec(Compiler.class, inFiles.toArray(new String[0]), new File(outFile));
Assertions.assertEquals(1, returnValue, "Relast did not return with value 1"); Assertions.assertEquals(1, returnValue, "Relast did not return with value 1");
} catch (IOException | InterruptedException e) { } catch (IOException | InterruptedException e) {
...@@ -86,7 +83,7 @@ class Errors { ...@@ -86,7 +83,7 @@ class Errors {
Assertions.assertLinesMatch(expectedList, outList); Assertions.assertLinesMatch(expectedList, outList);
logger.info("relast for " + name + " returned \n{}", out); System.out.println("relast for " + name + " returned \n" + out);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment