This repository has been archived by the owner on Aug 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
110 lines (93 loc) · 3.58 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
buildscript {
repositories {
jcenter()
maven { url 'https://files.minecraftforge.net/maven' }
maven { url 'http://repo.spongepowered.org/maven' }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
}
}
plugins {
id "com.wynprice.cursemaven" version "1.2.0"
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'org.spongepowered.mixin'
def buildnumber = System.getenv('TRAVIS_BUILD_NUMBER')
def suffix = buildnumber != null ? ".$buildnumber" : "-SNAPSHOT"
version = "1.3.5$suffix"
group = "uk.bobbytables.jeidsi" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "jeidsi"
sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
minecraft {
version "1.12.2-14.23.5.2815"
runDir "run"
mappings "stable_39"
makeObfSourceJar false // an Srg named sources jar is made by default. uncomment this to disable.
replaceIn "JEIDsI.java"
replace "@VERSION@", project.version
def args = [
'-Dfml.coreMods.load=uk.bobbytables.jeidsi.core.JEIDsILoadingPlugin',
'-Dmixin.hotSwap=true',
'-Dmixin.checks.interfaces=true'
]
clientJvmArgs.addAll(args)
serverJvmArgs.addAll(args)
}
repositories {
mavenLocal()
maven { url 'https://www.dimdev.org/maven'}
ivy {
url 'https://google.com/404'
ivyPattern('https://google.com/404')
artifactPattern("https://media.forgecdn.net/files/[organisation]/[module]/[revision].[ext]")
}
}
dependencies {
compileOnly 'org.dimdev:mixin:0.7.11-SNAPSHOT'
compileOnly '2626:479:JustEnoughIDs-1.0.2-26@jar'
compileOnly '2691:339:AbyssalCraft-1.12.2-1.9.6@jar'
compileOnly '2683:823:Bookshelf-1.12.2-2.3.577@jar'
compileOnly '2655:432:Creeping+Nether-2.2.2@jar'
compileOnly '2691:93:CyclopsCore-1.12.2-1.1.1@jar'
compileOnly '2678:374:extrautils2-1.12-1.9.9@jar'
compileOnly '2683:667:TheBetweenlands-3.4.6-universal@jar'
compileOnly '2692:524:TofuCraftReload-0.0.2.1@jar'
compileOnly '2636:492:tropicraft-MC1.12.2-7.1.8.105@jar'
compileOnly "2686:476:twilightforest-1.12.2-3.9.888-universal@jar"
compileOnly "2710:204:HammerCore-1.12.2-2.0.4.7@jar"
compileOnly "2733:984:AdvancedRocketry-1.12.2-1.6.0-151-universal@jar"
compileOnly "2731:147:LibVulpes-1.12.2-0.4.1-59-universal@jar"
compileOnly "2724:738:gaiadimension-1.12.2-1.0.5@jar"
compileOnly curse.resolve("journeymap", "2682920")
}
mixin {
add sourceSets.main, "mixins.jeidsi.refmap.json"
}
jar {
manifest.attributes(
"FMLCorePluginContainsFMLMod": "true",
"TweakClass": "org.spongepowered.asm.launch.MixinTweaker",
"FMLCorePlugin": "uk.bobbytables.jeidsi.core.JEIDsILoadingPlugin",
"ForceLoadAsMod": "true"
)
}
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 except the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}