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

use packaged dependencies

- remove relast-preprocessor
- update log4j
- update preprocessor.testing to work with packaged relast
parent 552c01f5
No related branches found
No related tags found
1 merge request!29Resolve "Change JastAdd version to updated, packaged one"
Pipeline #13185 failed
[submodule "relast-preprocessor"]
path = relast-preprocessor
url = ../relast-preprocessor.git
branch = develop
log4j_version = 2.14.0 log4j_version = 2.17.2
mustache_java_version = 0.9.10 mustache_java_version = 0.9.10
preprocessor_version = 0.1.0-41 preprocessor_version = 0.1.0-41
...@@ -70,6 +70,7 @@ File mustacheGrammar = file('../relast-preprocessor/src/main/jastadd/mustache/Mu ...@@ -70,6 +70,7 @@ File mustacheGrammar = file('../relast-preprocessor/src/main/jastadd/mustache/Mu
task relast(type: JavaExec) { task relast(type: JavaExec) {
group = 'Build' group = 'Build'
classpath = configurations.relast classpath = configurations.relast
//noinspection GroovyAssignabilityCheck, GroovyAccessibility
mainClass = 'org.jastadd.relast.compiler.Compiler' mainClass = 'org.jastadd.relast.compiler.Compiler'
dependsOn extractJastAddSources dependsOn extractJastAddSources
...@@ -193,6 +194,7 @@ jar { ...@@ -193,6 +194,7 @@ jar {
task fatJar(type: Jar) { task fatJar(type: Jar) {
dependsOn jar dependsOn jar
group = "build" group = "build"
//noinspection GroovyAssignabilityCheck, GroovyAccessibility
archiveAppendix = "fatjar" archiveAppendix = "fatjar"
from sourceSets.main.output from sourceSets.main.output
from { from {
...@@ -237,8 +239,10 @@ task setDevVersionForCI() { ...@@ -237,8 +239,10 @@ task setDevVersionForCI() {
publishing { publishing {
publications { publications {
//noinspection GroovyAssignabilityCheck
maven(MavenPublication) { maven(MavenPublication) {
artifactId = 'ragconnect' artifactId = 'ragconnect' as Publication
//noinspection GroovyAssignabilityCheck
from components.java from components.java
} }
} }
...@@ -250,6 +254,7 @@ publishing { ...@@ -250,6 +254,7 @@ publishing {
value = System.getenv("CI_JOB_TOKEN") value = System.getenv("CI_JOB_TOKEN")
} }
authentication { authentication {
//noinspection GroovyAssignabilityCheck
header(HttpHeaderAuthentication) header(HttpHeaderAuthentication)
} }
} }
......
...@@ -154,7 +154,7 @@ public class Compiler extends AbstractCompiler { ...@@ -154,7 +154,7 @@ public class Compiler extends AbstractCompiler {
*/ */
private String readVersion() { private String readVersion() {
try { try {
ResourceBundle resources = ResourceBundle.getBundle("ragConnectVersion"); ResourceBundle resources = ResourceBundle.getBundle("ragconnectVersion");
return resources.getString("version"); return resources.getString("version");
} catch (MissingResourceException e) { } catch (MissingResourceException e) {
return "version ?"; return "version ?";
......
...@@ -9,7 +9,7 @@ buildscript { ...@@ -9,7 +9,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'org.jastadd:jastaddgradle:1.13.3' classpath 'org.jastadd:jastaddgradle:1.13.3'
classpath 'org.jastadd.preprocessor:testing:0.2.13-27' classpath 'org.jastadd.preprocessor:testing:0.3.0-37'
} }
} }
...@@ -37,11 +37,16 @@ repositories { ...@@ -37,11 +37,16 @@ repositories {
} }
} }
configurations {
ragconnect
relast
}
dependencies { dependencies {
implementation project(':ragconnect.base') ragconnect project(':ragconnect.base')
implementation group: 'org.jastadd', name: 'jastadd2', version: '2.3.5-dresden-5' implementation group: 'org.jastadd', name: 'jastadd2', version: '2.3.5-dresden-5'
implementation group: 'org.jastadd', name: 'relast', version: "0.3.0-137" relast group: 'org.jastadd', name: 'relast', version: "0.3.0-137"
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.4.0' testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.4.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.4.0' testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.4.0'
...@@ -71,6 +76,11 @@ File genSrc = file("src/test/java-gen") ...@@ -71,6 +76,11 @@ File genSrc = file("src/test/java-gen")
sourceSets.test.java.srcDir genSrc sourceSets.test.java.srcDir genSrc
idea.module.generatedSourceDirs += genSrc idea.module.generatedSourceDirs += genSrc
preprocessorTesting {
relastCompilerConfiguration = configurations.relast
ragconnectCompilerConfiguration = configurations.ragconnect
}
// --- Tests --- // --- Tests ---
test { test {
useJUnitPlatform { useJUnitPlatform {
...@@ -143,7 +153,6 @@ task compileExampleTest(type: RagConnectTest) { ...@@ -143,7 +153,6 @@ task compileExampleTest(type: RagConnectTest) {
inputFiles = [file('src/test/01-input/example/Test.jadd')] inputFiles = [file('src/test/01-input/example/Test.jadd')]
} }
} }
compileExampleTest.outputs.upToDateWhen { false }
// --- Test: default-only-read --- // --- Test: default-only-read ---
task compileDefaultOnlyRead(type: RagConnectTest) { task compileDefaultOnlyRead(type: RagConnectTest) {
...@@ -659,7 +668,6 @@ task compileRelationIncremental(type: RagConnectTest) { ...@@ -659,7 +668,6 @@ task compileRelationIncremental(type: RagConnectTest) {
// --- Task order --- // --- Task order ---
classes.dependsOn(':ragconnect.base:jar') classes.dependsOn(':ragconnect.base:jar')
//compileAttributeIncremental.outputs.upToDateWhen { false } //compileAttributeIncremental.outputs.upToDateWhen { false }
compileRelationIncremental.outputs.upToDateWhen { false }
// --- Misc --- // --- Misc ---
static ArrayList<String> defaultRagConnectOptionsAnd(ArrayList<String> options = []) { static ArrayList<String> defaultRagConnectOptionsAnd(ArrayList<String> options = []) {
......
Subproject commit cee30f5c8a1b356118f5ed78302a1df64fe76897
...@@ -6,6 +6,5 @@ pluginManagement { ...@@ -6,6 +6,5 @@ pluginManagement {
rootProject.name = 'ragconnect' rootProject.name = 'ragconnect'
include 'relast-preprocessor'
include 'ragconnect.base' include 'ragconnect.base'
include 'ragconnect.tests' include 'ragconnect.tests'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment