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

update dependencies, add hint when first running cookiecutter

parent a7cdb846
Branches
No related tags found
No related merge requests found
{
"README of": "Cookiecutter template for relational RAG projects]\nPlease refer to <https://git-st.inf.tu-dresden.de/jastadd/project-templates/relast> for information on the parameters to follow\n[Continue with Enter",
"repo_name": "test_repo",
"project_name": "My New Relational RAG Project",
"project_short_name": "NewRelAST",
......
plugins {
id 'com.github.ben-manes.versions' version '0.42.0'
id 'java'
id 'application'
id 'maven-publish'
......@@ -26,8 +27,9 @@ repositories {
}
configurations {
// add a configuration to store the grammar printing dependency in
// add a configuration to store the dependencies of grammar printing and relast preprocessor library in
grammar2uml
relast
}
File genSrc = file("src/gen/java")
......@@ -35,9 +37,10 @@ idea.module.generatedSourceDirs += genSrc
sourceSets.main.java.srcDir genSrc
dependencies {
// uncomment if relast2uml should be used; this requires graphviz in CI and on system
// implementation group: 'de.tudresden.inf.st', name: 'dumpAstWithPlantuml', version: "${relast2uml_version}"
// uncomment if dumpAst should be used; this requires graphviz in CI and on system
// implementation group: 'de.tudresden.inf.st', name: 'dumpAst', version: "${dumpAst_version}"
grammar2uml group: 'de.tudresden.inf.st', name: 'grammar2uml', version: "${grammar2uml_version}"
relast group: 'org.jastadd', name: 'relast', version: "${relast_version}"
testImplementation group: 'org.assertj', name: 'assertj-core', version: "${assertj_version}"
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: "${jupyter_version}"
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: "${jupyter_version}"
......@@ -83,7 +86,6 @@ jar {
}
}
def relastJar = 'libs/relast.jar'
def relastFiles = ['./src/main/jastadd/{{cookiecutter.project_short_name}}.relast']
def grammarPrefix = './src/gen/jastadd/{{cookiecutter.project_short_name}}'
def grammarDiagramFile = './src/gen/resources/{{cookiecutter.project_short_name}}Grammar.png'
......@@ -92,8 +94,11 @@ def jastAddListName = 'JastAddList'
task generateGrammarDiagrams(type: JavaExec) {
group = 'Documentation'
classpath = configurations.grammar2uml
mainClass = 'de.tudresden.inf.st.jastadd.grammar2uml.compiler.Compiler'
args "--output=${grammarDiagramFile}", '--defaultFolders'
// TODO uncomment if using multiple grammar files
// args '--separateGrammarDiagrams=./src/gen/resources/*.png'
args relastFiles
inputs.files relastFiles
......@@ -102,7 +107,13 @@ task generateGrammarDiagrams(type: JavaExec) {
task relastToJastAdd(type: JavaExec) {
group = 'Build'
classpath = files("${relastJar}")
classpath = configurations.relast
//noinspection GroovyAssignabilityCheck, GroovyAccessibility
mainClass = 'org.jastadd.relast.compiler.Compiler'
doFirst {
mkdir "src/gen/jastadd/"
}
args "--grammarName=${grammarPrefix}",
'--useJastAddNames',
......
relast2uml_version = 0.3.6-54
jupyter_version = 5.8.2
assertj_version = 3.22.0
grammar2uml_version = 0.2.1
jastaddgradle_version = 1.14.5
\ No newline at end of file
dumpAst_version = 1.2.0
jupyter_version = 5.9.0
assertj_version = 3.23.1
grammar2uml_version = 0.2.5-21
jastaddgradle_version = 1.15.0
relast_version = 0.4.0
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment