-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
102 lines (84 loc) · 2.17 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
buildscript {
repositories {
jcenter()
}
// dependencies {
// classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
// }
}
plugins {
id 'com.github.johnrengelman.shadow' version '4.0.4'
id 'fabric-loom' version '0.2.5-SNAPSHOT'
id 'maven-publish'
}
minecraft {
}
group 'com.github.euonmyoji.yysplayer'
version '0.1.0'
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
gradlePluginPortal()
}
processResources {
inputs.property "version", project.version
from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}
from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
configurations {
shade
compile.extendsFrom(shade)
}
dependencies {
shade 'org.bytedeco:javacv:1.5.1'
shade 'org.bytedeco:ffmpeg-platform:4.1.3-1.5.1'
minecraft "com.mojang:minecraft:1.14.4"
mappings "net.fabricmc:yarn:1.14.4+build.14"
modCompile "net.fabricmc:fabric-loader:0.6.3+build.167"
// Fabric API. This is technically optional, but you probably want it anyway.
modCompile "net.fabricmc.fabric-api:fabric-api:0.4.1+build.245-1.14"
}
shadowJar {
configurations = [project.configurations.shade]
from sourceSets.main.output
// classifier = "" .?
}
//publishing {
// publications {
// mavenJava(MavenPublication) {
// // add all the jars that should be included when publishing to maven
// artifact(remapJar) {
// builtBy remapJar
// }
// artifact(sourcesJar) {
// builtBy remapSourcesJar
// }
// }
// }
//
// // select the repositories you want to publish to
// repositories {
// // uncomment to publish to the local maven
// // mavenLocal()
// }
//}
jar {
manifest {
attributes 'Main-Class': 'com.github.euonmyoji.yysplayer.Main'
}
from "LICENSE"
}
shadowJar.mustRunAfter(remapJar)
artifacts {
archives shadowJar
}