Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. }
  6.  
  7. plugins {
  8. id 'com.github.sherter.google-java-format' version '0.3.2'
  9. }
  10.  
  11. apply plugin: 'java'
  12. apply plugin: 'maven'
  13.  
  14. googleJavaFormat {
  15. options style: 'AOSP'
  16. }
  17.  
  18. // Force code formatting
  19. compileJava.dependsOn tasks.googleJavaFormat
  20.  
  21. group 'uk.co.mattburns.pwinty'
  22. version '2.3.1'
  23.  
  24. sourceCompatibility = JavaVersion.VERSION_1_7
  25. targetCompatibility = JavaVersion.VERSION_1_7
  26.  
  27. jar {
  28. manifest {
  29. attributes 'Implementation-Title': 'pwinty-java-sdk',
  30. 'Implementation-Version': version
  31. }
  32. }
  33.  
  34. repositories {
  35. mavenCentral()
  36. }
  37.  
  38. dependencies {
  39. compile 'joda-time:joda-time:2.7'
  40. compile 'com.sun.jersey:jersey-core:1.17'
  41. compile 'com.sun.jersey:jersey-server:1.17'
  42. compile 'com.sun.jersey:jersey-client:1.17'
  43. compile 'com.sun.jersey:jersey-servlet:1.17'
  44. compile 'com.sun.jersey.contribs:jersey-multipart:1.17'
  45.  
  46. compile 'com.google.code.gson:gson:2.3'
  47.  
  48. testCompile 'junit:junit:4.+'
  49.  
  50. }
  51.  
  52. test {
  53. testLogging {
  54. events "passed", "skipped", "failed"
  55. }
  56.  
  57. // This prevents SecureRandom from causing very slow tests.
  58. // Another solution is to change $JAVA_HOME/jre/lib/security/java.security. Replace securerandom.source with securerandom.source=file:/dev/./urandom.
  59. // systemProperty "java.security.egd", "file:/dev/./urandom"
  60. // systemProperty "PWINTY_MERCHANT_ID_SANDBOX", "${PWINTY_MERCHANT_ID_SANDBOX}"
  61. // systemProperty "PWINTY_MERCHANT_KEY_SANDBOX", "${PWINTY_MERCHANT_KEY_SANDBOX}"
  62. // systemProperty "PWINTY_MERCHANT_ID_LIVE", "${PWINTY_MERCHANT_ID_LIVE}"
  63. // systemProperty "PWINTY_MERCHANT_KEY_LIVE", "${PWINTY_MERCHANT_KEY_LIVE}"
  64. }
  65.  
  66. // custom tasks for creating source/javadoc jars
  67. task sourcesJar(type: Jar, dependsOn:classes) {
  68. classifier = 'sources'
  69. from sourceSets.main.allSource
  70. }
  71.  
  72. //task javadocJar(type: Jar, dependsOn:javadoc) {
  73. // classifier = 'javadoc'
  74. // from javadoc.destinationDir
  75. //}
  76.  
  77. // add javadoc/source jar tasks as artifacts
  78. artifacts {
  79. archives sourcesJar
  80. // archives javadocJar
  81. }
  82.  
  83. //uploadArchives {
  84. // repositories {
  85. // mavenDeployer {
  86. // repository(
  87. // url: "${nexusUrl}/content/repositories/releases") {
  88. // authentication(userName: nexusUsername, password: nexusPassword)
  89. // }
  90. // snapshotRepository(
  91. // url: "${nexusUrl}/content/repositories/snapshots") {
  92. // authentication(userName: nexusUsername, password: nexusPassword)
  93. // }
  94. // }
  95. // }
  96. //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement