Guest User

Untitled

a guest
Mar 22nd, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. apply plugin: 'maven'
  2.  
  3. configurations {
  4. deployerJars
  5. }
  6.  
  7. uploadArchives {
  8. repositories.mavenDeployer {
  9. configuration = configurations.deployerJars
  10. repository(url: "${repoUrl}") {
  11. authentication(userName: "${repoUser}", password: "${repoPass}")
  12. }
  13.  
  14. pom.version = 'version'
  15. pom.groupId = 'groupId'
  16. pom.artifactId = 'artifactId'
  17. }
  18. }
  19.  
  20. task sourcesJar(type: Jar, dependsOn:classes) {
  21. classifier = 'sources'
  22. from sourceSets.main.allSource
  23. }
  24.  
  25. artifacts {
  26. archives sourcesJar
  27. }
Add Comment
Please, Sign In to add comment