summaryrefslogtreecommitdiff
path: root/opendc-core/build.gradle
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-18 00:12:24 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-18 00:12:24 +0200
commit62895f71b7a7479652d9b86f7036b6580b40b7c7 (patch)
tree780dbb3ea34c957acd92453af6679ea47d5ce82a /opendc-core/build.gradle
parentc4816f18fa1ab4528a6966d636c3bfd7eac7b82a (diff)
Refactor and split up code base
This change splits up the current code base into three different module: - opendc-core - This module defines the API which you can use to write simulatable entities in a topology. - opendc-omega - This module is the reference implementation of the API defined the `opendc-core` module. - opendc-stdlib - This module provides a standard library of entities which can be used for datacenter simulation.
Diffstat (limited to 'opendc-core/build.gradle')
-rw-r--r--opendc-core/build.gradle19
1 files changed, 12 insertions, 7 deletions
diff --git a/opendc-core/build.gradle b/opendc-core/build.gradle
index bf71b63b..92cdb2c4 100644
--- a/opendc-core/build.gradle
+++ b/opendc-core/build.gradle
@@ -25,24 +25,24 @@
/* Build configuration */
buildscript {
ext.kotlin_version = '1.1.4-3'
+ ext.dokka_version = '0.9.15'
repositories {
mavenCentral()
+ jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-RC3'
}
}
-plugins {
- id 'java'
- id 'org.jetbrains.kotlin.jvm' version '1.1.4'
-}
-
-apply plugin: 'org.junit.platform.gradle.plugin'
+apply plugin: 'java'
apply plugin: 'kotlin'
+apply plugin: 'org.jetbrains.dokka'
+apply plugin: 'org.junit.platform.gradle.plugin'
compileKotlin {
kotlinOptions {
@@ -62,6 +62,11 @@ kotlin {
}
}
+dokka {
+ outputFormat = 'html'
+ outputDirectory = "$buildDir/javadoc"
+}
+
/* Project configuration */
group 'nl.atlarge.opendc'
version '1.0'
@@ -74,9 +79,9 @@ dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.18"
- compile "io.github.microutils:kotlin-logging:1.4.6"
testCompile "org.junit.jupiter:junit-jupiter-api:5.0.0-RC3"
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.0.0-RC3"
+ testCompile "org.junit.platform:junit-platform-launcher:1.0.0-RC3"
testCompile "org.slf4j:slf4j-simple:1.7.25"
}