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
preprocessor_version = 0.1.0-41
......@@ -70,6 +70,7 @@ File mustacheGrammar = file('../relast-preprocessor/src/main/jastadd/mustache/Mu
task relast(type: JavaExec) {
group = 'Build'
classpath = configurations.relast
//noinspection GroovyAssignabilityCheck, GroovyAccessibility
mainClass = 'org.jastadd.relast.compiler.Compiler'
dependsOn extractJastAddSources
......@@ -193,6 +194,7 @@ jar {
task fatJar(type: Jar) {
dependsOn jar
group = "build"
//noinspection GroovyAssignabilityCheck, GroovyAccessibility
archiveAppendix = "fatjar"
from sourceSets.main.output
from {
......@@ -237,8 +239,10 @@ task setDevVersionForCI() {
publishing {
publications {
//noinspection GroovyAssignabilityCheck
maven(MavenPublication) {
artifactId = 'ragconnect'
artifactId = 'ragconnect' as Publication
//noinspection GroovyAssignabilityCheck
from components.java
}
}
......@@ -250,6 +254,7 @@ publishing {
value = System.getenv("CI_JOB_TOKEN")
}
authentication {
//noinspection GroovyAssignabilityCheck
header(HttpHeaderAuthentication)
}
}
......
......@@ -154,7 +154,7 @@ public class Compiler extends AbstractCompiler {
*/
private String readVersion() {
try {
ResourceBundle resources = ResourceBundle.getBundle("ragConnectVersion");
ResourceBundle resources = ResourceBundle.getBundle("ragconnectVersion");
return resources.getString("version");
} catch (MissingResourceException e) {
return "version ?";
......
......@@ -9,7 +9,7 @@ buildscript {
}
dependencies {
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 {
}
}
configurations {
ragconnect
relast
}
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: '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'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.4.0'
......@@ -71,6 +76,11 @@ File genSrc = file("src/test/java-gen")
sourceSets.test.java.srcDir genSrc
idea.module.generatedSourceDirs += genSrc
preprocessorTesting {
relastCompilerConfiguration = configurations.relast
ragconnectCompilerConfiguration = configurations.ragconnect
}
// --- Tests ---
test {
useJUnitPlatform {
......@@ -143,7 +153,6 @@ task compileExampleTest(type: RagConnectTest) {
inputFiles = [file('src/test/01-input/example/Test.jadd')]
}
}
compileExampleTest.outputs.upToDateWhen { false }
// --- Test: default-only-read ---
task compileDefaultOnlyRead(type: RagConnectTest) {
......@@ -659,7 +668,6 @@ task compileRelationIncremental(type: RagConnectTest) {
// --- Task order ---
classes.dependsOn(':ragconnect.base:jar')
//compileAttributeIncremental.outputs.upToDateWhen { false }
compileRelationIncremental.outputs.upToDateWhen { false }
// --- Misc ---
static ArrayList<String> defaultRagConnectOptionsAnd(ArrayList<String> options = []) {
......
Subproject commit cee30f5c8a1b356118f5ed78302a1df64fe76897
......@@ -6,6 +6,5 @@ pluginManagement {
rootProject.name = 'ragconnect'
include 'relast-preprocessor'
include 'ragconnect.base'
include 'ragconnect.tests'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment