mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 16:49:11 +00:00
182de0330f
Refactors the test helpers to use receiver functions so multiple players can exist in the world per test case. The AddFriendsTest is an example of where this is needed. Additionally, Hamcrest has been replaced with AssertJ for fluent assertions.
44 lines
1.1 KiB
Groovy
44 lines
1.1 KiB
Groovy
description = 'Apollo Game'
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
|
classpath group: 'com.moandjiezana.toml', name: 'toml4j', version: '0.7.1'
|
|
}
|
|
}
|
|
|
|
ext.pluginsDir = "$projectDir/src/plugins"
|
|
|
|
apply plugin: 'kotlin'
|
|
apply from: 'plugins.gradle'
|
|
|
|
sourceSets {
|
|
main {
|
|
kotlin {
|
|
exclude 'stub.kt'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':cache')
|
|
compile project(':net')
|
|
compile project(':util')
|
|
|
|
compile group: 'io.github.lukehutch', name: 'fast-classpath-scanner', version: '2.0.21'
|
|
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jre8', version: "$kotlinVersion"
|
|
compile group: 'org.jetbrains.kotlin', name: 'kotlin-compiler-embeddable', version: "$kotlinVersion"
|
|
|
|
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.8.0'
|
|
}
|
|
|
|
task run(type: JavaExec, dependsOn: classes) {
|
|
main = 'org.apollo.Server'
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
jvmArgs = ['-Xmx1750M']
|
|
workingDir = "$rootDir"
|
|
} |