Skip to content

Commit

Permalink
Using viarta gradle plugin to sidestep conflict of multiple versions …
Browse files Browse the repository at this point in the history
…of the UML EPackage in the editor.

GH-12
  • Loading branch information
kkadosa committed Nov 10, 2020
1 parent 890e3ca commit 4c68ab2
Show file tree
Hide file tree
Showing 55 changed files with 62 additions and 26,869 deletions.
1 change: 1 addition & 0 deletions com.incquerylabs.magicdraw.benchmark/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/target/
/build/
/.gradle/
/src/generated/vql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BuilderConfiguration.is_project_specific=true
autobuilding=true
autobuilding=false
eclipse.preferences.version=1
generateEclipseExtensions=false
generateGeneratedAnnotation=false
Expand All @@ -9,6 +9,7 @@ generateMatchers=NESTED_CLASS
generateSuppressWarnings=true
generatedAnnotationComment=
includeDateInGenerated=false
org.eclipse.viatra.query.patternlanguage.emf.EMFPatternLanguage.useProjectSettings=true
outlet.DEFAULT_OUTPUT.cleanDirectory=false
outlet.DEFAULT_OUTPUT.cleanupDerived=false
outlet.DEFAULT_OUTPUT.createDirectory=true
Expand All @@ -27,4 +28,3 @@ outlet.DEFAULT_OUTPUT.sourceFolder.xtend-gen.ignore=
outlet.DEFAULT_OUTPUT.userOutputPerSourceFolder=
targetJavaVersion=JAVA5
useJavaCompilerCompliance=true

7 changes: 7 additions & 0 deletions com.incquerylabs.magicdraw.benchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import java.util.zip.ZipFile

plugins {
id "org.xtext.xtend" version "2.0.2"
id "viatra-gradle-plugin" version "2.5.0-SNAPSHOT"
}

xtext.version = xtextVersion
Expand All @@ -29,6 +30,12 @@ String[] classpathLibraries = [

// Apply the java-library plugin to add support for Java Library

vql {
packageClassNames('com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage')
inputDirectory.set(file('src/main/java'))
outputDirectory.set(file('src/generated/vql'))
}

apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'java'
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
18 changes: 17 additions & 1 deletion com.incquerylabs.magicdraw.benchmark/gradlew
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env sh

#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

##############################################################################
##
## Gradle start up script for UN*X
Expand Down Expand Up @@ -28,7 +44,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
Expand Down
18 changes: 17 additions & 1 deletion com.incquerylabs.magicdraw.benchmark/gradlew.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
Expand All @@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
Expand Down
33 changes: 17 additions & 16 deletions com.incquerylabs.magicdraw.benchmark/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/*
* This settings file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
* In a single project build this file can be empty or even removed.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user guide at https://docs.gradle.org/4.3/userguide/multi_project_builds.html
*/

/*
// To declare projects as part of a multi-project build use the 'include' method
include 'shared'
include 'api'
include 'services:webservice'
*/
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven {
url("https://repo.eclipse.org/content/groups/viatra/")
}
maven {
url "https://build.incquerylabs.com/nexus/repository/gradle-plugins"
credentials {
username = "$nexusUsername"
password = "$nexusPassword"
}
}
mavenLocal()
}
}

rootProject.name = 'com.incquerylabs.magicdraw.benchmark'
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4c68ab2

Please sign in to comment.