This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
mmm/build.gradle

62 lines
1.3 KiB
Groovy
Raw Normal View History

2016-06-13 11:55:30 +02:00
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
2016-06-14 20:21:21 +02:00
classpath "net.minecraftforge.gradle:ForgeGradle:${forgegradle_version}"
2016-06-13 11:55:30 +02:00
}
}
2016-06-14 20:21:21 +02:00
apply plugin: 'net.minecraftforge.gradle.forge'
2016-06-13 11:55:30 +02:00
2016-06-14 20:21:21 +02:00
version = "${mod_version}-${mc_version}"
group= "${mod_name}"
archivesBaseName = "${mod_name}"
2016-06-13 11:55:30 +02:00
sourceSets {
main {
java {
srcDirs = ["src/java"]
}
resources {
srcDirs = ["src/resources"]
}
}
}
srcCompat = JavaVersion.VERSION_1_8
targetCompat = JavaVersion.VERSION_1_8
2016-06-13 11:55:30 +02:00
minecraft {
version = "${mc_version}-${forge_version}-${mc_full_version}"
2016-06-13 11:55:30 +02:00
runDir = "run"
2016-06-14 20:21:21 +02:00
mappings = "${mappings_version}"
2016-06-13 11:55:30 +02:00
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}
processResources
{
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version':project.version, 'mcversion':project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
2016-06-14 20:21:21 +02:00
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}