From 9a41ccc0ba8c51334bda9c8acc0a598f0511bf45 Mon Sep 17 00:00:00 2001 From: Enginecrafter77 Date: Wed, 1 Sep 2021 11:54:38 +0200 Subject: [PATCH] Autonomized build system The build system should now be fully autonomous. That means that the build should run just fine without any user intervention upon cloning the repository. The dependencies are now pulled from [modmaven](https://modmaven.dev) instead of assuming they're in local directory. This removes the need to download them manually for users building this repository from source. Update of README.md is strongly advised. --- .gitignore | 31 +++++++++++++++++++++---------- build.gradle | 17 ++++++++++++----- 2 files changed, 33 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index a8f2e903f..231f1afed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,22 @@ -/.gradle/ -/bin/ -/build/ -/eclipse/ -/lib/ -/.git/ -/.gradle/ -/.settings/ -/.classpath -/.project +# eclipse +eclipse +bin +*.launch +.settings +.metadata +.classpath +.project +# idea +out +*.ipr +*.iws +*.iml +.idea + +# gradle +build +.gradle + +# other +run diff --git a/build.gradle b/build.gradle index aa7b2dd0c..04883fa42 100644 --- a/build.gradle +++ b/build.gradle @@ -21,18 +21,25 @@ buildscript { apply plugin: 'forge' version = "1.0" -group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html -archivesBaseName = "modid" +group= "com.hbm" // http://maven.apache.org/guides/mini/guide-naming-conventions.html +archivesBaseName = "HBM-NTM" minecraft { version = "1.7.10-10.13.4.1558-1.7.10" runDir = "eclipse" } +repositories { + maven { + name = 'ModMaven' + url = 'https://modmaven.dev' + } +} + dependencies { -compile files('lib/CodeChickenCore-1.7.10-1.0.4.29-dev.jar') -compile files('lib/CodeChickenLib-1.7.10-1.1.3.140-dev.jar') -compile files('lib/NotEnoughItems-1.7.10-1.0.3.74-dev.jar') + compile 'codechicken:CodeChickenCore:1.7.10-1.0.4.29:dev' + compile 'codechicken:CodeChickenLib:1.7.10-1.1.3.140:dev' + compile 'codechicken:NotEnoughItems:1.7.10-1.0.3.74:dev' } processResources