Commit 8eabc9f9 authored by René Schöne's avatar René Schöne
Browse files

Make multi-module again.

parent 8dade725
[submodule "relast-preprocessor"]
path = relast-preprocessor
url = ../relast-preprocessor.git
File added
apply plugin: 'java-library'
apply plugin: 'idea'
apply plugin: 'jastadd'
apply plugin: 'application'
group = 'de.tudresden.inf.st'
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = 'org.jastadd.ragconnect.compiler.Compiler'
repositories {
mavenCentral()
jcenter()
}
......@@ -17,9 +23,11 @@ buildscript {
}
dependencies {
implementation project(':relast.preprocessor')
implementation group: 'com.github.spullara.mustache.java', name: 'compiler', version: '0.9.6'
implementation project(':relast-preprocessor')
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.2'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.2'
implementation group: 'org.apache.logging.log4j', name: 'log4j-jul', version: '2.11.2'
implementation group: 'com.github.spullara.mustache.java', name: 'compiler', version: '0.9.6'
runtime group: 'org.jastadd', name: 'jastadd', version: '2.3.4'
api group: 'net.sf.beaver', name: 'beaver-rt', version: '0.9.11'
}
......@@ -43,16 +51,8 @@ task newVersion() {
}
}
sourceSets {
main {
java.srcDir "src/gen/java"
}
}
test {
useJUnitPlatform()
maxHeapSize = '1G'
sourceSets.main.java {
srcDir "src/gen/java"
}
jar {
......@@ -71,7 +71,7 @@ task relast(type: JavaExec) {
args = [
"../libs/relast.jar",
"../relast.preprocessor/src/main/jastadd/RelAst.relast",
"../relast-preprocessor/src/main/jastadd/RelAst.relast",
"./src/main/jastadd/RagConnect.relast",
"./src/main/jastadd/MustacheNodes.relast",
"./src/main/jastadd/YAML.relast",
......@@ -84,7 +84,7 @@ task relast(type: JavaExec) {
]
inputs.files("../libs/relast.jar",
"../relast.preprocessor/src/main/jastadd/RelAst.relast",
"../relast-preprocessor/src/main/jastadd/RelAst.relast",
"./src/main/jastadd/RagConnect.relast",
"./src/main/jastadd/MustacheNodes.relast",
"./src/main/jastadd/YAML.relast")
......@@ -102,17 +102,17 @@ jastadd {
java {
basedir ".."
include "relast.preprocessor/main/**/*.java"
include "relast.preprocessor/gen/**/*.java"
include "relast-preprocessor/main/**/*.java"
include "relast-preprocessor/gen/**/*.java"
include "ragconnect.base/src/main/**/*.java"
include "ragconnect.base/src/gen/**/*.java"
}
jastadd {
basedir ".."
include "relast.preprocessor/src/main/jastadd/**/*.ast"
include "relast.preprocessor/src/main/jastadd/**/*.jadd"
include "relast.preprocessor/src/main/jastadd/**/*.jrag"
include "relast-preprocessor/src/main/jastadd/**/*.ast"
include "relast-preprocessor/src/main/jastadd/**/*.jadd"
include "relast-preprocessor/src/main/jastadd/**/*.jrag"
include "ragconnect.base/src/main/jastadd/**/*.ast"
include "ragconnect.base/src/main/jastadd/**/*.jadd"
include "ragconnect.base/src/main/jastadd/**/*.jrag"
......@@ -123,23 +123,23 @@ jastadd {
scanner {
basedir ".."
include "ragconnect.base/src/main/jastadd/scanner/Header.flex", [-5]
include "relast.preprocessor/src/main/jastadd/scanner/Preamble.flex", [-4]
include "relast.preprocessor/src/main/jastadd/scanner/Macros.flex", [-3]
include "ragconnect.base/src/main/jastadd/scanner/Macros.flex", [-3]
include "relast.preprocessor/src/main/jastadd/scanner/RulesPreamble.flex", [-2]
include "ragconnect.base/src/main/jastadd/scanner/MappingContent.flex", [-1]
include "ragconnect.base/src/main/jastadd/scanner/Header.flex", [-5]
include "relast-preprocessor/src/main/jastadd/scanner/Preamble.flex", [-4]
include "relast-preprocessor/src/main/jastadd/scanner/Macros.flex", [-3]
include "ragconnect.base/src/main/jastadd/scanner/Macros.flex", [-3]
include "relast-preprocessor/src/main/jastadd/scanner/RulesPreamble.flex", [-2]
include "ragconnect.base/src/main/jastadd/scanner/MappingContent.flex", [-1]
include "ragconnect.base/src/main/jastadd/scanner/Keywords.flex"
include "relast.preprocessor/src/main/jastadd/scanner/Keywords.flex"
include "relast.preprocessor/src/main/jastadd/scanner/Symbols.flex", [1]
include "relast.preprocessor/src/main/jastadd/scanner/RulesPostamble.flex", [2]
include "relast-preprocessor/src/main/jastadd/scanner/Keywords.flex"
include "relast-preprocessor/src/main/jastadd/scanner/Symbols.flex", [1]
include "relast-preprocessor/src/main/jastadd/scanner/RulesPostamble.flex", [2]
}
parser {
basedir ".."
include "ragconnect.base/src/main/jastadd/parser/Preamble.parser"
include "ragconnect.base/src/main/jastadd/parser/RagConnect.parser"
include "relast.preprocessor/src/main/jastadd/parser/RelAst.parser"
include "relast-preprocessor/src/main/jastadd/parser/RelAst.parser"
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment