mirror of
https://github.com/Eyre-S/sekai-scores.git
synced 2024-11-24 20:17:40 +08:00
Eyre_S
944b57c012
- added charset param in database import command - moved PostgresConfig to sekai-db proj - added dependency gson - added data_tool/sekai_master_db with a Music which can parse sekai-master-db musics.json and convert it to the Song object
61 lines
1.2 KiB
Groovy
61 lines
1.2 KiB
Groovy
import java.nio.charset.Charset
|
|
import java.nio.charset.StandardCharsets
|
|
|
|
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
|
|
compileOnly "com.github.spotbugs:spotbugs-annotations:${lib_spotbugs_v}"
|
|
|
|
implementation rootProject
|
|
implementation project(":sekai-meta")
|
|
implementation project(":sekai-database")
|
|
|
|
implementation "org.postgresql:postgresql:${lib_postgres_driver}"
|
|
implementation "com.google.code.gson:gson:${lib_gson}"
|
|
|
|
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 moduleVersion
|
|
|
|
application {
|
|
mainClass = "${group}.sekai_cli.ClientMain"
|
|
}
|
|
|
|
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()
|
|
}
|