build.gradle 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * This file was generated by the Gradle 'init' task.
  3. *
  4. * This generated file contains a sample Java Library project to get you started.
  5. * For more details take a look at the Java Libraries chapter in the Gradle
  6. * User Manual available at https://docs.gradle.org/6.3/userguide/java_library_plugin.html
  7. */
  8. plugins {
  9. id 'application'
  10. id "com.github.johnrengelman.shadow" version "6.1.0"
  11. }
  12. sourceCompatibility = 1.8
  13. targetCompatibility = 1.8
  14. // Set compiler to use UTF-8
  15. compileJava.options.encoding = 'UTF-8'
  16. compileTestJava.options.encoding = 'UTF-8'
  17. javadoc.options.encoding = 'UTF-8'
  18. tasks.withType(JavaCompile) {
  19. options.encoding = 'UTF-8'
  20. if (JavaVersion.current().isJava9Compatible()) {
  21. // TODO: Gradle 6.6
  22. // options.release = 8
  23. options.compilerArgs.addAll(['--release', '8'])
  24. }
  25. }
  26. tasks.withType(Test) {
  27. systemProperty('file.encoding', 'UTF-8')
  28. }
  29. tasks.withType(Javadoc) {
  30. options.encoding = 'UTF-8'
  31. }
  32. allprojects {
  33. repositories {
  34. // Use jcenter for resolving dependencies.
  35. // You can declare any Maven/Ivy/file repository here.
  36. jcenter()
  37. mavenCentral()
  38. }
  39. }
  40. dependencies {
  41. compile project(':slime-java-commons')
  42. // This dependency is exported to consumers, that is to say found on their compile classpath.
  43. compile 'org.apache.commons:commons-math3:3.6.1'
  44. compile 'org.yaml:snakeyaml:1.25'
  45. compile 'net.java.dev.jna:jna:5.6.0'
  46. compile 'net.java.dev.jna:jna-platform:5.6.0'
  47. compile 'com.illposed.osc:javaosc-core:0.8'
  48. compile 'com.fazecast:jSerialComm:[2.0.0,3.0.0)'
  49. compile 'com.google.protobuf:protobuf-java:3.17.3'
  50. compile "org.java-websocket:Java-WebSocket:1.5.1"
  51. compile 'com.melloware:jintellitype:1.4.0'
  52. // This dependency is used internally, and not exposed to consumers on their own compile classpath.
  53. implementation 'com.google.guava:guava:28.2-jre'
  54. // Use JUnit test framework
  55. testImplementation platform('org.junit:junit-bom:5.7.2')
  56. testImplementation 'org.junit.jupiter:junit-jupiter'
  57. testImplementation 'org.junit.platform:junit-platform-launcher'
  58. }
  59. test {
  60. useJUnitPlatform()
  61. }
  62. shadowJar {
  63. archiveBaseName.set('slimevr')
  64. archiveClassifier.set('')
  65. archiveVersion.set('')
  66. }
  67. application {
  68. mainClassName = 'io.eiren.vr.Main'
  69. }