Refactor package structure and update dependencies

Renamed package structure to `nl.astraeus.tmpl` for consistency and modified the repository name placeholder. Updated Kotlin and library dependencies, removed unused imports, and adjusted Gradle settings for better project clarity.
This commit is contained in:
2025-04-07 19:34:38 +02:00
parent e1e6f3c9ec
commit 934178f1c4
6 changed files with 13 additions and 15 deletions

View File

@@ -1,3 +1,3 @@
# Repo name # Repo name
settings.gradle.kts settings.gradle.kts
**.kt **.kt

View File

@@ -1,11 +1,9 @@
import org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerType
plugins { plugins {
kotlin("multiplatform") version "2.1.0" kotlin("multiplatform") version "2.1.10"
} }
group = "nl.astraeus" group = "nl.astraeus"
version = "1.0.0-SNAPSHOT" version = "0.1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
@@ -33,8 +31,6 @@ kotlin {
dependencies { dependencies {
api("nl.astraeus:kotlin-simple-logging:1.1.1") api("nl.astraeus:kotlin-simple-logging:1.1.1")
api("nl.astraeus:kotlin-css-generator:1.0.10") api("nl.astraeus:kotlin-css-generator:1.0.10")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.0")
} }
} }
val commonTest by getting val commonTest by getting
@@ -56,9 +52,9 @@ kotlin {
} }
val jsMain by getting { val jsMain by getting {
dependencies { dependencies {
implementation("nl.astraeus:kotlin-komponent:1.2.4") implementation("nl.astraeus:kotlin-komponent:1.2.5")
} }
} }
val jsTest by getting val jsTest by getting
} }
} }

View File

@@ -1,5 +1,5 @@
plugins { plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0" id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0"
} }
val REPO_NAME = "template" val REPO_NAME = "dummy so the gitea template compiles, please remove"
rootProject.name = "${REPO_NAME}" rootProject.name = "${REPO_NAME}"

View File

@@ -1,11 +1,13 @@
package tmpl package nl.astraeus.tmpl
import com.zaxxer.hikari.HikariConfig import com.zaxxer.hikari.HikariConfig
import nl.astraeus.logger.Logger import nl.astraeus.logger.Logger
import tmpl.db.Database import nl.astraeus.tmpl.db.Database
val log = Logger() val log = Logger()
val REPO_NAME = "dummy so the gitea template compiles, please remove"
fun main() { fun main() {
Thread.currentThread().uncaughtExceptionHandler = Thread.UncaughtExceptionHandler { t, e -> Thread.currentThread().uncaughtExceptionHandler = Thread.UncaughtExceptionHandler { t, e ->
log.warn(e) { log.warn(e) {

View File

@@ -1,4 +1,4 @@
package tmpl.db package nl.astraeus.tmpl.db
import com.zaxxer.hikari.HikariConfig import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource import com.zaxxer.hikari.HikariDataSource

View File

@@ -1,6 +1,6 @@
package tmpl.db package nl.astraeus.tmpl.db
import tmpl.log import nl.astraeus.tmpl.log
import java.sql.Connection import java.sql.Connection
import java.sql.SQLException import java.sql.SQLException
import java.sql.Timestamp import java.sql.Timestamp