forked from YaLTeR/MouseTweaks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (91 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
}
}
//plugins {
// id "org.gradle.java"
// id "com.scuilion.syntastic" version "0.3.8"
//}
apply plugin: 'net.minecraftforge.gradle.liteloader'
apply plugin: 'org.spongepowered.mixin'
//apply plugin: 'net.minecraftforge.gradle.forge'
version = "2.8"
group = "yalter.mousetweaks"
archivesBaseName = "MouseTweaks"
minecraft {
//version = "1.12.1-14.22.0.2452"
version = "1.12.1"
runDir = "run"
mappings = "snapshot_20170804"
replace '@VERSION@', project.version
}
mixin {
defaultObfuscationEnv notch
}
jar {
from sourceSets.api.output
archiveName = "${project.archivesBaseName}-${version}-mc${project.minecraft.version}.jar"
}
sourceJar {
from sourceSets.api.allSource
archiveName = "${project.archivesBaseName}-${version}-mc${project.minecraft.version}-src.jar"
}
dependencies {
provided files('forgeSrc-1.12.1-14.22.0.2452.jar')
}
sourceSets {
main {
// java {
// exclude '**/liteloader/*'
// }
resources {
exclude 'litemod.json'
}
}
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
include 'litemod.json'
expand 'version':project.version, 'mcversion':project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
exclude 'litemod.json'
}
}
task apiJar(type: Jar) {
from sourceSets.api.output
archiveName = "${project.archivesBaseName}-${version}-mc${project.minecraft.version}-api.jar"
}
artifacts {
archives apiJar
}
//allprojects {
// gradle.projectsEvaluated {
// tasks.withType(JavaCompile) {
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
// }
// }
//}