Advertisement
Guest User

ashish

a guest
Mar 21st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. group 'tech.blueglacier'
  2. version '1.0.1'
  3.  
  4. apply plugin: 'java'
  5.  
  6. sourceCompatibility = 1.8
  7.  
  8. repositories {
  9. mavenCentral()
  10. }
  11.  
  12. dependencies {
  13. compile([group: 'org.mockito', name: 'mockito-all', version: '1.10.19'],
  14. [group: 'javax.mail', name: 'mail', version: '1.4.7'],
  15. [group: 'net.freeutils', name: 'jcharset', version: '2.0'],
  16. [group: 'org.apache.james', name: 'apache-mime4j', version: '0.8.0'],
  17. [group: 'commons-codec', name: 'commons-codec', version: '1.10'],
  18. [group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'],
  19. [group: 'commons-io', name: 'commons-io', version: '2.5'],
  20. [group: 'commons-configuration', name: 'commons-configuration', version: '1.10'],
  21. [group: 'ch.qos.logback', name: 'logback-core', version: '1.2.1'],
  22. [group: 'org.slf4j', name: 'slf4j-api', version: '1.7.24'],
  23. [group: 'commons-collections', name: 'commons-collections', version: '3.2.2']
  24. )
  25. testCompile group: 'org.testng', name: 'testng', version: '6.11'
  26. }
  27.  
  28. test {
  29. useTestNG()
  30. testLogging.showCauses = true;
  31. testLogging.showExceptions = true;
  32. testLogging.showStackTraces = true;
  33. testLogging.showStandardStreams = true;
  34. testLogging.exceptionFormat = 'full';
  35. testLogging.events "started", "passed", "skipped", "failed", "standardOut", "standardError";
  36. }
  37.  
  38.  
  39.  
  40. apply plugin: 'maven'
  41.  
  42. task createPom << {
  43. pom {
  44. project {
  45. groupId 'tech.blueglacier'
  46. artifactId 'email-mime-parser'
  47. version '1.0.1'
  48.  
  49. inceptionYear '2016'
  50. licenses {
  51. license {
  52. name 'The MIT License (MIT)'
  53. url 'https://opensource.org/licenses/MIT'
  54. }
  55. }
  56. }
  57. }.writeTo("pom.xml")
  58. }
  59.  
  60. apply plugin: 'maven'
  61. apply plugin: 'signing'
  62.  
  63. task javadocJar(type: Jar) {
  64. classifier = 'javadoc'
  65. from javadoc
  66. }
  67.  
  68. task sourcesJar(type: Jar) {
  69. classifier = 'sources'
  70. from sourceSets.main.allSource
  71. }
  72.  
  73. artifacts {
  74. archives javadocJar, sourcesJar
  75. }
  76.  
  77. signing {
  78. sign configurations.archives
  79. }
  80.  
  81. uploadArchives {
  82. repositories {
  83. mavenDeployer {
  84. beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
  85.  
  86.  
  87. snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
  88. authentication(userName: ossrhUsername, password: ossrhPassword)
  89. }
  90. repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
  91. authentication(userName: ossrhUsername, password: ossrhPassword)
  92. }
  93.  
  94. pom.project {
  95. groupId 'tech.blueglacier'
  96. artifactId 'email-mime-parser'
  97. version '1.0.1'
  98. name 'email-mime-parser'
  99. packaging 'jar'
  100. // optionally artifactId can be defined here
  101. description 'A mime4j based simplified email mime parser for java'
  102. url 'https://github.com/ram-sharma-6453/email-mime-parser'
  103.  
  104. scm {
  105. connection 'https://github.com/ram-sharma-6453/email-mime-parser.git'
  106. developerConnection 'https://github.com/ram-sharma-6453/email-mime-parser.git'
  107. url 'https://github.com/ram-sharma-6453/email-mime-parser'
  108. }
  109.  
  110. licenses {
  111. license {
  112. name 'The MIT License (MIT)'
  113. url 'https://opensource.org/licenses/MIT'
  114. }
  115. }
  116.  
  117. developers {
  118. developer {
  119. id 'ram-sharma-6453'
  120. name 'ram-sharma-6453'
  121. email 'ram.sharma.6453@gmail.com'
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement