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 { base {
archivesName = project.archives_base_name
version = project.mod_version
group = project.maven_group group = project.maven_group
archivesName = project.maven_name
version = project.maven_version
description = project.maven_description
} }
configurations { configurations {
@ -44,7 +45,7 @@ loom {
dependencies { dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}" 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}" modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modJij(fabricApi.module("fabric-api-base", project.fabric_api_version)) modJij(fabricApi.module("fabric-api-base", project.fabric_api_version))
@ -98,7 +99,9 @@ processResources {
filesMatching("fabric.mod.json") { filesMatching("fabric.mod.json") {
expand( expand(
"version": project.version, "version": project.version,
"description": project.description,
"implVersion": "git-${project.name}-${project.version}:${project.latestCommitHash()}", "implVersion": "git-${project.name}-${project.version}:${project.latestCommitHash()}",
"mcVersion": project.minecraft_version
) )
} }
} }
@ -142,10 +145,37 @@ publishing {
publications { publications {
maven(MavenPublication) { maven(MavenPublication) {
groupId = project.maven_group groupId = project.maven_group
artifactId = project.archives_base_name artifactId = project.maven_name
version = project.mod_version version = project.maven_version
from components.java 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 org.gradle.parallel=true
# Project Details # Project Details
mod_version=3.4.4-SNAPSHOT
maven_group=de.florianmichael 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/Fabric
minecraft_version=1.21 minecraft_version=1.21
yarn_mappings=1.21+build.8 yarn_version=1.21+build.9
loader_version=0.15.11 loader_version=0.15.11
fabric_api_version=0.100.6+1.21 fabric_api_version=0.100.6+1.21

View File

@ -3,7 +3,7 @@
"id": "viafabricplus", "id": "viafabricplus",
"version": "${version}", "version": "${version}",
"name": "ViaFabricPlus", "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": [ "authors": [
{ {
"name": "FlorianMichael/EnZaXD", "name": "FlorianMichael/EnZaXD",
@ -54,7 +54,7 @@
"fabric-lifecycle-events-v1": ">=2.2.28", "fabric-lifecycle-events-v1": ">=2.2.28",
"fabric-particles-v1": ">=1.1.6", "fabric-particles-v1": ">=1.1.6",
"fabric-registry-sync-v0": ">=4.0.13", "fabric-registry-sync-v0": ">=4.0.13",
"minecraft": "1.21", "minecraft": "${mcVersion}",
"java": ">=21" "java": ">=21"
}, },
"breaks": { "breaks": {