2022-06-10 18:58:26 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2024-05-01 14:11:52 +02:00
|
|
|
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
|
2024-10-09 08:46:44 +02:00
|
|
|
id "xyz.wagyourtail.unimined" version "1.3.9" apply false
|
2024-07-09 22:53:50 +02:00
|
|
|
id "com.hypherionmc.modutils.modpublisher" version "2.1.6"
|
2024-05-19 14:18:58 +02:00
|
|
|
id "com.hypherionmc.modutils.orion" version "1.0.+"
|
2023-05-12 19:20:02 +02:00
|
|
|
id 'maven-publish'
|
2022-06-10 18:58:26 +02:00
|
|
|
}
|
|
|
|
|
2024-05-01 23:41:14 +02:00
|
|
|
orion.setup {
|
2024-05-01 14:11:52 +02:00
|
|
|
multiProject = true
|
|
|
|
enableMirrorMaven = true
|
|
|
|
enableReleasesMaven = true
|
2023-05-12 19:20:02 +02:00
|
|
|
|
2024-05-01 14:11:52 +02:00
|
|
|
dopplerToken = System.getenv("DOPPLER_KEY")
|
2023-05-28 21:52:26 +02:00
|
|
|
|
2024-05-01 14:11:52 +02:00
|
|
|
versioning {
|
2024-05-09 19:41:18 +02:00
|
|
|
var relType = project.properties["releaseType"] ?: "${release_type}"
|
|
|
|
identifier("${relType}")
|
2024-05-01 14:11:52 +02:00
|
|
|
}
|
2023-05-28 21:55:09 +02:00
|
|
|
}
|
2022-05-12 00:20:18 +02:00
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
group = project_group
|
2023-05-29 18:24:39 +02:00
|
|
|
|
2023-05-28 21:55:09 +02:00
|
|
|
subprojects {
|
2023-11-12 12:30:11 +02:00
|
|
|
apply plugin: "xyz.wagyourtail.unimined"
|
|
|
|
apply plugin: "java"
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
2024-05-05 23:15:56 +02:00
|
|
|
apply plugin: 'com.hypherionmc.modutils.modpublisher'
|
2022-06-10 18:58:26 +02:00
|
|
|
|
2024-05-05 23:15:56 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
|
|
targetCompatibility = JavaVersion.VERSION_21
|
2022-05-12 00:20:18 +02:00
|
|
|
|
2024-05-04 20:51:43 +02:00
|
|
|
group = rootProject.group
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2024-05-01 18:28:52 +02:00
|
|
|
|
|
|
|
maven {
|
|
|
|
name = "Modrinth"
|
|
|
|
url = "https://api.modrinth.com/maven"
|
|
|
|
content {
|
|
|
|
includeGroup "maven.modrinth"
|
|
|
|
}
|
|
|
|
}
|
2023-11-12 12:30:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
shade
|
|
|
|
modCompileOnly
|
2024-10-09 08:46:44 +02:00
|
|
|
stupidRemapArch
|
2023-11-12 12:30:11 +02:00
|
|
|
implementation.extendsFrom shade
|
|
|
|
compileOnly.extendsFrom modCompileOnly
|
2024-10-09 08:46:44 +02:00
|
|
|
compileOnly.extendsFrom stupidRemapArch
|
2023-11-12 12:30:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-05-01 14:11:52 +02:00
|
|
|
// All Projects
|
|
|
|
shade "me.hypherionmc.moon-config:core:${moon_config}"
|
|
|
|
shade "me.hypherionmc.moon-config:toml:${moon_config}"
|
2024-08-10 14:13:51 +02:00
|
|
|
shade "me.hypherionmc.moon-config:json:${moon_config}"
|
2024-05-01 14:11:52 +02:00
|
|
|
shade "com.hypherionmc:rpcsdk:${rpc_sdk}"
|
|
|
|
shade "me.hypherionmc.sdlink:mcdiscordformatter-1.20.3:${discord_formatter}"
|
|
|
|
shade "net.kyori:adventure-api:${adventure}"
|
|
|
|
shade "net.kyori:adventure-text-serializer-gson:${adventure}"
|
2024-08-31 12:19:08 +02:00
|
|
|
shade "net.kyori:adventure-text-minimessage:${adventure}"
|
2024-05-01 13:26:18 +02:00
|
|
|
|
2024-10-09 08:46:44 +02:00
|
|
|
stupidRemapArch("dev.ftb.mods:ftb-essentials:${ftb_essentials}")
|
|
|
|
|
2024-08-10 14:13:51 +02:00
|
|
|
compileOnly 'net.luckperms:api:5.4'
|
2024-05-01 13:26:18 +02:00
|
|
|
compileOnly("org.projectlombok:lombok:${lombok}")
|
|
|
|
annotationProcessor("org.projectlombok:lombok:${lombok}")
|
2023-11-12 12:30:11 +02:00
|
|
|
}
|
2023-09-25 20:18:35 +02:00
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
jar {
|
2022-05-12 00:18:53 +02:00
|
|
|
manifest {
|
|
|
|
attributes([
|
2022-06-10 18:58:26 +02:00
|
|
|
'Specification-Title' : mod_name,
|
|
|
|
'Specification-Vendor' : mod_author,
|
|
|
|
'Specification-Version' : project.jar.archiveVersion,
|
|
|
|
'Implementation-Title' : project.name,
|
|
|
|
'Implementation-Version' : project.jar.archiveVersion,
|
|
|
|
'Implementation-Vendor' : mod_author,
|
|
|
|
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
|
2024-01-01 21:42:14 +02:00
|
|
|
'Timestamp' : System.currentTimeMillis(),
|
2022-06-10 18:58:26 +02:00
|
|
|
'Built-On-Java' : "${System.getProperty('java.vm.version')} (${System.getProperty('java.vm.vendor')})",
|
2024-05-01 14:11:52 +02:00
|
|
|
'Built-On-Minecraft' : minecraft_version
|
2022-05-12 00:18:53 +02:00
|
|
|
])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-12 12:30:11 +02:00
|
|
|
/**
|
|
|
|
* ===============================================================================
|
|
|
|
* = DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =
|
|
|
|
* ===============================================================================
|
|
|
|
*/
|
|
|
|
unimined.minecraft(sourceSets.main, true) {
|
|
|
|
version minecraft_version
|
|
|
|
|
|
|
|
mappings {
|
|
|
|
mojmap()
|
|
|
|
devNamespace "mojmap"
|
|
|
|
}
|
2024-10-09 08:46:44 +02:00
|
|
|
|
|
|
|
mods {
|
|
|
|
remap(configurations.stupidRemapArch) {
|
|
|
|
catchAWNamespaceAssertion()
|
|
|
|
}
|
|
|
|
}
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
|
|
it.options.encoding = 'UTF-8'
|
2024-10-09 08:46:44 +02:00
|
|
|
it.options.release = 21
|
2022-05-12 00:18:53 +02:00
|
|
|
}
|
|
|
|
|
2024-05-01 14:11:52 +02:00
|
|
|
tasks.withType(GenerateModuleMetadata).configureEach {
|
2022-05-12 00:18:53 +02:00
|
|
|
enabled = false
|
|
|
|
}
|
2023-05-12 19:20:02 +02:00
|
|
|
}
|
|
|
|
|
2024-05-01 14:11:52 +02:00
|
|
|
// TODO MODULE JARS
|