forked from Teqed/Oculus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (91 loc) · 2.32 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
plugins {
id 'dev.architectury.loom' version '0.10.0-SNAPSHOT'
id 'maven-publish'
}
loom {
silentMojangMappingsLicense()
forge {
mixinConfigs = [
"mixins.oculus.json",
"mixins.oculus.fantastic.json",
"mixins.oculus.vertexformat.json",
"mixins.oculus.bettermipmaps.json",
"mixins.oculus.fixes.maxfpscrash.json",
"mixins.oculus.optimized-stitching.json",
"oculus-batched-entity-rendering.mixins.json",
"mixins.oculus.compat.sodium.json",
"mixins.oculus.compat.json"
]
}
mixin.defaultRefmapName = "oculus-mixins-refmap.json"
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
archivesBaseName = "${project.archives_base_name}-mc${project.minecraft_version}"
version = project.mod_version
group = project.maven_group
repositories {
mavenLocal()
maven {
name = "CurseForge"
url = "https://cursemaven.com"
content {
includeGroup "curse.maven"
}
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
configurations {
toJar
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
forge "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
compileOnly "org.apache.ant:ant:1.8.2"
modCompileOnly "maven.modrinth:rubidium:0.2.13"
//modCompileOnly "me.jellysquid.mods:Rubidium:0.2.13"
modCompileOnly "curse.maven:epic-fight-mod-405076:4029362"
modCompileOnly "curse.maven:pixelmon-389487:4718641"
implementation fileTree(include: ['*.jar'], dir: 'libs')
toJar fileTree(include: ['antlr4-runtime-4.10.1.jar', 'glsl-transformer-1.0.0-pre21.2.jar'], dir: 'libs')
}
processResources {
inputs.property "version", project.version
filesMatching("META-INF/mods.toml") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
it.options.release = targetVersion
}
}
java {
withSourcesJar()
}
jar {
from { configurations.toJar.collect { it.isDirectory() ? it : zipTree(it) } }
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
repositories {
}
}