Enable database support in :engine
This commit is contained in:
@@ -48,6 +48,8 @@ dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
|
||||
implementation "org.slf4j:jul-to-slf4j:${slf4jVersion}"
|
||||
|
||||
// Database
|
||||
implementation "com.h2database:h2:${h2Version}"
|
||||
implementation "com.zaxxer:HikariCP:${hikariVersion}"
|
||||
}
|
||||
|
||||
@@ -11,8 +11,6 @@ class DataSource(dbFile: File) {
|
||||
|
||||
init {
|
||||
config.jdbcUrl = "jdbc:h2:file:${dbFile.absolutePath.replace("\\", "/")}"
|
||||
config.username = "root"
|
||||
config.password = ""
|
||||
source = HikariDataSource(config)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user