Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. grails.project.repos.default = "ABC"
  2. grails.project.repos.ABC.url = "https://url_to_our_mvn"
  3. grails.project.repos.ABC.type = "maven"
  4. grails.project.repos.ABC.username = "auth_user"
  5. grails.project.repos.ABC.password = "auth_password"
  6. grails.project.repos.ABC.protocol = "webdav"
  7.  
  8. [me@machine]$ /path/to/grails-3.0.4/bin/grails publish-plugin
  9. :generatePomFileForMavenPublication
  10. :compileAstJava UP-TO-DATE
  11. :compileAstGroovy UP-TO-DATE
  12. :processAstResources UP-TO-DATE
  13. :astClasses UP-TO-DATE
  14. :compileJava UP-TO-DATE
  15. :configScript UP-TO-DATE
  16. :compileGroovy UP-TO-DATE
  17. :copyAstClasses UP-TO-DATE
  18. :copyAssets UP-TO-DATE
  19. :copyCommands UP-TO-DATE
  20. :copyTemplates UP-TO-DATE
  21. :processResources UP-TO-DATE
  22. :classes UP-TO-DATE
  23. :jar UP-TO-DATE
  24. :groovydoc UP-TO-DATE
  25. :javadoc UP-TO-DATE
  26. :javadocJar UP-TO-DATE
  27. :sourcesJar UP-TO-DATE
  28. :publishMavenPublicationToMavenRepository FAILED
  29.  
  30. FAILURE: Build failed with an exception.
  31.  
  32. * What went wrong:
  33. Execution failed for task ':publishMavenPublicationToMavenRepository'.
  34. > Failed to publish publication 'maven' to repository 'maven'
  35. > java.lang.NullPointerException (no error message)
  36.  
  37. * Try:
  38. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  39.  
  40. buildscript {
  41. ext {
  42. grailsVersion = project.grailsVersion
  43. }
  44. repositories {
  45. mavenLocal()
  46. maven { url 'https://repo.grails.org/grails/core' }
  47. }
  48. dependencies {
  49. classpath "org.grails:grails-gradle-plugin:$grailsVersion"
  50. }
  51. }
  52.  
  53. plugins {
  54. id 'io.spring.dependency-management' version '0.5.2.RELEASE'
  55. id 'com.jfrog.bintray' version '1.2'
  56. }
  57.  
  58. version '3.0.0'
  59. group 'org.grails.plugins'
  60.  
  61. apply plugin: 'maven-publish'
  62. apply plugin: 'spring-boot'
  63. apply plugin: 'org.grails.grails-plugin'
  64.  
  65. apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
  66. apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'
  67.  
  68. ext {
  69. grailsVersion = project.grailsVersion
  70. gradleWrapperVersion = project.gradleWrapperVersion
  71. }
  72.  
  73. sourceCompatibility = targetCompatibility = 1.7
  74.  
  75. repositories {
  76. mavenLocal()
  77. jcenter()
  78. maven { url 'https://repo.grails.org/grails/core' }
  79. }
  80.  
  81. dependencyManagement {
  82. imports {
  83. mavenBom "org.grails:grails-bom:$grailsVersion"
  84. }
  85. applyMavenExclusions false
  86. }
  87.  
  88. dependencies {
  89.  
  90. provided 'javax.servlet:javax.servlet-api:3.1.0'
  91. provided 'org.grails:grails-dependencies'
  92. provided 'org.grails:grails-web-boot'
  93.  
  94. compile 'org.jsoup:jsoup:1.8.3'
  95. compile 'org.apache.commons:commons-lang3:3.0.1'
  96. compile 'org.pegdown:pegdown:1.5.0'
  97. compile 'com.overzealous:remark:1.0.0'
  98.  
  99. console 'org.grails:grails-console'
  100.  
  101. testCompile 'org.grails:grails-plugin-testing'
  102. }
  103.  
  104. task wrapper(type: Wrapper) {
  105. gradleVersion = gradleWrapperVersion
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement