added MDK package
This commit is contained in:
parent
c2523c685a
commit
7a6557a9e2
3 changed files with 58 additions and 5 deletions
25
build.gradle
25
build.gradle
|
@ -157,6 +157,30 @@ task signUniversal(type: SignJar, dependsOn: 'outputJar') {
|
||||||
uploadArchives.dependsOn signUniversal
|
uploadArchives.dependsOn signUniversal
|
||||||
build.dependsOn signUniversal
|
build.dependsOn signUniversal
|
||||||
|
|
||||||
|
// MDK package
|
||||||
|
|
||||||
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
task makeMdk(type: Zip) {
|
||||||
|
baseName = project.name
|
||||||
|
classifier = "mdk"
|
||||||
|
version = project.version
|
||||||
|
destinationDir = file('build/distributions')
|
||||||
|
|
||||||
|
from 'mdk'
|
||||||
|
filter(ReplaceTokens, tokens: [
|
||||||
|
VERSION: project.version,
|
||||||
|
MAPPINGS: minecraft.mappings.replace('nodoc_', '')
|
||||||
|
])
|
||||||
|
rename 'gitignore\\.txt', '.gitignore'
|
||||||
|
from 'MinecraftForge-Credits.txt'
|
||||||
|
from 'MinecraftForge-License.txt'
|
||||||
|
from 'Paulscode IBXM Library License.txt'
|
||||||
|
from 'Paulscode SoundSystem CodecIBXM License.txt'
|
||||||
|
from 'LICENSE-fml.txt'
|
||||||
|
from changelog.output
|
||||||
|
}
|
||||||
|
tasks.build.dependsOn madeMdk
|
||||||
|
|
||||||
// launch4j
|
// launch4j
|
||||||
|
|
||||||
launch4j {
|
launch4j {
|
||||||
|
@ -176,6 +200,7 @@ tasks.build.dependsOn 'launch4j'
|
||||||
artifacts {
|
artifacts {
|
||||||
archives changelog.output
|
archives changelog.output
|
||||||
archives file("build/distributions/${project.name}-${project.version}-installer-win.exe")
|
archives file("build/distributions/${project.name}-${project.version}-installer-win.exe")
|
||||||
|
archives makdeMdk.output
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadArchives {
|
uploadArchives {
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
/*
|
||||||
|
// For those who want the bleeding edge
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
jcenter()
|
||||||
maven {
|
maven {
|
||||||
name = "forge"
|
name = "forge"
|
||||||
url = "http://files.minecraftforge.net/maven"
|
url = "http://files.minecraftforge.net/maven"
|
||||||
|
@ -10,15 +12,20 @@ buildscript {
|
||||||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.0-SNAPSHOT'
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.0-SNAPSHOT'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||||
|
*/
|
||||||
|
|
||||||
apply plugin: '${name}'
|
// for people who want stable
|
||||||
|
plugins {
|
||||||
|
id "net.minecraftforge.gradle.forge" version "2.0.0"
|
||||||
|
}
|
||||||
|
|
||||||
version = "1.0"
|
version = "1.0"
|
||||||
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
archivesBaseName = "modid"
|
archivesBaseName = "modid"
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "${version}"
|
version = "@VERSION@"
|
||||||
runDir = "eclipse"
|
runDir = "eclipse"
|
||||||
|
|
||||||
// the mappings can be changed at any time, and must be in the following format.
|
// the mappings can be changed at any time, and must be in the following format.
|
||||||
|
@ -26,7 +33,7 @@ minecraft {
|
||||||
// stable_# stables are built at the discretion of the MCP team.
|
// stable_# stables are built at the discretion of the MCP team.
|
||||||
// Use non-default mappings at your own risk. they may not allways work.
|
// 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.
|
// simply re-run your setup task after changing the mappings to update your workspace.
|
||||||
mappings = "${mappings}"
|
mappings = "@MAPPINGS@"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -39,7 +46,7 @@ dependencies {
|
||||||
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
|
//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
|
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
|
||||||
|
|
||||||
// the 'provided' configuration is for optioanl dependencies
|
// the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
|
||||||
//provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
//provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
||||||
|
|
||||||
// the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
|
// the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
|
||||||
|
|
21
mdk/gitignore.txt
Normal file
21
mdk/gitignore.txt
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# eclipse
|
||||||
|
bin
|
||||||
|
*.launch
|
||||||
|
.settings
|
||||||
|
.metadata
|
||||||
|
.classpath
|
||||||
|
.project
|
||||||
|
|
||||||
|
# idea
|
||||||
|
out
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
.idea
|
||||||
|
|
||||||
|
# gradle
|
||||||
|
build
|
||||||
|
.gradle
|
||||||
|
|
||||||
|
# other
|
||||||
|
eclipse
|
Loading…
Reference in a new issue