Commit 663facec authored by Christian Meyer's avatar Christian Meyer
Browse files

dependencies on simulation projects are added to launcher project

    to be able to run the launcher and simulations via gradle run

ZmtLaunchConfigPlugin, ZmtLaunchPlugin.java
    moved adding project dependency to launcher project
        from ZmtLaunchConfigPlugin to ZmtLaunchPlugin
parent a182e761
...@@ -48,16 +48,6 @@ class ZmtLaunchConfigPlugin implements Plugin<Project> { ...@@ -48,16 +48,6 @@ class ZmtLaunchConfigPlugin implements Plugin<Project> {
* @param launcherProject the launcher project * @param launcherProject the launcher project
*/ */
private static void addDependencies(Project project, Project launcherProject) { private static void addDependencies(Project project, Project launcherProject) {
/* add runtime dependency for this project in launcher
* (if available) to make it executable in eclipse */
launcherProject?.afterEvaluate {
launcherProject.dependencies {
runtime(project) {
transitive = false
}
}
}
/* If launcher project is not available a runtime dependency /* If launcher project is not available a runtime dependency
* for launcher is added to this project. */ * for launcher is added to this project. */
if (launcherProject == null) { if (launcherProject == null) {
......
...@@ -51,6 +51,12 @@ public class ZmtLaunchPlugin implements Plugin<Project> { ...@@ -51,6 +51,12 @@ public class ZmtLaunchPlugin implements Plugin<Project> {
exclude('*sources*.jar') exclude('*sources*.jar')
}) })
} }
/* add runtime dependency for this project in launcher
* (if available) to make it executable */
launcherProject.dependencies {
runtime(project)
}
} }
} }
// the launcher project is not present // the launcher project is not present
......
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