-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
45 lines (38 loc) · 1.13 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
def mcVersion = "1.7"
def versionMajor = 0
def versionMinor = 2
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
}
}
apply plugin: 'forge' // Add forge dependency
sourceSets.main {
java {
srcDirs = ['src/main/java', 'dependencies/main/java']
}
resources {
srcDirs = ['src/main/resources', 'dependencies/main/resources']
}
}
def versionBuild = 0
if (System.getenv("BUILD_NUMBER") != null)
versionBuild = System.getenv("BUILD_NUMBER")
version = "${mcVersion}-${versionMajor}.${versionMinor}.${versionBuild}" // Set the version number
group= "micdoodle8.mods.crossbowmod"
archivesBaseName = "Crossbow-Mod-2"
minecraft {
version = "1.7.10-10.13.4.1448-1.7.10" // Forge version
assetDir = "eclipse/assets" // This is where forge will download Minecraft assets
}