Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'forge'
- apply plugin: 'kotlin'
- apply plugin: 'idea'
- buildscript {
- ext.kotlinVersion = '1.3.41'
- repositories {
- mavenCentral()
- maven {
- name = "forge"
- url = "http://files.minecraftforge.net/maven"
- }
- maven {
- name = "sonatype"
- url = "https://oss.sonatype.org/content/repositories/snapshots/"
- }
- }
- dependencies {
- classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
- }
- }
- version = "1.0"
- group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
- archivesBaseName = "modid"
- minecraft {
- version = "1.7.10-10.13.4.1614-1.7.10"
- runDir = "eclipse"
- }
- configurations {
- embed
- compile.extendsFrom(embed)
- }
- dependencies {
- compile files(
- "libs/GalacticraftCore-Dev-1.7-3.0.12.504.jar",
- "libs/Galacticraft-Planets-Dev-1.7-3.0.12.504.jar",
- "libs/MicdoodleCore-Dev-1.7-3.0.12.504.jar",
- "libs/Galacticraft-API-1.7-3.0.12.504.jar",
- "libs/industrialcraft-2-2.2.828-experimental-dev.jar",
- "libs/CodeChickenCore-1.7.10-1.0.7.47-universal.jar",
- "libs/CodeChickenLib-1.7.10-1.1.3.138-universal.jar",
- "libs/NotEnoughItems-1.7.10-1.0.5.118-universal.jar")
- compile fileTree(dir: 'lib', include: ['*.jar'])
- embed "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
- embed "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
- }
- compileJava {
- options.encoding = "UTF-8"
- sourceCompatibility = targetCompatibility = '1.8'
- }
- sourceCompatibility = targetCompatibility = '1.8'
- compileKotlin.kotlinOptions.jvmTarget = "1.8"
- manifest {
- attributes 'FMLAT': 'example_at.cfg'
- }
- 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, thats not the mcmod.info
- from(sourceSets.main.resources.srcDirs) {
- exclude 'mcmod.info'
- }
- }
- idea {
- module {
- inheritOutputDirs = false
- outputDir = file('build/classes/main/')
- }
- }
- subprojects {
- apply plugin: 'idea'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement