Advertisement
LexManos

Untitled

May 13th, 2017
1,327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.43 KB | None | 0 0
  1. apply plugin: 'java'
  2. apply plugin: 'maven'
  3. apply plugin: 'eclipse'
  4.  
  5. version = '1.0.342-SNAPSHOT' // OurVersion.FernFlowerCommitNumber-SNAPSHOT
  6. group = 'net.minecraftforge' //put it under us for now, because this is a unofficial mirrior
  7. archivesBaseName = 'forgeflower'
  8.  
  9. sourceCompatibility = targetCompatibility = '1.8'
  10. compileJava {
  11.     sourceCompatibility = targetCompatibility = '1.8'
  12. }
  13.  
  14. sourceSets {
  15.     main.java.srcDirs = ['src']
  16.     test.java.srcDirs = ['test']
  17. }
  18. repositories {
  19.     mavenCentral()  
  20.     maven { url = "https://libraries.minecraft.net/" }
  21. }
  22. configurations {
  23.     deployerJars
  24. }
  25.  
  26. dependencies {
  27.     testCompile 'junit:junit:4.12'
  28.     testCompile 'org.hamcrest:hamcrest-core:1.3'
  29.     testCompile 'org.assertj:assertj-core:3.6.1'
  30.    
  31.    
  32.     // MC test only
  33.     testRuntime "com.mojang:patchy:1.0"
  34.     testRuntime "oshi-project:oshi-core:1.1"
  35.     testRuntime "net.java.dev.jna:jna:4.4.0"
  36.     testRuntime "net.java.dev.jna:platform:3.4.0"
  37.     testRuntime "com.ibm.icu:icu4j-core-mojang:51.2"
  38.     testRuntime "net.sf.jopt-simple:jopt-simple:5.0.3"
  39.     testRuntime "com.paulscode:codecjorbis:20101023"
  40.     testRuntime "com.paulscode:codecwav:20101023"
  41.     testRuntime "com.paulscode:libraryjavasound:20101123"
  42.     testRuntime "com.paulscode:librarylwjglopenal:20100824"
  43.     testRuntime "com.paulscode:soundsystem:20120107"
  44.     testRuntime "io.netty:netty-all:4.1.9.Final"
  45.     testRuntime "com.google.guava:guava:21.0"
  46.     testRuntime "org.apache.commons:commons-lang3:3.5"
  47.     testRuntime "commons-io:commons-io:2.5"
  48.     testRuntime "commons-codec:commons-codec:1.10"
  49.     testRuntime "net.java.jinput:jinput:2.0.5"
  50.     testRuntime "net.java.jutils:jutils:1.0.0"
  51.     testRuntime "com.google.code.gson:gson:2.8.0"
  52.     testRuntime "com.mojang:authlib:1.5.25"
  53.     testRuntime "com.mojang:realms:1.10.8"
  54.     testRuntime "org.apache.commons:commons-compress:1.8.1"
  55.     testRuntime "org.apache.httpcomponents:httpclient:4.3.3"
  56.     testRuntime "commons-logging:commons-logging:1.1.3"
  57.     testRuntime "org.apache.httpcomponents:httpcore:4.3.2"
  58.     testRuntime "it.unimi.dsi:fastutil:7.1.0"
  59.     testRuntime "org.apache.logging.log4j:log4j-api:2.8.1"
  60.     testRuntime "org.apache.logging.log4j:log4j-core:2.8.1"
  61.     testRuntime "org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209"
  62.     testRuntime "org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209"
  63.     testRuntime "net.java.jinput:jinput-platform:2.0.5"
  64.     testRuntime "com.mojang:text2speech:1.10.1"
  65.     testRuntime "ca.weblite:java-objc-bridge:1.0.0"
  66.  
  67. }
  68.  
  69. compileJava.options.encoding = 'utf-8'
  70. compileJava.options.deprecation = true
  71.  
  72. jar.manifest {
  73.     attributes 'Main-Class' : 'org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler'
  74. }
  75.  
  76. uploadArchives {
  77.     repositories {
  78.         add getProject().repositories.mavenLocal()
  79.     }
  80.     repositories.mavenDeployer {
  81.        
  82.         if (project.hasProperty('forgeMavenPass')) {
  83.             repository(url: "http://files.minecraftforge.net/maven/manage/upload") {
  84.                 authentication(userName: "forge", password: project.getProperty('forgeMavenPass'))
  85.             }
  86.         }
  87.         else
  88.             repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath())
  89.  
  90.         pom {
  91.             groupId = project.group
  92.             version = project.version
  93.             artifactId = project.archivesBaseName
  94.             project {
  95.                 name project.archivesBaseName
  96.                 packaging 'jar'
  97.                 description 'Fernflower from https://github.com/JetBrains/intellij-community as standalone library, With Forges Modifications'
  98.                 url 'https://github.com/MinecraftForge/ForgeFlower'
  99.  
  100.                 scm {
  101.                     url 'https://github.com/MinecraftForge/ForgeFlower'
  102.                     connection 'scm:git:git://github.com/MinecraftForge/ForgeFlower.git'
  103.                     developerConnection 'scm:git:git@github.com:MinecraftForge/ForgeFlower.git'
  104.                 }
  105.  
  106.                 issueManagement {
  107.                     system 'github'
  108.                     url 'https://github.com/MinecraftForge/ForgeFlower/issues'
  109.                 }
  110.  
  111.                 licenses {
  112.                     license {
  113.                         name 'Apache License 2.0'
  114.                         url 'http://www.apache.org/licenses/LICENSE-2.0'
  115.                         distribution 'repo'
  116.                     }
  117.                 }
  118.             }
  119.         }
  120.     }
  121. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement