Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
57 changes: 57 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="test" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
23 changes: 23 additions & 0 deletions .github/workflows/maven-java8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Java CI (Maven, Java 8)

on:
push:
branches: [ main, master, toscaCodeGen ]
pull_request:
branches: [ main, master, toscaCodeGen ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: ['8']
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn -B -DskipTests package
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
# Ignore everything in the target directory
ToscaDesigner/target/*
# But don't ignore these specific files
!ToscaDesigner/target/ToscaDesigner_0.0.00.jmdac
!ToscaDesigner/target/toscadesigner-0.0.00.jar
/target/
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
Expand All @@ -11,4 +11,4 @@ org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=disabled
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=11
org.eclipse.jdt.core.compiler.source=1.8
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
}
35 changes: 35 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
CONTRIBUTING

Development setup
-----------------
This repository builds a Modelio 5.4.1 module (ToscaDesigner) and requires Java 8 for runtime compatibility with Modelio.

Requirements
- Java 8 JDK (for running Modelio and for building modules targeting Modelio)
- Maven 3.6+

Build instructions
------------------
From the project root:

```powershell
mvn -B -DskipTests package
```

This produces `target/toscadesigner-<version>.jar` and `target/ToscaDesigner_<version>.jmdac`.

Notes
-----
- The project compiles with `maven-compiler-plugin` configured to `<release>8` to ensure bytecode compatibility with Modelio 5.4.1.
- The `MDAKit` dependency is provided by the Modelio runtime; it is declared with `scope=provided` in `pom.xml`.
- If you need to run checks that require the Modelio API, install Modelio and run integration steps inside its environment.

Contributing
------------
- Fork the repo and create a feature branch.
- Run the build locally and open a pull request.
- For major changes, open an issue first to discuss the design.

CI
--
A GitHub Actions workflow (maven-java8.yml) is included to build with Java 8 on push and pull requests.
Binary file added Generated TOSCA files/MobilityUseCase.csar
Binary file not shown.
17 changes: 17 additions & 0 deletions ToscaDesigner/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,22 @@
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
25 changes: 25 additions & 0 deletions ToscaDesigner/.github/workflows/maven-java8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Java CI (Maven, Java 8)

on:
push:
branches: [ main, master, toscaCodeGen ]
pull_request:
branches: [ main, master, toscaCodeGen ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# Use JDK 11 to run the Modelio Maven plugin (which requires Java 11),
# while the maven-compiler-plugin produces Java 8 bytecode (<release>8).
java: ['11']
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn -B -DskipTests package
1 change: 0 additions & 1 deletion ToscaDesigner/.gitignore

This file was deleted.

3 changes: 3 additions & 0 deletions ToscaDesigner/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
}
42 changes: 42 additions & 0 deletions ToscaDesigner/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
CONTRIBUTING

Development setup
-----------------
This repository builds a Modelio 5.4.1 module (ToscaDesigner) and requires Java 8 for runtime compatibility with Modelio.

Requirements
- Java 8 JDK (for running Modelio and for building modules targeting Modelio)
- Maven 3.6+

Build instructions
------------------
From the project root:

```powershell
mvn -B -DskipTests package
```

This produces `target/toscadesigner-<version>.jar` and `target/ToscaDesigner_<version>.jmdac`.

Notes
-----
- The project compiles with `maven-compiler-plugin` configured to `<release>8` to ensure bytecode compatibility with Modelio 5.4.1.
- The `MDAKit` dependency is provided by the Modelio runtime; it is declared with `scope=provided` in `pom.xml`.
- If you need to run checks that require the Modelio API, install Modelio and run integration steps inside its environment.

Contributing
------------
- Fork the repo and create a feature branch.
- Run the build locally and open a pull request.
- For major changes, open an issue first to discuss the design.

CI
--
A GitHub Actions workflow (`.github/workflows/maven-java8.yml`) is included. Note:

- The workflow runs Maven under Java 11 so Modelio-related Maven plugins (which require
a newer JDK) can execute. The project is still compiled to Java 8 bytecode via the
`maven-compiler-plugin` configuration (`<release>8`).

This preserves runtime compatibility with Modelio 5.4.1 while allowing plugin execution
that needs a newer JDK.
Binary file modified ToscaDesigner/Generated TOSCA files/MobilityUseCase.csar
Binary file not shown.
Loading
Loading