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:
@@ -1,3 +1,3 @@
|
||||
# Repo name
|
||||
settings.gradle.kts
|
||||
**.kt
|
||||
**.kt
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerType
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform") version "2.1.0"
|
||||
kotlin("multiplatform") version "2.1.10"
|
||||
}
|
||||
|
||||
group = "nl.astraeus"
|
||||
version = "1.0.0-SNAPSHOT"
|
||||
version = "0.1.0-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -33,8 +31,6 @@ kotlin {
|
||||
dependencies {
|
||||
api("nl.astraeus:kotlin-simple-logging:1.1.1")
|
||||
api("nl.astraeus:kotlin-css-generator:1.0.10")
|
||||
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.0")
|
||||
}
|
||||
}
|
||||
val commonTest by getting
|
||||
@@ -56,9 +52,9 @@ kotlin {
|
||||
}
|
||||
val jsMain by getting {
|
||||
dependencies {
|
||||
implementation("nl.astraeus:kotlin-komponent:1.2.4")
|
||||
implementation("nl.astraeus:kotlin-komponent:1.2.5")
|
||||
}
|
||||
}
|
||||
val jsTest by getting
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
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}"
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
package tmpl
|
||||
package nl.astraeus.tmpl
|
||||
|
||||
import com.zaxxer.hikari.HikariConfig
|
||||
import nl.astraeus.logger.Logger
|
||||
import tmpl.db.Database
|
||||
import nl.astraeus.tmpl.db.Database
|
||||
|
||||
val log = Logger()
|
||||
|
||||
val REPO_NAME = "dummy so the gitea template compiles, please remove"
|
||||
|
||||
fun main() {
|
||||
Thread.currentThread().uncaughtExceptionHandler = Thread.UncaughtExceptionHandler { t, e ->
|
||||
log.warn(e) {
|
||||
@@ -1,4 +1,4 @@
|
||||
package tmpl.db
|
||||
package nl.astraeus.tmpl.db
|
||||
|
||||
import com.zaxxer.hikari.HikariConfig
|
||||
import com.zaxxer.hikari.HikariDataSource
|
||||
@@ -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.SQLException
|
||||
import java.sql.Timestamp
|
||||
Reference in New Issue
Block a user