mirror of
https://github.com/Eyre-S/sekai-scores.git
synced 2024-11-23 03:27:41 +08:00
Eyre_S
e6cbab2d3c
- CLI add config read, from $HOME/.config/sekai-scores/sekai-scores.properties. - now it can read a pjsekai user id, and the sekai-scores database config - add a command `add` - it now can parse 9 params from args, or let user input them in cli, to build a basic score - it can echo the score, which looks just like the result score screen in game - now the sekai-cli build script supports 'application' implementation, and supports UTF-8 and uses spotbugs-annotations.
56 lines
1023 B
Groovy
56 lines
1023 B
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
|
|
|
|
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()
|
|
}
|