Renders an animated image at the start of the game's loading process.
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 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "http://files.minecraftforge.net/maven" }
  5. maven {
  6. url "https://plugins.gradle.org/m2/"
  7. }
  8. }
  9. dependencies {
  10. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  11. classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
  12. classpath "gradle.plugin.net.minecrell:licenser:0.3"
  13. }
  14. }
  15. apply plugin: 'net.minecraftforge.gradle.forge'
  16. apply plugin: 'com.github.johnrengelman.shadow'
  17. apply plugin: 'net.minecrell.licenser'
  18. version = "0.2.1"
  19. group = "pl.asie.splashanimation" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  20. archivesBaseName = "SplashAnimation"
  21. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  22. compileJava {
  23. sourceCompatibility = targetCompatibility = '1.8'
  24. }
  25. minecraft {
  26. version = "1.12.2-14.23.5.2770"
  27. runDir = "run"
  28. mappings = "snapshot_20180310"
  29. replace '@VERSION@', project.version
  30. replace '@MC_VERSION@', version
  31. }
  32. sourceSets {
  33. main {
  34. resources {
  35. srcDirs += 'docs'
  36. }
  37. }
  38. }
  39. license {
  40. sourceSets = [project.sourceSets.main]
  41. header = project.file("docs/licenses/LICENSE")
  42. ignoreFailures = true
  43. exclude '**/*.lang'
  44. exclude '**/*.info'
  45. exclude '**/*.mcmeta'
  46. }
  47. repositories {
  48. maven {
  49. url = 'https://repo.elytradev.com'
  50. }
  51. ivy {
  52. name 'asie dependency mirror'
  53. artifactPattern "http://asie.pl/javadeps/[module]-[revision](-[classifier]).[ext]"
  54. }
  55. }
  56. jar {
  57. classifier = 'slim'
  58. manifest.attributes "Manifest-Version": "1.0"
  59. manifest.attributes "FMLCorePlugin": "pl.asie.splashanimation.core.SplashAnimationCoremod"
  60. }
  61. shadowJar {
  62. classifier = ''
  63. relocate 'com.elytradev.mini', 'pl.asie.splashanimation.core.repackage.com.elytradev.mini'
  64. configurations = [project.configurations.shadow]
  65. manifest.attributes "Manifest-Version": "1.0"
  66. manifest.attributes "FMLCorePlugin": "pl.asie.splashanimation.core.SplashAnimationCoremod"
  67. }
  68. processResources {
  69. // this will ensure that this task is redone when the versions change.
  70. inputs.property "version", project.version
  71. inputs.property "mcversion", project.minecraft.version
  72. // replace stuff in mcmod.info, nothing else
  73. from(sourceSets.main.resources.srcDirs) {
  74. include 'mcmod.info'
  75. // replace version and mcversion
  76. expand 'version':project.version, 'mcversion':project.minecraft.version
  77. }
  78. // copy everything else except the mcmod.info
  79. from(sourceSets.main.resources.srcDirs) {
  80. exclude 'mcmod.info'
  81. }
  82. }
  83. reobf {
  84. shadowJar { mappingType = 'SEARGE' }
  85. }
  86. tasks.build.dependsOn reobfShadowJar
  87. artifacts {
  88. archives shadowJar
  89. }
  90. dependencies {
  91. compile 'com.elytradev:mini:0.2-SNAPSHOT'
  92. shadow 'com.elytradev:mini:0.2-SNAPSHOT'
  93. }
  94. task signShadowJar(type: SignJar, dependsOn: shadowJar) {
  95. onlyIf {
  96. project.hasProperty('keyStore')
  97. }
  98. keyStore = project.keyStore
  99. alias = project.keyStoreAlias
  100. storePass = project.keyStorePass
  101. keyPass = project.keyStoreKeyPass
  102. inputFile = shadowJar.archivePath
  103. outputFile = shadowJar.archivePath
  104. }
  105. build.dependsOn(signShadowJar)