Skip to content

Commit

Permalink
1.0.76 (#81)
Browse files Browse the repository at this point in the history
* 1.0.76

* Update ApplicationServices.kt
  • Loading branch information
acharneski authored Jun 4, 2024
1 parent de2b718 commit b34de97
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ val hsqldb_version = "2.7.2"

dependencies {

implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.57")
implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.60")
implementation(group = "org.hsqldb", name = "hsqldb", version = hsqldb_version)

implementation("org.apache.commons:commons-text:1.11.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ interface AuthenticationInterface {

fun putUser(accessToken: String, user: User): User
fun logout(accessToken: String, user: User)
//fun removeToken(accessToken: String)

companion object {
const val AUTH_COOKIE = "sessionId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ import java.util.concurrent.atomic.AtomicInteger

class HSQLUsageManager(private val dbFile: File) : UsageInterface {

private val connection: Connection
private val logger: Logger = LoggerFactory.getLogger(HSQLUsageManager::class.java)

init {
private val connection: Connection by lazy {
logger.info("Initializing HSQLUsageManager with database file: ${dbFile.absolutePath}")
Class.forName("org.hsqldb.jdbc.JDBCDriver")
connection = DriverManager.getConnection("jdbc:hsqldb:file:${dbFile.absolutePath};shutdown=true", "SA", "")
val connection = DriverManager.getConnection("jdbc:hsqldb:file:${dbFile.absolutePath};shutdown=true", "SA", "")
logger.debug("Database connection established: $connection")
createSchema()
createSchema(connection)
connection
}
private val logger: Logger = LoggerFactory.getLogger(HSQLUsageManager::class.java)

private fun createSchema() {
private fun createSchema(connection: Connection) {
logger.info("Creating database schema if not exists")
connection.createStatement().executeUpdate(
"""
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Gradle Releases -> https://github.com/gradle/gradle/releases
libraryGroup = com.simiacryptus.skyenet
libraryVersion = 1.0.75
libraryVersion = 1.0.76
gradleVersion = 7.6.1
2 changes: 1 addition & 1 deletion webui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ val jetty_version = "11.0.18"
val jackson_version = "2.17.0"
dependencies {

implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.57")
implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.60")

implementation(project(":core"))
implementation(project(":kotlin"))
Expand Down

0 comments on commit b34de97

Please sign in to comment.