Cleanup build files

This commit is contained in:
FlorianMichael 2024-08-05 17:26:18 +02:00
parent 737901d5c7
commit 357b15055d
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 41 additions and 10 deletions

View File

@ -4,9 +4,10 @@ plugins {
}
base {
archivesName = project.archives_base_name
version = project.mod_version
group = project.maven_group
archivesName = project.maven_name
version = project.maven_version
description = project.maven_description
}
configurations {
@ -44,7 +45,7 @@ loom {
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
mappings "net.fabricmc:yarn:${project.yarn_version}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modJij(fabricApi.module("fabric-api-base", project.fabric_api_version))
@ -98,7 +99,9 @@ processResources {
filesMatching("fabric.mod.json") {
expand(
"version": project.version,
"description": project.description,
"implVersion": "git-${project.name}-${project.version}:${project.latestCommitHash()}",
"mcVersion": project.minecraft_version
)
}
}
@ -142,10 +145,37 @@ publishing {
publications {
maven(MavenPublication) {
groupId = project.maven_group
artifactId = project.archives_base_name
version = project.mod_version
artifactId = project.maven_name
version = project.maven_version
from components.java
pom {
name = artifactId
description = project.description
url = "https://github.com/ViaVersion/ViaFabricPlus"
licenses {
license {
name = "GPL-3.0 License"
url = "https://github.com/ViaVersion/ViaFabricPlus/blob/main/LICENSE"
}
}
developers {
developer {
id = "FlorianMichael"
name = "EnZaXD"
email = "florian.michael07@gmail.com"
}
developer {
id = "RK_01"
}
}
scm {
connection = "scm:git:git://github.com/ViaVersion/ViaFabricPlus.git"
developerConnection = "scm:git:ssh://github.com/ViaVersion/ViaFabricPlus.git"
url = "github.com/ViaVersion/ViaFabricPlus"
}
}
}
}
}

View File

@ -3,12 +3,13 @@ org.gradle.jvmargs=-Xmx8G
org.gradle.parallel=true
# Project Details
mod_version=3.4.4-SNAPSHOT
maven_group=de.florianmichael
archives_base_name=ViaFabricPlus
maven_name=ViaFabricPlus
maven_version=3.4.4-SNAPSHOT
maven_description=Fabric mod to connect to EVERY Minecraft server version (Release, Beta, Alpha, Classic, Snapshots, Bedrock) with QoL fixes to the gameplay
# Minecraft/Fabric
minecraft_version=1.21
yarn_mappings=1.21+build.8
yarn_version=1.21+build.9
loader_version=0.15.11
fabric_api_version=0.100.6+1.21

View File

@ -3,7 +3,7 @@
"id": "viafabricplus",
"version": "${version}",
"name": "ViaFabricPlus",
"description": "Fabric mod to connect to EVERY Minecraft server version (Release, Beta, Alpha, Classic, Snapshots, Bedrock) with QoL fixes to the gameplay",
"description": "${description}",
"authors": [
{
"name": "FlorianMichael/EnZaXD",
@ -54,7 +54,7 @@
"fabric-lifecycle-events-v1": ">=2.2.28",
"fabric-particles-v1": ">=1.1.6",
"fabric-registry-sync-v0": ">=4.0.13",
"minecraft": "1.21",
"minecraft": "${mcVersion}",
"java": ">=21"
},
"breaks": {