From 99ebf357194649b2c2ff5333f7b57f73f0081e09 Mon Sep 17 00:00:00 2001 From: JackCarterSmith Date: Sat, 30 Sep 2023 21:25:23 +0200 Subject: [PATCH] Keep gradle and maven repos up to date --- README.md | 11 +++++++- build.gradle | 34 ++++++++++++++++++++---- gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3f9245c..19b2b97 100644 --- a/README.md +++ b/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 ------------------------------------------- diff --git a/build.gradle b/build.gradle index 347f257..17fe447 100644 --- a/build.gradle +++ b/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 +} diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 678d9d8..a4e35a1 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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