Keep gradle and maven repos up to date
This commit is contained in:
parent
1057c28265
commit
99ebf35719
11
README.md
11
README.md
@ -1,4 +1,13 @@
|
||||
# Forge MDK - 1.7.10
|
||||
# Forge MDK - 1.7.10 - Rectrocompatibility fork
|
||||
|
||||
-------------------------------------------
|
||||
Modified for retro-compatibility
|
||||
-------------------------------------------
|
||||
I really dislike the "packages" system of modern programming. 10 years later and
|
||||
you can't run your old workspace! *I hate you maven and python user...*
|
||||
I keep updated this fork using [ForgeGradle-1.2 made by anatawa12](https://github.com/anatawa12/ForgeGradle-1.2)
|
||||
for me and others who want to make nostalgic moment great again!
|
||||
|
||||
-------------------------------------------
|
||||
Source installation information for modders
|
||||
-------------------------------------------
|
||||
|
34
build.gradle
34
build.gradle
@ -1,10 +1,15 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
maven { url = 'https://maven.minecraftforge.net/' }
|
||||
maven {
|
||||
name = "forge"
|
||||
url = 'https://maven.minecraftforge.net/'
|
||||
}
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
||||
classpath ('com.anatawa12.forge:ForgeGradle:1.2-1.1.+') {
|
||||
changing = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,7 +17,9 @@ apply plugin: 'forge'
|
||||
|
||||
version = "1.0"
|
||||
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
||||
archivesBaseName = "modid"
|
||||
targetCompatibility = sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
|
||||
minecraft {
|
||||
version = "1.7.10-10.13.4.1614-1.7.10"
|
||||
@ -42,9 +49,7 @@ processResources
|
||||
inputs.property "mcversion", project.minecraft.version
|
||||
|
||||
// replace stuff in mcmod.info, nothing else
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'mcmod.info'
|
||||
|
||||
filesMatching('mcmod.info') {
|
||||
// replace version and mcversion
|
||||
expand 'version':project.version, 'mcversion':project.minecraft.version
|
||||
}
|
||||
@ -54,3 +59,22 @@ processResources
|
||||
exclude 'mcmod.info'
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
classifier = "sources"
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
task devJar(type: Jar) {
|
||||
classifier = "dev"
|
||||
from sourceSets.main.output
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives devJar
|
||||
}
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip
|
||||
|
Loading…
x
Reference in New Issue
Block a user