mrkirby153

Untitled

Apr 10th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.11 KB | None | 0 0
  1. apply plugin: 'java'
  2. apply plugin: 'idea'
  3. apply plugin: 'eclipse'
  4. apply plugin: 'maven'
  5.  
  6. repositories{
  7.     mavenLocal()
  8.     mavenCentral()
  9. }
  10.  
  11. group = 'me.mrkirby153.quarxel'
  12. version = '1.0-SNAPSHOT'
  13. targetCompatibility = '1.7'
  14. sourceCompatibility = '1.7'
  15. archivesBaseName='QuarxelManager'
  16.  
  17. jar{
  18.     manifest{
  19.         attributes 'version':project.version
  20.     }
  21. }
  22.  
  23. artifacts{
  24.     archives jar
  25. }
  26. dependencies{
  27.     compile gradleApi()
  28. }
  29.  
  30. uploadArchives{
  31.     repositories{
  32.         if(project.hasProperty("repositoryUrl")){
  33.             mavenDeployer{
  34.                 repository(url: project.repositoryUrl){
  35.                     logger.info("Repository to deploy to: "+project.repositoryUrl)
  36.                     if(project.hasProperty("repositoryUsername") && project.hasProperty("repositoryPassword")){
  37.                         logger.info("Username: "+project.repositoryUsername+" Password: "+project.repositoryPassword);
  38.                         authentication(userName: project.repositoryUsername, password: project.repositoryPassword)
  39.                     }
  40.                 }
  41.             }
  42.         }
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment