1
0
mirror of https://github.com/Eyre-S/sekai-scores.git synced 2024-11-22 11:14:56 +08:00
sekai-scores/sekai-database/build.gradle
Eyre_S 7d503f3723
complete cli import song from sekai-master-db
- and added database struct can execute some postgres sekai database action
  - now can insert a Song (without its Difficulties)
  - now can search if a Song exists(by id)
  - added a SekaiDifficulties type struct targeting to database type
  - added a struct SekaiSongDifficulties.DatabaseStruct targeting to database its table struct
- added a class PostgresSession for manager a database action flow
  - and reforged PostgresConfig#connect() to implement it
2022-12-07 22:19:16 +08:00

51 lines
1004 B
Groovy

import java.nio.charset.Charset
import java.nio.charset.StandardCharsets
plugins {
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
compileOnly "com.github.spotbugs:spotbugs-annotations:${lib_spotbugs_v}"
implementation rootProject
testImplementation "org.junit.jupiter:junit-jupiter-api:${lib_junit_v}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${lib_junit_v}"
}
final JavaVersion proj_java = JavaVersion.VERSION_17
final Charset proj_source_encoding = StandardCharsets.UTF_8
group 'cc.sukazyo'
version projVersion
test {
useJUnitPlatform()
}
java {
sourceCompatibility proj_java
targetCompatibility proj_java
withSourcesJar()
}
tasks.withType(JavaCompile) {
options.encoding = proj_source_encoding.name()
}
tasks.withType(Javadoc) {
options.encoding = proj_source_encoding.name()
options.docEncoding = proj_source_encoding.name()
options.charSet = proj_source_encoding.name()
}