Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- afterProject { p ->
- p.apply plugin: 'maven-publish'
- p.apply plugin: 'com.jfrog.artifactory'
- p.publishing {
- publications {
- mavenJava(MavenPublication) {
- from p.components.java
- artifact p.sourcesJar
- }
- }
- }
- p.artifacts {
- archives p.sourcesJar
- }
- p.artifactory {
- publish {
- contextUrl = "http://svn:8081/artifactory"
- repository {
- repoKey = '....'
- username = "username"
- password = "password"
- }
- defaults {
- publications('mavenJava')
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement