mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Convert to the gradle build system
Ports the Maven build POMs to Gradle build scripts, which are a bit friendlier to use. Instead of using the exec:java Maven goal to run the server now, the gradle run task should be used.
This commit is contained in:
+1
-1
@@ -14,4 +14,4 @@
|
|||||||
/data/savedGames
|
/data/savedGames
|
||||||
/lib/
|
/lib/
|
||||||
*/target/
|
*/target/
|
||||||
|
*/build/
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
allprojects {
|
||||||
|
group = 'apollo'
|
||||||
|
version = '0.0.1'
|
||||||
|
apply plugin: 'java'
|
||||||
|
}
|
||||||
|
|
||||||
|
subprojects {
|
||||||
|
sourceCompatibility = 1.8
|
||||||
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
maven { url "https://repo.maven.apache.org/maven2" }
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile group: 'org.apache.commons', name: 'commons-compress', version: '1.10'
|
||||||
|
compile group: 'org.jruby', name: 'jruby-complete', version: '9.0.5.0'
|
||||||
|
compile group: 'com.google.guava', name: 'guava', version: '19.0'
|
||||||
|
compile group: 'io.netty', name: 'netty-all', version: '4.0.34.Final'
|
||||||
|
compile group: 'com.lambdaworks', name: 'scrypt', version: '1.4.0'
|
||||||
|
compile group: 'com.mchange', name: 'c3p0', version: '0.9.5.2'
|
||||||
|
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.54'
|
||||||
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||||||
|
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.4'
|
||||||
|
testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.4'
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main {
|
||||||
|
java {
|
||||||
|
srcDirs = ['src/main']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
java {
|
||||||
|
srcDirs = ['src/test']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
task(run, dependsOn: classes, type: JavaExec) {
|
||||||
|
def gameSubproject = project(':game')
|
||||||
|
def gameClasspath = gameSubproject.sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
main = 'org.apollo.Server'
|
||||||
|
classpath = gameClasspath
|
||||||
|
jvmArgs = ['-Xmx750M']
|
||||||
|
}
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
description = 'Apollo Cache'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile project(':util')
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
description = 'Apollo Game'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile project(':cache')
|
||||||
|
compile project(':net')
|
||||||
|
compile project(':util')
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
description = 'Apollo Net'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile project(':cache')
|
||||||
|
compile project(':util')
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
rootProject.name = 'org.apollo'
|
||||||
|
include ':cache'
|
||||||
|
include ':game'
|
||||||
|
include ':net'
|
||||||
|
include ':util'
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
description = 'Apollo Utilities'
|
||||||
Reference in New Issue
Block a user