csrg -> tiny converter
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.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. buildscript {
  2. repositories {
  3. maven {
  4. url "https://plugins.gradle.org/m2/"
  5. }
  6. jcenter()
  7. }
  8. dependencies {
  9. classpath "gradle.plugin.net.minecrell:licenser:0.4.1"
  10. }
  11. }
  12. apply plugin: 'java'
  13. apply plugin: 'eclipse'
  14. apply plugin: 'idea'
  15. apply plugin: 'maven-publish'
  16. sourceCompatibility = 1.8
  17. def ENV = System.getenv()
  18. if (ENV.BUILD_NUMBER) {
  19. version = version + "." + "${System.getenv().BUILD_NUMBER}"
  20. }
  21. group = 'pl.asie.csrg2tiny'
  22. archivesBaseName = project.name.toLowerCase()
  23. repositories {
  24. mavenCentral()
  25. maven {
  26. name = 'Fabric'
  27. url = 'https://maven.fabricmc.net'
  28. }
  29. }
  30. dependencies {
  31. compile 'org.ow2.asm:asm:7.1'
  32. compile 'org.ow2.asm:asm-commons:7.1'
  33. }
  34. apply plugin: net.minecrell.gradle.licenser.Licenser
  35. license {
  36. header file('LICENSE')
  37. include '**/*.java'
  38. }
  39. jar {
  40. manifest {
  41. attributes 'Implementation-Title': 'csrg2tiny',
  42. 'Implementation-Version': version,
  43. 'Main-Class': "pl.asie.csrg2tiny.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 'Implementation-Title': 'csrg2tiny',
  54. 'Implementation-Version': version,
  55. 'Main-Class': "pl.asie.csrg2tiny.Main"
  56. }
  57. classifier = 'all'
  58. with jar
  59. }
  60. artifacts {
  61. archives allJar
  62. }