"Private" tool for reversing two remapped JARs into a mapping pair.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. apply plugin: 'java'
  2. apply plugin: 'eclipse'
  3. apply plugin: 'idea'
  4. buildscript {
  5. repositories {
  6. maven {
  7. url "https://plugins.gradle.org/m2/"
  8. }
  9. jcenter()
  10. }
  11. dependencies {
  12. classpath "gradle.plugin.net.minecrell:licenser:0.2.1"
  13. }
  14. }
  15. sourceCompatibility = 1.8
  16. def ENV = System.getenv()
  17. if (ENV.BUILD_NUMBER) {
  18. version = version + "." + "${System.getenv().BUILD_NUMBER}"
  19. }
  20. group = 'pl.asie'
  21. archivesBaseName = project.name.toLowerCase()
  22. repositories {
  23. mavenCentral()
  24. maven {
  25. name = 'Fabric'
  26. url = 'https://maven.fabricmc.net'
  27. }
  28. }
  29. dependencies {
  30. compile 'org.ow2.asm:asm:7.1'
  31. compile 'org.ow2.asm:asm-commons:7.1'
  32. compile 'org.ow2.asm:asm-tree:7.1'
  33. compile 'org.ow2.asm:asm-util:7.1'
  34. }
  35. // Due to a gradle bug, the full class name needs to be used
  36. apply plugin: net.minecrell.gradle.licenser.Licenser
  37. license {
  38. header file('HEADER')
  39. include '**/*.java'
  40. }
  41. jar {
  42. manifest {
  43. attributes 'Main-Class': "pl.asie.reverseremapper.Main"
  44. }
  45. }
  46. task allJar(type: Jar) {
  47. from {
  48. configurations.compile.collect {
  49. it.isDirectory() ? it : zipTree(it)
  50. }
  51. }
  52. manifest {
  53. attributes 'Main-Class': "pl.asie.reverseremapper.Main"
  54. }
  55. classifier = 'all'
  56. with jar
  57. }
  58. artifacts {
  59. archives allJar
  60. }