Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- maven { url "https://maven.architectury.dev/" }
- gradlePluginPortal()
- mavenCentral()
- }
- dependencies {
- classpath "dev.architectury:architectury-loom:1.7.423"
- }
- }
- plugins {
- id 'java'
- id 'dev.architectury.loom' version '1.7.423'
- id 'maven-publish'
- }
- apply plugin: 'dev.architectury.loom'
- sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
- archivesBaseName = project.archives_base_name
- version = project.mod_version
- group = project.maven_group
- loom {
- silentMojangMappingsLicense()
- forge {
- dataGen {
- mod project.mod_id
- }
- }
- }
- repositories {
- maven { url "https://maven.minecraftforge.net/" }
- maven { url "https://maven.architectury.dev/" }
- mavenCentral() // Fallback repository
- maven { url "https://maven.tterrag.com/" }
- maven { url "https://maven.blamejared.com" }
- }
- dependencies {
- minecraft "com.mojang:minecraft:${project.minecraft_version}"
- mappings loom.officialMojangMappings()
- forge "net.minecraftforge:forge:1.20.1:47.0.19" // Correct Forge version
- modImplementation("com.simibubi.create:create-${minecraft_version}:${create_version}:slim") { transitive = false }
- modImplementation("com.jozufozu.flywheel:flywheel-forge-${minecraft_version}:${flywheel_version}")
- modImplementation("com.tterrag.registrate:Registrate:${registrate_version}")
- modImplementation("curse.maven:lazydfu-460819:3544496")
- }
- processResources {
- inputs.property "version", project.version
- filesMatching("META-INF/mods.toml") {
- expand "version": project.version
- }
- }
- tasks.withType(JavaCompile) {
- options.encoding = "UTF-8"
- options.release = 17
- }
- java {
- withSourcesJar()
- }
- ext {
- mod_author = 'oscey'
- }
- 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) {
- // Add all the jars that should be included when publishing to Maven
- artifact(remapJar) {
- builtBy remapJar
- }
- artifact(sourcesJar) {
- builtBy remapSourcesJar
- }
- }
- }
- repositories {
- // Add repositories to publish to here, for example:
- // maven {
- // url = uri("https://example-repo.com/maven")
- // }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement