Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'maven'
- configurations {
- deployerJars
- }
- uploadArchives {
- repositories.mavenDeployer {
- configuration = configurations.deployerJars
- repository(url: "${repoUrl}") {
- authentication(userName: "${repoUser}", password: "${repoPass}")
- }
- pom.version = 'version'
- pom.groupId = 'groupId'
- pom.artifactId = 'artifactId'
- }
- }
- task sourcesJar(type: Jar, dependsOn:classes) {
- classifier = 'sources'
- from sourceSets.main.allSource
- }
- artifacts {
- archives sourcesJar
- }
Add Comment
Please, Sign In to add comment