diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 76e2236cfe2089f822e9e14f5dcfa92211e3633f..d825ad6c20b5b4a90ba23cfe17c3a6c55775a21f 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -12,6 +12,7 @@ <option value="$PROJECT_DIR$" /> <option value="$PROJECT_DIR$/app" /> <option value="$PROJECT_DIR$/buildSrc" /> + <option value="$PROJECT_DIR$/console" /> <option value="$PROJECT_DIR$/list" /> <option value="$PROJECT_DIR$/utilities" /> </set> diff --git a/console/build.gradle b/console/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..f66a3e64f0e9aa7865f8deeabff1a53024a3e80a --- /dev/null +++ b/console/build.gradle @@ -0,0 +1,17 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + id 'notes.multi.kotlin-application-conventions' +} + +dependencies { + implementation 'org.apache.commons:commons-text' + implementation project(':utilities') +} + +application { + // Define the main class for the application. + mainClass = 'notes.multi.console.Console.kt' +} diff --git a/console/src/main/kotlin/notes/multi/console/Console.kt b/console/src/main/kotlin/notes/multi/console/Console.kt new file mode 100644 index 0000000000000000000000000000000000000000..69999493959ad8c9ff8ac57ffd84e65d44193a4f --- /dev/null +++ b/console/src/main/kotlin/notes/multi/console/Console.kt @@ -0,0 +1,12 @@ +/* + * This Kotlin source file was generated by the Gradle 'init' task. + */ +package notes.multi.console + +import notes.multi.utilities.StringUtils + +import org.apache.commons.text.WordUtils + +fun main() { + println("this is multi setup") +} diff --git a/console/src/main/kotlin/notes/multi/console/MessageUtils.kt b/console/src/main/kotlin/notes/multi/console/MessageUtils.kt new file mode 100644 index 0000000000000000000000000000000000000000..0cca4da0cf6c078ca2eb03be51a13f2cf35d2622 --- /dev/null +++ b/console/src/main/kotlin/notes/multi/console/MessageUtils.kt @@ -0,0 +1,10 @@ +/* + * This Kotlin source file was generated by the Gradle 'init' task. + */ +package notes.multi.app + +class MessageUtils { + companion object { + fun getMessage(): String = "Hello World!" + } +} diff --git a/console/src/test/kotlin/notes/multi/app/MessageUtilsTest.kt b/console/src/test/kotlin/notes/multi/app/MessageUtilsTest.kt new file mode 100644 index 0000000000000000000000000000000000000000..1c2621ad238dffb1b981dbcb0e7b76e36cb7a663 --- /dev/null +++ b/console/src/test/kotlin/notes/multi/app/MessageUtilsTest.kt @@ -0,0 +1,14 @@ +/* + * This Kotlin source file was generated by the Gradle "init" task. + */ +package notes.multi.app + +import org.junit.jupiter.api.Test + +import org.junit.jupiter.api.Assertions.assertEquals + +class MessageUtilsTest { + @Test fun testGetMessage() { + assertEquals("Hello World!", MessageUtils.getMessage()) + } +} diff --git a/settings.gradle b/settings.gradle index 7ac2f7eaf4ac48ff5281a3fe73a6c10868bd7454..ec950590465023d2c78787058be62d6460463f58 100644 --- a/settings.gradle +++ b/settings.gradle @@ -8,4 +8,4 @@ */ rootProject.name = 'notes-multi' -include('app', 'list', 'utilities') +include('app', 'list', 'utilities', 'console')