Skip to content

Commit

Permalink
tear everything out, repackage to gay.debuggy and prepare fabric po…
Browse files Browse the repository at this point in the history
…rt for mc1.20(.1)
  • Loading branch information
woodiertexas committed Jan 8, 2025
1 parent 19b645c commit c3b3baf
Show file tree
Hide file tree
Showing 130 changed files with 85 additions and 9,446 deletions.
79 changes: 39 additions & 40 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import java.nio.charset.StandardCharsets

plugins {
id 'fabric-loom' version '1.9-SNAPSHOT'
id 'maven-publish'
alias(libs.plugins.quilt.loom)
alias(libs.plugins.minotaur)
}

archivesBaseName = project.archives_base_name
version = project.version
version = project.mod_version
group = project.maven_group

base {
archivesName = project.archives_base_name
}

repositories {
exclusiveContent {
forRepository {
Expand All @@ -22,71 +22,70 @@ repositories {
includeGroup "maven.modrinth"
}
}


maven {
url = "https://maven.quiltmc.org/repository/release"
}
}

dependencies {
minecraft libs.minecraft
mappings "org.quiltmc:quilt-mappings:${libs.versions.quilt.mappings.get()}:intermediary-v2"
modImplementation libs.quilt.loader
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "org.quiltmc:quilt-mappings:${project.yarn_mappings}:intermediary-v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

modImplementation libs.quilted.fabric.api
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation include("maven.modrinth:static-data:1.1.0+1.20.4")
modImplementation include("maven.modrinth:suspicious-shapes:1.0.5+1.20.4")
}

processResources {
inputs.property "version", version
inputs.property "version", project.version

filesMatching('quilt.mod.json') {
expand "version": version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}

tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 17
}

java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

withSourcesJar()
}

jar {
from("LICENSE") {
rename { "${it}_${archivesBaseName}" }
from('LICENSE') {
rename { "${it}_${base.archivesName.get()}" }
}

from('LICENSE-ASSETS.md') {
rename { "${it}_${base.archivesName.get()}" }
}
}

// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
create("mavenJava", MavenPublication) {
artifactId = project.archives_base_name
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {

}
}

modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "arch-ex"
uploadFile = remapJar
additionalFiles = [sourcesJar]
gameVersions = [libs.versions.minecraft.get()]
loaders = ["quilt"]
def ref = System.getenv("GITHUB_REF")
changelog = System.getenv("CHANGELOG") ?:
(ref != null && ref.startsWith("refs/tags/")) ?
"You may view the changelog at https://github.com/woodiertexas/architecture-extensions/releases/tag/${URLEncoder.encode(ref.substring(10), StandardCharsets.UTF_8)}" :
"No changelog is available. Perhaps poke at https://github.com/woodiertexas/architecture-extensions for a changelog?"

dependencies {
required.project "qsl"
// 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.
}
}
21 changes: 14 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Gradle Properties
org.gradle.jvmargs = -Xmx1G
org.gradle.parallel = true
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.16.9

# Mod Properties
version = 3.6.0+1.20.4
maven_group = io.github.debuggyteam
archives_base_name = architecture_extensions
mod_version=4.0.0+mc1.20.1
maven_group=gay.debuggy
archives_base_name=arch_ex

# Dependencies are managed at gradle/libs.versions.toml
# Dependencies
fabric_version=0.92.3+1.20.1
16 changes: 0 additions & 16 deletions gradle/libs.versions.toml

This file was deleted.

2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c3b3baf

Please sign in to comment.