Skip to content

Commit

Permalink
Merge branch 'mlc-model-fix' into 'dev'
Browse files Browse the repository at this point in the history
fixed mlc models and modified build.gradle accordingly

See merge request monticore/monticore!928
  • Loading branch information
MisterErwin committed Jan 12, 2024
2 parents bc8a131 + 5964e97 commit b8c30be
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
10 changes: 10 additions & 0 deletions monticore-grammar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ checkArtifactsBitExpressions.dependsOn(checkArtifactsExpressionsBasis)
checkArtifactsCommonExpressions.dependsOn(checkArtifactsExpressionsBasis)
checkArtifactsExpressionsBasis.dependsOn(checkArtifactsMCBasics)
checkArtifactsExpressionsBasis.dependsOn(checkArtifactsMCLiteralsBasis)

checkArtifactsJavaClassExpressions.dependsOn(checkArtifactsCommonExpressions)
checkArtifactsJavaClassExpressions.dependsOn(checkArtifactsMCFullGenericTypes)

checkArtifactsAntlr.dependsOn(checkArtifactsMCBasics)
checkArtifactsGrammar.dependsOn(checkArtifactsMCCommonLiterals)
Expand Down Expand Up @@ -390,14 +392,19 @@ checkArtifactsRegularExpressions.dependsOn(checkArtifactsMCCommonLiterals)

checkArtifactsRegExType.dependsOn(checkArtifactsRegularExpressions)

checkArtifactsUglyExpressions.dependsOn(checkArtifactsCommonExpressions)
checkArtifactsUglyExpressions.dependsOn(checkArtifactsMCBasicTypes)

///////////// dependencies between show artifacts tasks ///////////////////////

showArtifactsAssignmentExpressions.dependsOn(showArtifactsExpressionsBasis)
showArtifactsBitExpressions.dependsOn(showArtifactsExpressionsBasis)
showArtifactsCommonExpressions.dependsOn(showArtifactsExpressionsBasis)
showArtifactsExpressionsBasis.dependsOn(showArtifactsMCBasics)
showArtifactsExpressionsBasis.dependsOn(showArtifactsMCLiteralsBasis)

showArtifactsJavaClassExpressions.dependsOn(showArtifactsCommonExpressions)
showArtifactsJavaClassExpressions.dependsOn(showArtifactsMCFullGenericTypes)

showArtifactsAntlr.dependsOn(showArtifactsMCBasics)
showArtifactsGrammar.dependsOn(showArtifactsMCCommonLiterals)
Expand Down Expand Up @@ -475,6 +482,9 @@ showArtifactsRegularExpressions.dependsOn(showArtifactsMCCommonLiterals)

showArtifactsRegExType.dependsOn(showArtifactsRegularExpressions)

showArtifactsUglyExpressions.dependsOn(showArtifactsExpressionsBasis)
showArtifactsUglyExpressions.dependsOn(showArtifactsMCBasicTypes)

java {
registerFeature('grammars') {
usingSourceSet(sourceSets.grammars)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ mlc AssignmentExpressions {

promote {
mlc "de.monticore.expressions.ExpressionsBasis";
include "$mp/com/google/common/base/Preconditions.class";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ mlc JavaClassExpressions {

promote {
mlc "de.monticore.expressions.CommonExpressions";
mlc "de.monticore.types.MCFullGenericTypes"
mlc "de.monticore.types.MCFullGenericTypes";
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.monticore.expressions;

mlc JavaClassExpressions {
mlc UglyExpressions {

//export the grammar
export "$projectDir/src/main/grammars" {
Expand All @@ -20,7 +20,7 @@ mlc JavaClassExpressions {
}

promote {
mlc "de.monticore.expressions.CommonExpressions";
mlc "de.monticore.types.MCBasicTypes"
mlc "de.monticore.expressions.ExpressionsBasis";
mlc "de.monticore.types.MCBasicTypes";
}
}

0 comments on commit b8c30be

Please sign in to comment.