mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
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.
70 lines
1.7 KiB
Groovy
70 lines
1.7 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = "forge"
|
|
url = "https://files.minecraftforge.net/maven"
|
|
}
|
|
maven {
|
|
name = "sonatype"
|
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
}
|
|
maven {
|
|
url = "https://repo1.maven.org/maven2/"
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'forge'
|
|
|
|
version = "1.0"
|
|
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 '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
|
|
{
|
|
// this will ensure that this task is redone when the versions change.
|
|
inputs.property "version", project.version
|
|
inputs.property "mcversion", project.minecraft.version
|
|
|
|
// replace stuff in mcmod.info, nothing else
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
include 'mcmod.info'
|
|
|
|
// replace version and mcversion
|
|
expand 'version':project.version, 'mcversion':project.minecraft.version
|
|
}
|
|
|
|
// copy everything else, thats not the mcmod.info
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
exclude 'mcmod.info'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
compileJava {
|
|
sourceCompatibility = '1.8'
|
|
targetCompatibility = '1.8'
|
|
}
|