fb98015536
GE should now favor the buy offer if it's newer than the paired sell offer (buyer gets GP back) GE should now favor the sell offer if it's newer than the paired buy offer (buyer does NOT get gp back) GE should now always award bot offers to the highest bidder
62 lines
1.5 KiB
Groovy
62 lines
1.5 KiB
Groovy
apply plugin: 'application'
|
|
|
|
|
|
archivesBaseName = 'server'
|
|
|
|
mainClassName = 'rs09.Server'
|
|
|
|
compileJava {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11
|
|
freeCompilerArgs += '-XXLanguage:-NewInference'
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.5.20'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2'
|
|
implementation group: 'com.moandjiezana.toml', name: 'toml4j', version: '0.7.2'
|
|
|
|
//Unit Tests
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
|
|
|
|
implementation files(
|
|
"libs/PrimitiveExtensions-1.0.jar",
|
|
"libs/ConstLib-1.4.jar",
|
|
"libs/json-simple-1.1.1.jar",
|
|
"libs/markdown-jvm-0.2.4.jar",
|
|
"libs/classgraph-4.8.98.jar",
|
|
"libs/mysql-connector-java-8.0.21.jar",
|
|
"libs/mordant-jvm-2.0.0-alpha2.jar",
|
|
"libs/colormath-jvm-2.0.0.jar",
|
|
"libs/sqlite-jdbc.jar"
|
|
)
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
dependsOn cleanTest
|
|
testLogging.showStandardStreams = true
|
|
}
|
|
|
|
/*sourceSets {
|
|
main.java.srcDirs = ['src/main/java']
|
|
main.kotlin.srcDirs = ['src/main/kotlin']
|
|
}*/
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'rs09.Server'
|
|
}
|
|
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
}
|