setup module build

main
Timo Bryant 2024-04-20 22:13:03 +02:00
parent 03f09d4a54
commit 2923c73b53
14 changed files with 56 additions and 7 deletions

View File

@ -1,7 +1,6 @@
@file:Suppress("UnstableApiUsage") @file:Suppress("UnstableApiUsage")
plugins { plugins {
alias(libs.plugins.jvm)
application application
kotlin("plugin.serialization") version embeddedKotlinVersion kotlin("plugin.serialization") version embeddedKotlinVersion
id("com.bmuschko.docker-java-application") version "9.4.0" id("com.bmuschko.docker-java-application") version "9.4.0"

7
build.gradle.kts Normal file
View File

@ -0,0 +1,7 @@
plugins {
alias(libs.plugins.kotlinx.serialization) version embeddedKotlinVersion
}
repositories {
mavenCentral()
}

11
buildSrc/build.gradle.kts Normal file
View File

@ -0,0 +1,11 @@
plugins {
`kotlin-dsl`
}
repositories {
gradlePluginPortal()
}
dependencies {
implementation(libs.gradle.kotlin.jvm)
}

View File

@ -0,0 +1,7 @@
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}

View File

@ -0,0 +1,8 @@
plugins {
`java-library`
kotlin("jvm")
}
repositories {
mavenCentral()
}

View File

@ -1,6 +1,5 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
org.gradle.parallel=true org.gradle.parallel=true
org.gradle.caching=true org.gradle.caching=true
group=de.itkl
version=1.0-PRE

View File

@ -5,6 +5,7 @@ logback-classic = "1.5.4"
slf4j = "2.0.12" slf4j = "2.0.12"
kotlin-logging = "6.0.4" kotlin-logging = "6.0.4"
kotlinx = "1.7.3" kotlinx = "1.7.3"
kotlin = "1.9.22"
[libraries] [libraries]
koin-core = {module = "io.insert-koin:koin-core", version.ref = "koin" } koin-core = {module = "io.insert-koin:koin-core", version.ref = "koin" }
@ -23,9 +24,12 @@ kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-c
ktor-server-content-negotation = { module = "io.ktor:ktor-server-content-negotiation", version.ref = "ktor" } ktor-server-content-negotation = { module = "io.ktor:ktor-server-content-negotiation", version.ref = "ktor" }
ktor-serialization-kotlinx-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor"} ktor-serialization-kotlinx-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor"}
#plugin-kotlinx-serialization = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin"}
gradle-kotlin-jvm = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin"}
[plugins] [plugins]
jvm = { id = "org.jetbrains.kotlin.jvm", version = "1.9.22" } jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin"}
[bundles] [bundles]
koin = [ koin = [

View File

@ -1 +0,0 @@
subprojects { }

View File

@ -0,0 +1,3 @@
dependencies {
implementation(project(":modules:ModuleCore"))
}

View File

@ -0,0 +1,5 @@
dependencies {
api(libs.bundles.koin)
api(libs.bundles.kotlinx)
api(libs.bundles.logging)
}

7
modules/build.gradle.kts Normal file
View File

@ -0,0 +1,7 @@
plugins {
`java-library`
}
subprojects {
apply(plugin = "module-convention")
}

View File

@ -15,4 +15,4 @@ fun includeDir(dir: String) {
rootProject.name = "xssak" rootProject.name = "xssak"
include("app") include("app")
includeDir("libraries") includeDir("modules")