mirror of
https://github.com/Eyre-S/sekai-scores.git
synced 2024-11-22 11:14:56 +08:00
add submodule sekai-scores-db, update build.gradle
This commit is contained in:
parent
ac9d0a0266
commit
a7622bf687
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,6 @@
|
||||
|
||||
.gradle
|
||||
.idea
|
||||
build
|
||||
|
||||
src/test/java/test/
|
||||
|
27
build.gradle
27
build.gradle
@ -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 {
|
||||
|
@ -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
|
||||
|
23
sekai-scores-db/build.gradle
Normal file
23
sekai-scores-db/build.gradle
Normal 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()
|
||||
}
|
4
sekai-scores-db/gradle.properties
Normal file
4
sekai-scores-db/gradle.properties
Normal file
@ -0,0 +1,4 @@
|
||||
## Project Configurations
|
||||
|
||||
# Proj Metadata
|
||||
moduleVersion = 0.1
|
@ -1,3 +1,4 @@
|
||||
rootProject.name = 'sekai-scores'
|
||||
include 'sekai-cli'
|
||||
include 'sekai-scores-db'
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
package cc.sukazyo.sekai_scores;
|
||||
|
||||
/**
|
||||
* 由于数据定义了好长所以数据定义被独立出来了,看下面的引用.
|
||||
* @see ScoreBaseData
|
||||
*/
|
||||
public class ScoreBase extends ScoreBaseData {
|
||||
|
@ -4,7 +4,6 @@ import javax.annotation.CheckForSigned;
|
||||
import javax.annotation.Nonnegative;
|
||||
|
||||
/**
|
||||
* 因为单写完数据感觉就太长了于是把数据模型独立出来了让本来的类里能好好写工具方法.
|
||||
* @see ScoreBase
|
||||
*/
|
||||
public class ScoreBaseData {
|
||||
|
Loading…
Reference in New Issue
Block a user