build.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. plugins {
  2. id "application"
  3. id "java"
  4. }
  5. group "org.openrsc"
  6. version "1.0-SNAPSHOT"
  7. application {
  8. mainClassName = "com.openrsc.server.Server"
  9. applicationDefaultJvmArgs = ['-DcoloredLogging=true','-Dconf=default']
  10. }
  11. repositories {
  12. mavenCentral()
  13. maven {
  14. url = uri("https://repo.spring.io/libs-release/")
  15. }
  16. }
  17. sourceSets {
  18. main {
  19. java {
  20. srcDirs "src"
  21. srcDirs "plugins"
  22. }
  23. }
  24. }
  25. dependencies {
  26. // Only available on jcenter which is due to be shutdown, reference locally
  27. implementation files("lib/JDA-4.0.0_55-withDependencies.jar")
  28. // Discord
  29. implementation "com.vdurmont:emoji-java:4.0.0"
  30. implementation "org.gitlab4j:gitlab4j-api:4.12.17"
  31. // Others
  32. implementation group: 'mysql', name: 'mysql-connector-java', version: '5.1.40'
  33. // implementation "org.mariadb.jdbc:mariadb-java-client:2.1.2"
  34. implementation "org.xerial:sqlite-jdbc:3.34.0"
  35. implementation "com.thoughtworks.xstream:xstream:1.4.9"
  36. implementation "com.lmax:disruptor:3.3.11"
  37. implementation "org.apache.commons:commons-collections4:4.0"
  38. implementation "org.apache.commons:commons-lang3:3.12.0"
  39. implementation "org.apache.commons:commons-compress:1.18"
  40. implementation "commons-lang:commons-lang:2.6"
  41. implementation("org.apache.logging.log4j:log4j-api:2.17.0")
  42. implementation("org.apache.logging.log4j:log4j-core:2.17.0")
  43. implementation("org.apache.logging.log4j:log4j-iostreams:2.17.0")
  44. implementation("org.apache.logging.log4j:log4j-slf4j-impl:2.17.0")
  45. implementation("org.json:json:20190722")
  46. implementation("commons-codec:commons-codec:1.14")
  47. implementation("xpp3:xpp3:1.1.4c")
  48. implementation("com.google.guava:guava:30.1.1-jre")
  49. implementation("com.google.inject:guice:5.0.1")
  50. implementation("io.netty:netty-all:4.1.107.Final")
  51. testImplementation "org.junit.jupiter:junit-jupiter-api:5.6.0"
  52. testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
  53. }
  54. ant.importBuild("build.xml")
  55. run {
  56. dependsOn compile_plugins
  57. }
  58. test {
  59. useJUnitPlatform()
  60. }