build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. plugins {
  2. id 'java'
  3. id 'idea'
  4. id 'org.jetbrains.kotlin.jvm' version '1.2.71'
  5. id 'org.jetbrains.kotlin.kapt' version '1.2.71'
  6. id 'witness'
  7. }
  8. apply from: 'witness.gradle'
  9. sourceCompatibility = 1.8
  10. targetCompatibility = 1.8
  11. dependencies {
  12. implementation project(path: ':briar-core', configuration: 'default')
  13. implementation project(path: ':bramble-java', configuration: 'default')
  14. implementation 'io.javalin:javalin:2.4.0'
  15. implementation 'org.slf4j:slf4j-simple:1.7.25'
  16. implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.7'
  17. implementation 'com.github.ajalt:clikt:1.5.0'
  18. kapt 'com.google.dagger:dagger-compiler:2.19'
  19. testImplementation project(path: ':bramble-api', configuration: 'testOutput')
  20. testImplementation project(path: ':bramble-core', configuration: 'testOutput')
  21. def junitVersion = '5.3.1'
  22. testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
  23. testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
  24. testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
  25. testImplementation "io.mockk:mockk:1.8.12"
  26. testImplementation "org.skyscreamer:jsonassert:1.5.0"
  27. }
  28. jar {
  29. manifest {
  30. attributes(
  31. 'Main-Class': 'org.briarproject.briar.headless.MainKt'
  32. )
  33. }
  34. from {
  35. configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
  36. }
  37. }
  38. // At the moment for non-Android projects we need to explicitly mark the code generated by kapt
  39. // as 'generated source code' for correct highlighting and resolve in IDE.
  40. idea {
  41. module {
  42. sourceDirs += file('build/generated/source/kapt/main')
  43. generatedSourceDirs += file('build/generated/source/kapt/main')
  44. }
  45. }
  46. test {
  47. useJUnitPlatform()
  48. testLogging {
  49. events "passed", "skipped", "failed"
  50. }
  51. }