Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 16 additions & 50 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

// For those who want the bleeding edge
buildscript {
repositories {
Expand All @@ -11,70 +12,37 @@ buildscript {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
}
}

apply plugin: 'scala'
apply plugin: 'net.minecraftforge.gradle.forge'

/*
// for people who want stable
// for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot
plugins {
id "net.minecraftforge.gradle.forge" version "2.0.1"
id "net.minecraftforge.gradle.forge" version "2.0.2"
}
*/

version = "2.0.0"
group = "com.github.soniex2.notebetter" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "notebetter"

/*runClient {
jvmArgs '-Dfml.coreMods.load=com.github.soniex2.notebetter.asm.NoteBetterCore'
}
runServer {
jvmArgs '-Dfml.coreMods.load=com.github.soniex2.notebetter.asm.NoteBetterCore'
}*/
version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"

minecraft {
version = "1.9.4-12.17.0.1960"
version = "1.10.2-12.18.1.2011"
runDir = "run"

// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not allways work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "snapshot_20160612"
makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
useDepAts = true
coreMod = "com.github.soniex2.notebetter.asm.NoteBetterCore"
}

def commonManifest = {
attributes 'FMLCorePlugin': 'com.github.soniex2.notebetter.asm.NoteBetterCore'
attributes 'FMLCorePluginContainsFMLMod': 'true'
}

jar {
manifest commonManifest
}

task deobfJar(type: Jar) {
from(sourceSets.main.output) {
classifier = "deobf"
}
manifest commonManifest
}

repositories {
maven { url = "http://maven.cil.li/" }
maven { url "http://dvs1.progwml6.com/files/maven" }
mappings = "snapshot_20160518"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}

dependencies {
// you may put jars on which you depend on in ./libs
// or you may define them like so..
//compile "some.group:artifact:version:classifier"
//compile "some.group:artifact:version"

// real examples
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
Expand All @@ -87,28 +55,26 @@ dependencies {
//deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
//deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'

//compile "li.cil.oc:OpenComputers:MC1.8.9-1.5.+"
deobfCompile "mezz.jei:jei_1.9.4:3.6.3.212"

// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html

}

processResources {
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
expand 'version':project.version, 'mcversion':project.minecraft.version
}

// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @author soniex2
*/
@API(owner = "notebetter", provides = "notebetter|api", apiVersion = "2.0.0")
@API(owner = "notebetter", provides = "notebetter|api", apiVersion = "2.0.1")
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package com.github.soniex2.notebetter.api;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"modid": "notebetter",
"name": "NoteBetter",
"description": "Better Note Blocks.",
"description": "Better Note Blocks. 1.10.2 Fork by ShinkoNet.",
"version": "${version}",
"mcversion": "${mcversion}",
"url": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@ParametersAreNonnullByDefault
public class NoteBetter implements NoteBetterAPIInstance {
public static final String MODID = "notebetter";
public static final String VERSION = "2.0.0";
public static final String VERSION = "2.0.1";

@Mod.Instance
public static NoteBetter instance;
Expand Down