Created
November 20, 2014 04:17
-
-
Save kva1966/149ffb74d5a2d9f6809e to your computer and use it in GitHub Desktop.
afterProject init.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment