-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
80 lines (59 loc) · 1.9 KB
/
build.gradle
File metadata and controls
80 lines (59 loc) · 1.9 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
plugins {
id "java"
id "cosmicloom"
id "maven-publish"
}
loom {
accessWidenerPath = file("src/main/resources/fuck_my_dyslexia.accesswidener")
}
repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
}
dependencies {
// Cosmic Reach
cosmicReach(loom.cosmicReachClient("pre-alpha", cosmic_reach_version))
cosmicReachServer(loom.cosmicReachServer("pre-alpha", cosmic_reach_version))
// Cosmic Quilt
modImplementation(loom.cosmicQuilt(cosmic_quilt_version))
// Modmenu
modImplementation("org.codeberg.CRModders:modmenu:${modmenu_version}")
}
processResources {
def resourceTargets = [ // Locations of where to inject the properties
"quilt.mod.json"
]
// Left item is the name in the target, right is the varuable name
def replaceProperties = [
"mod_version" : project.version,
"mod_group" : project.group,
"mod_name" : project.name,
"mod_id" : id,
]
inputs.properties replaceProperties
replaceProperties.put "project", project
filesMatching(resourceTargets) {
expand replaceProperties
}
}
java {
withSourcesJar()
// withJavadocJar() // If docs are included with the project, this line can be un-commented
// Sets the Java version
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
publishing {
publications {
maven(MavenPublication) {
groupId = group
artifactId = id
from components.java
}
}
repositories {
}
}