forked from Magneticraft-Team/Magneticraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (79 loc) · 2.14 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
buildscript {
repositories {
jcenter()
maven { name = 'forge'; url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'kotlin'
archivesBaseName = name
version project.version
group project.groupId
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
minecraft {
version = "1.12-14.21.1.2443"
mappings = "snapshot_20170624"
replace '@VERSION@': project.version
runDir = "run"
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version':project.version, 'mcversion':project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
repositories {
jcenter()
maven {
name = 'Mobius Repo'
url = 'http://mobiusstrip.eu/maven'
}
maven {
name = 'CB Repo'
url = 'http://chickenbones.net/maven/'
}
maven {
name = 'tehnut'
url = 'http://tehnut.info/maven/'
}
maven {
name = 'amadornes'
url = 'http://maven.amadornes.com/'
}
maven {
name = 'mezz'
url = 'http://dvs1.progwml6.com/files/maven'
}
maven {
name = 'Tesla Api'
url 'http://maven.epoxide.xyz'
}
maven {
name = "Crraft Tweaker"
url "http://maven.blamejared.com"
}
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "mezz.jei:jei_1.12:4.7.5.86"
compile "CraftTweaker2:CraftTweaker2-API:4.0.3.242"
compile "com.blamejared:MTLib:3.0.0.1"
compile files("lib/modelloader-1.0.4.jar", "lib/Forgelin-1.5.1.jar")
}