forked from Hashtag233/LightMeals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (63 loc) · 1.61 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
plugins {
id 'maven-publish'
alias libs.plugins.quilt.loom
}
archivesBaseName = project.archives_base_name
version = "${project.version}+${libs.versions.minecraft.get()}"
group = project.maven_group
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
mavenCentral()
}
dependencies {
minecraft libs.minecraft
mappings(loom.officialMojangMappings())
modImplementation libs.quilt.loader
modImplementation libs.quilted.fabric.api
modImplementation include("maven.modrinth:forge-config-api-port:v5.0.4-1.19.3-Fabric")
implementation "com.electronwill.night-config:core:3.6.5"
implementation "com.electronwill.night-config:toml:3.6.5"
}
processResources {
inputs.property 'version', version
filesMatching('quilt.mod.json') {
expand "version": version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
it.options.release = 17
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
// withJavadocJar()
}
jar {
filesMatching('LICENSE') {
rename '^(LICENSE.*?)(\\..*)?$', "\$1_${archivesBaseName}\$2"
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
}
}
loom {
accessWidenerPath = file("src/main/resources/lightmeals.accesswidener")
}