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

61 lines
1.3 KiB
Groovy

buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:${forgegradle_version}"
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
version = "${mod_version}-${mc_version}"
group= "${mod_name}"
archivesBaseName = "${mod_name}"
sourceSets {
main {
java {
srcDirs = ["src/java"]
}
resources {
srcDirs = ["src/resources"]
}
}
}
srcCompat = JavaVersion.VERSION_1_8
targetCompat = JavaVersion.VERSION_1_8
minecraft {
version = "${mc_full_version}-${forge_version}-${mc_version}"
runDir = "run"
mappings = "${mappings_version}"
// 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'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}