-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
108 lines (87 loc) · 2.71 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 'fabric-loom' version '1.8-SNAPSHOT'
id 'maven-publish'
id "com.modrinth.minotaur" version "2.+"
}
repositories {
maven {
url 'https://masa.dy.fi/maven'
}
mavenCentral()
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
archivesBaseName = project.archives_base_name
version = project.minecraft_version+'-'+project.mod_version
group = project.maven_group
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "carpet:fabric-carpet:${project.carpet_minecraft_version}-${project.carpet_core_version}"
//discord
api "org.javacord:javacord-api:${project.javacord_version}"
api ("org.javacord:javacord-core:${project.javacord_version}") {
exclude group: 'org.apache.logging.log4j', module: 'log4j-api'
}
include "org.javacord:javacord-api:${project.javacord_version}"
include ("org.javacord:javacord-core:${project.javacord_version}") {
exclude group: 'org.apache.logging.log4j', module: 'log4j-api'
}
include 'io.vavr:vavr:0.10.4'
include "com.squareup.okhttp3:okhttp:4.9.3"
include 'com.squareup.okhttp3:logging-interceptor:4.9.3'
include "com.squareup.okio:okio:2.8.0"
include 'org.jetbrains.kotlin:kotlin-stdlib:1.4.10'
include 'com.fasterxml.jackson.core:jackson-databind:2.12.7.1'
include "com.fasterxml.jackson.core:jackson-annotations:2.12.6"
include "com.fasterxml.jackson.core:jackson-core:2.12.6"
include "com.neovisionaries:nv-websocket-client:2.14"
// soft dependencies
modCompileOnly 'maven.modrinth:scarpet-graphics:0.1.4'
runtimeOnly 'maven.modrinth:scarpet-graphics:0.1.4'
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.mod_version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 21
}
java {
withSourcesJar()
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"}
}
}
import com.modrinth.minotaur.dependencies.ModDependency
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "m00L1GVJ"
versionNumber = project.mod_version
versionType = "release"
uploadFile = remapJar
loaders = ["fabric"]
dependencies = [
// carpet
new ModDependency("TQTTVgYE" ,"required")
]
try {
changelog = rootProject.file("changelog.md").text
} catch(FileNotFoundException ignored) { // github actions would fail otherwise
changelog = ""
}
syncBodyFrom = rootProject.file("README.md").text
}