Advertisement
Guest User

build.gradle

a guest
Sep 24th, 2019
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 3.15 KB | None | 0 0
  1.  
  2. // For those who want the bleeding edge
  3. buildscript {
  4.     repositories {
  5.         jcenter()
  6.         maven {
  7.             name = "forge"
  8.             url = "http://files.minecraftforge.net/maven"
  9.         }
  10.     }
  11.     dependencies {
  12.         classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
  13.     }
  14. }
  15. apply plugin: 'net.minecraftforge.gradle.forge'
  16.  
  17. /*
  18. // for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot
  19. plugins {
  20.     id "net.minecraftforge.gradle.forge" version "2.0.2"
  21. }
  22. */
  23. version = "1.0"
  24. group= "com.github.Kalcoder" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  25. archivesBaseName = "streamparty"
  26.  
  27. sourceCompatibility = 1.8
  28. targetCompatibility = 1.8
  29.  
  30. minecraft {
  31.     version = "1.8.9-11.15.1.2318-1.8.9"
  32.     runDir = "run"
  33.    
  34.     // the mappings can be changed at any time, and must be in the following format.
  35.     // snapshot_YYYYMMDD   snapshot are built nightly.
  36.     // stable_#            stables are built at the discretion of the MCP team.
  37.     // Use non-default mappings at your own risk. they may not allways work.
  38.     // simply re-run your setup task after changing the mappings to update your workspace.
  39.     mappings = "stable_20"
  40.     // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  41. }
  42.  
  43. dependencies {
  44.     implementation 'com.google.firebase:firebase-admin:6.9.0'
  45.     // you may put jars on which you depend on in ./libs
  46.     // or you may define them like so..
  47.     //compile "some.group:artifact:version:classifier"
  48.     //compile "some.group:artifact:version"
  49.      
  50.     // real examples
  51.     //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
  52.     //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  53.  
  54.     // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
  55.     //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  56.  
  57.     // the deobf configurations:  'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
  58.     // except that these dependencies get remapped to your current MCP mappings
  59.     //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  60.     //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  61.  
  62.     // for more info...
  63.     // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  64.     // http://www.gradle.org/docs/current/userguide/dependency_management.html
  65.  
  66. }
  67.  
  68. processResources
  69. {
  70.     // this will ensure that this task is redone when the versions change.
  71.     inputs.property "version", project.version
  72.     inputs.property "mcversion", project.minecraft.version
  73.  
  74.     // replace stuff in mcmod.info, nothing else
  75.     from(sourceSets.main.resources.srcDirs) {
  76.         include 'mcmod.info'
  77.                
  78.         // replace version and mcversion
  79.         expand 'version':project.version, 'mcversion':project.minecraft.version
  80.     }
  81.        
  82.     // copy everything else, thats not the mcmod.info
  83.     from(sourceSets.main.resources.srcDirs) {
  84.         exclude 'mcmod.info'
  85.     }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement