-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (50 loc) · 1.33 KB
/
build.gradle
File metadata and controls
63 lines (50 loc) · 1.33 KB
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
plugins {
id 'net.fabricmc.fabric-loom' version '1.15.5'
id 'maven-publish'
}
version = "v${project.mod_version}-${project.minecraft_version}"
group = project.maven_group
base {
archivesName = "ResourceCraft"
}
repositories {
maven { url 'https://maven.midnightdust.eu/releases' }
maven { url 'https://maven.terraformersmc.com/' }
maven { url 'https://api.modrinth.com/maven' }
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// Config
implementation "eu.midnightdust:midnightlib:${project.midnightlib_version}"
// Mod Menu
implementation "com.terraformersmc:modmenu:${project.modmenu_version}"
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 25
}
java {
withSourcesJar()
toolchain {
languageVersion = JavaLanguageVersion.of(26)
}
}
tasks.withType(AbstractArchiveTask).configureEach {
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
}
}