Advertisement
Guest User

init-gradle-afterProject

a guest
Nov 19th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.58 KB | None | 0 0
  1. afterProject { p ->
  2.  
  3.   p.apply plugin: 'maven-publish'
  4.   p.apply plugin: 'com.jfrog.artifactory'
  5.  
  6.   p.publishing {
  7.     publications {
  8.       mavenJava(MavenPublication) {
  9.         from p.components.java
  10.         artifact p.sourcesJar
  11.       }
  12.     }
  13.   }
  14.  
  15.   p.artifacts {
  16.     archives p.sourcesJar
  17.   }
  18.  
  19.   p.artifactory {
  20.     publish {
  21.       contextUrl = "http://svn:8081/artifactory"
  22.       repository {
  23.         repoKey = '....'
  24.         username = "username"
  25.         password = "password"
  26.       }
  27.       defaults {
  28.         publications('mavenJava')
  29.       }
  30.     }
  31.   }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement