1
0

Keep gradle and maven repos up to date

This commit is contained in:
JackCarterSmith 2023-09-30 21:25:23 +02:00
parent 1057c28265
commit 99ebf35719
Signed by: JackCarterSmith
GPG Key ID: 832E52F4E23F8F24
3 changed files with 40 additions and 7 deletions

View File

@ -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 Source installation information for modders
------------------------------------------- -------------------------------------------

View File

@ -1,10 +1,15 @@
buildscript { buildscript {
repositories { repositories {
maven { url = 'https://maven.minecraftforge.net/' } maven {
name = "forge"
url = 'https://maven.minecraftforge.net/'
}
mavenCentral() mavenCentral()
} }
dependencies { 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" 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"
targetCompatibility = sourceCompatibility = JavaVersion.VERSION_1_8
minecraft { minecraft {
version = "1.7.10-10.13.4.1614-1.7.10" version = "1.7.10-10.13.4.1614-1.7.10"
@ -42,9 +49,7 @@ processResources
inputs.property "mcversion", project.minecraft.version inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else // replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) { filesMatching('mcmod.info') {
include 'mcmod.info'
// replace version and mcversion // replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version expand 'version':project.version, 'mcversion':project.minecraft.version
} }
@ -54,3 +59,22 @@ processResources
exclude 'mcmod.info' 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
}

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists 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