build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Capsule plugin
  2. plugins {
  3. id "us.kirchmeier.capsule" version "1.0.2"
  4. }
  5. apply plugin: 'java'
  6. sourceCompatibility = 1.8
  7. targetCompatibility = 1.8
  8. version = '0.2'
  9. ext.jacksonVer = '2.7.0'
  10. ext.quasarVer = '0.7.4'
  11. ext.comsatVer = '0.6.0'
  12. ext.capsuleVer = '1.0.1'
  13. [compileJava, compileTestJava]*.options*.encoding = "UTF-8"
  14. repositories {
  15. mavenCentral()
  16. maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
  17. // mavenLocal()
  18. }
  19. configurations {
  20. quasar
  21. }
  22. configurations.capsule.dependencies.clear()
  23. dependencies {
  24. compile "co.paralleluniverse:quasar-core:$quasarVer:jdk8"
  25. compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVer"
  26. compile "co.paralleluniverse:comsat-servlet:$comsatVer"
  27. compile "co.paralleluniverse:comsat-test-utils:$comsatVer"
  28. capsule "co.paralleluniverse:capsule:$capsuleVer"
  29. quasar "co.paralleluniverse:quasar-core:$quasarVer:jdk8"
  30. }
  31. task capsule(type: FatCapsule) {
  32. applicationClass "hello.HelloWebServer"
  33. capsuleManifest {
  34. javaAgents = [configurations.quasar.iterator().next().getName()]
  35. }
  36. }
  37. task wrapper(type: Wrapper) {
  38. gradleVersion = '2.11'
  39. }