Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- jcenter()
- maven { url = "http://files.minecraftforge.net/maven" }
- }
- dependencies {
- classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.3-2"
- }
- }
- apply plugin: 'kotlin'
- apply plugin: 'net.minecraftforge.gradle.forge'
- //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
- repositories {
- jcenter()
- maven {url = "http://maven.shadowfacts.net/"}
- }
- configurations {
- incljar
- }
- version = "1.0"
- group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
- archivesBaseName = "modid"
- sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
- compileJava {
- sourceCompatibility = targetCompatibility = '1.8'
- }
- minecraft {
- version = "1.12.2-14.23.1.2581"
- runDir = "run"
- mappings = "snapshot_20171003"
- }
- dependencies {
- compile "net.shadowfacts:Forgelin:1.7.3"
- compile configurations.incljar.dependencies
- }
- processResources {
- // this will ensure that this task is redone when the versions change.
- inputs.property "version", project.version
- inputs.property "mcversion", project.minecraft.version
- // replace stuff in mcmod.info, nothing else
- from(sourceSets.main.resources.srcDirs) {
- include 'mcmod.info'
- // replace version and mcversion
- expand 'version':project.version, 'mcversion':project.minecraft.version
- }
- // copy everything else except the mcmod.info
- from(sourceSets.main.resources.srcDirs) {
- exclude 'mcmod.info'
- }
- }
- compileKotlin {
- kotlinOptions {
- languageVersion = "1.2"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement