1
0
mirror of https://github.com/Eyre-S/sekai-scores.git synced 2024-11-25 04:27:43 +08:00

add submodule sekai-scores-db, update build.gradle

This commit is contained in:
A.C.Sukazyo Eyre 2022-11-17 17:22:51 +08:00
parent ac9d0a0266
commit a7622bf687
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
8 changed files with 52 additions and 9 deletions

2
.gitignore vendored
View File

@ -1,4 +1,6 @@
.gradle
.idea
build
src/test/java/test/

View File

@ -1,14 +1,13 @@
import java.nio.charset.Charset
import java.nio.charset.StandardCharsets
plugins {
id 'java'
id 'maven-publish'
}
group 'cc.sukazyo'
version projVersion
repositories {
mavenCentral()
maven { name '-ws'; url 'https://mvn.sukazyo.cc/releases' }
}
dependencies {
@ -21,19 +20,35 @@ dependencies {
}
final JavaVersion proj_java = JavaVersion.VERSION_17
final Charset proj_source_encoding = StandardCharsets.UTF_8
group 'cc.sukazyo'
version projVersion
test {
useJUnitPlatform()
}
java {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
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()
}
publishing {
repositories{
maven {

View File

@ -6,4 +6,4 @@ projVersion = 0.1
# Dependencies
lib_junit_v = 5.9.0
lib_spotbugs_v = 4.7.2
lib_spotbugs_v = 4.7.3

View File

@ -0,0 +1,23 @@
plugins {
id 'java'
}
group 'cc.sukazyo'
version moduleVersion
repositories {
mavenCentral()
}
dependencies {
implementation rootProject
testImplementation "org.junit.jupiter:junit-jupiter-api:${lib_junit_v}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${lib_junit_v}"
}
test {
useJUnitPlatform()
}

View File

@ -0,0 +1,4 @@
## Project Configurations
# Proj Metadata
moduleVersion = 0.1

View File

@ -1,3 +1,4 @@
rootProject.name = 'sekai-scores'
include 'sekai-cli'
include 'sekai-scores-db'

View File

@ -1,7 +1,6 @@
package cc.sukazyo.sekai_scores;
/**
* 由于数据定义了好长所以数据定义被独立出来了看下面的引用.
* @see ScoreBaseData
*/
public class ScoreBase extends ScoreBaseData {

View File

@ -4,7 +4,6 @@ import javax.annotation.CheckForSigned;
import javax.annotation.Nonnegative;
/**
* 因为单写完数据感觉就太长了于是把数据模型独立出来了让本来的类里能好好写工具方法.
* @see ScoreBase
*/
public class ScoreBaseData {