-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (44 loc) · 1.15 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
plugins {
id 'java-library'
id 'idea'
id 'maven-publish'
id 'net.neoforged.moddev' version '1.0.14'
id 'com.matthewprenger.cursegradle' version '1.4.0'
id 'com.modrinth.minotaur' version '2.+'
}
configurations {
runtimeClasspath.extendsFrom localImplementation
compileClasspath.extendsFrom localImplementation
}
version = (System.getenv("MOD_VERSION") ?: "0.0.0-local") + "-${minecraft_version}"
group = mod_group_id
base {
archivesName = artifact_name
}
logger.lifecycle("${mod_name} version ${version}")
apply from: 'dependencies.gradle'
tasks.named('jar') {
from "LICENSE"
}
task sourceJar(type: Jar) {
archiveClassifier.set("sources")
from sourceSets.main.allJava
from "LICENSE"
}
apply from: 'deploy.gradle'
apply from: 'neoforge.gradle'
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
sourceSets.main.resources { srcDir 'src/generated/resources' }
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
idea {
module {
downloadSources = true
downloadJavadoc = true
}
}
processResources {
duplicatesStrategy = 'exclude'
exclude(".cache")
}