From 62895f71b7a7479652d9b86f7036b6580b40b7c7 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Mon, 18 Sep 2017 00:12:24 +0200 Subject: 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. --- opendc-core/build.gradle | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'opendc-core/build.gradle') 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" } -- cgit v1.2.3