This repository has been archived by the owner on May 24, 2023. It is now read-only.
generated from BocchiKessokuTeam/LegacyForgeTemplateMod-ArchLoom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (83 loc) · 2.83 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
buildscript {
dependencies {
classpath group: 'com.github.BocchiKessokuTeam', name: 'ArchitecturyLegacyLoom', version: 'dev~0.12.0-SNAPSHOT', changing: true
}
}
plugins {
//id "ArchitecturyLegacyLoom" version "dev~0.12.0-SNAPSHOT"
id "java"
id "maven-publish"
}
apply plugin: "dev.architectury.legacy.loom"
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaVersion.VERSION_1_8
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
loom {
forge {
// specify the mixin configs used in this mod
// this will be added to the jar manifest as well!
//mixinConfigs = [
// "examplemod.mixins.json"
//]
}
}
repositories {
maven { url "https://cursemaven.com" }
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "de.oceanlabs.mcp:mcp_${project.mcp_channel}:${project.mcp_version}@zip"
forge "net.minecraftforge:forge:${project.forge_version}"
modImplementation "curse.maven:FTBQuests-289412:${project.ftbquests_version}"
modImplementation "curse.maven:KubeJS-238086:${project.kubejs_version}"
}
processResources {
inputs.property "mod_version", project.version
inputs.property "mod_id", project.mod_id
inputs.property "mc_version", project.minecraft_version
filesMatching("mcmod.info") {
expand "mod_version": project.version
expand "mod_id": project.mod_id
expand "mc_version": project.minecraft_version
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.release = 8
}
java {
withSourcesJar()
}
jar {
manifest {
attributes([
"Specification-Title" : project.mod_id,
"Specification-Vendor" : project.mod_author,
"Specification-Version" : "1",
"Implementation-Title" : project.name,
"Implementation-Version" : version,
"Implementation-Vendor" : project.mod_author,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}