summaryrefslogtreecommitdiff
path: root/opendc-format-sc18/build.gradle.kts
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2019-05-15 22:37:35 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2019-05-15 22:43:59 +0200
commit7c8a3fd217418c6f956a9315eb13c2a31a9f85a0 (patch)
treee10534cd58f4e2b9a568fbf14e56166fa7585863 /opendc-format-sc18/build.gradle.kts
parentb0b1577ace36022faec1a4ed0369f1c1271d5ccd (diff)
feat: Add initial version of OpenDC simulation model
This change adds the initial version of the port of the OpenDC simulation model to version 2.x of the simulator. The simulation model has been reworked to support immutability and event-driven simulation, with speed-ups up to 75x.
Diffstat (limited to 'opendc-format-sc18/build.gradle.kts')
-rw-r--r--opendc-format-sc18/build.gradle.kts50
1 files changed, 50 insertions, 0 deletions
diff --git a/opendc-format-sc18/build.gradle.kts b/opendc-format-sc18/build.gradle.kts
new file mode 100644
index 00000000..b656f4e3
--- /dev/null
+++ b/opendc-format-sc18/build.gradle.kts
@@ -0,0 +1,50 @@
+/*
+ * MIT License
+ *
+ * Copyright (c) 2018 atlarge-research
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+/* Build configuration */
+apply(from = "../gradle/kotlin.gradle")
+plugins {
+ `java-library`
+}
+
+/* Project configuration */
+repositories {
+ jcenter()
+}
+
+val junitJupiterVersion: String by extra
+val junitPlatformVersion: String by extra
+
+dependencies {
+ api(project(":opendc-core"))
+ api(project(":opendc-format"))
+ api(project(":opendc-workflows"))
+ api("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.8")
+ implementation(kotlin("stdlib"))
+ implementation(kotlin("reflect"))
+
+ testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
+ testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
+ testImplementation("org.junit.platform:junit-platform-launcher:$junitPlatformVersion")
+}