Advertisement
akSource

PotionExtensionのmavenリポジトリへのアップロード例

Sep 17th, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.04 KB | None | 0 0
  1. sourceSets.main {
  2.     java.srcDirs project.projectDir.name
  3.     resources.srcDirs project.projectDir.name
  4. }
  5. build.dependsOn sourceJar, deobfJar
  6. jar {
  7.     manifest {
  8.         attributes 'FMLCorePlugin' : 'ak.potionextension.asm.PotionExtensionCorePlugin'
  9.     }
  10. }
  11. group= "com.ak"
  12. //archivesBaseName = "potionextension"
  13. version = "1.7.10-1.1.1"
  14. minecraft {
  15.     //replacing stuff in the source
  16.     replace '@VERSION@', project.version
  17.     replace '@MC_VERSION@', version
  18. }
  19. configurations {
  20.     deployerJars
  21. }
  22. dependencies {
  23.     // dependency in deployerJars, for maven deployment. see definition in mavenDeployer{} below
  24.     deployerJars "org.apache.maven.wagon:wagon-ssh:2.2"
  25. }
  26.  
  27. apply plugin: 'maven'
  28.  
  29. // maven ローカルリポジトリのパス
  30. ext {
  31.     mavenRepository = '/maven'
  32. }
  33.  
  34. artifacts {
  35.     // the default jar is already here by default
  36.     archives sourceJar
  37.     archives deobfJar
  38. }
  39.  
  40. uploadArchives {
  41.     repositories {
  42.         mavenDeployer {
  43.             repository(url: uri(mavenRepository))
  44.         }
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement