build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. group 'com.uas.platform.oos'
  2. version '1.0.1-SNAPSHOT'
  3. apply plugin: 'maven-publish'
  4. dependencies {
  5. //Apache Commons
  6. compile ("org.apache.commons:commons-lang3:3.5")
  7. compile ("commons-io:commons-io:2.5")
  8. compile "commons-logging:commons-logging:1.2"
  9. compile "com.fasterxml.jackson.core:jackson-core:2.8.1"
  10. compile "com.fasterxml.jackson.core:jackson-databind:2.8.1"
  11. compile 'com.amazonaws:aws-java-sdk:1.4.7'
  12. compile "org.springframework:spring-web:4.3.11.RELEASE"
  13. }
  14. javadoc {
  15. options {
  16. encoding "UTF-8"
  17. charSet "UTF-8"
  18. author true
  19. version true
  20. links "http://docs.oracle.com/javase/8/docs/api"
  21. }
  22. }
  23. // Package sources
  24. task sourceJar(type: Jar) {
  25. classifier "sources"
  26. from sourceSets.main.allJava
  27. }
  28. // Package javadoc
  29. task docJar(type: Jar, dependsOn: javadoc) {
  30. classifier "javadoc"
  31. from javadoc.destinationDir
  32. }
  33. publishing {
  34. publications {
  35. // Publish maven snapshot
  36. coreSnapshot(MavenPublication) {
  37. groupId project.group
  38. artifactId project.name
  39. version project.version
  40. from components.java
  41. artifact sourceJar
  42. artifact docJar
  43. }
  44. }
  45. repositories {
  46. maven {
  47. credentials {
  48. username "yingp"
  49. password "111111"
  50. }
  51. url "http://113.105.74.141:8081/artifactory/libs-snapshot-local"
  52. }
  53. }
  54. }