-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
67 lines (56 loc) · 1.41 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
//file:noinspection GroovyAssignabilityCheck
plugins {
alias libs.plugins.quilt.loom
alias libs.plugins.quilt.licenser
alias libs.plugins.minotaur
//alias libs.plugins.machete
}
archivesBaseName = 'quilt_loading_screen'
version = "6.1.0+${libs.versions.minecraft.get()}"
repositories {
exclusiveContent {
forRepository {
maven {
name "Modrinth"
url 'https://api.modrinth.com/maven'
}
}
filter {
includeGroup 'maven.modrinth'
}
}
}
dependencies {
minecraft libs.minecraft
mappings(variantOf(libs.quilt.mappings) { classifier 'intermediary-v2' })
modApi libs.bundles.quilt
modImplementation libs.midnightlib
include libs.midnightlib
modImplementation libs.mod.menu
}
// TEMPORARY: until https://github.com/QuiltMC/quilt-loom/issues/28 gets fixed
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
it.sourceCompatibility = 17
}
jar.from 'LICENSE', 'README.md'
java.withSourcesJar()
license {
rule 'HEADER'
include '**/*.java'
}
modrinth {
projectId = 'quilt-loading-screen'
versionName = System.getenv().VERSION_NAME ?: versionNumber
changelog = System.getenv().CHANGELOG ?: DEFAULT_CHANGELOG
versionType = System.getenv().VERSION_TYPE ?: DEFAULT_VERSION_TYPE
uploadFile = remapJar
additionalFiles = [sourcesJar]
}