-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove all of the Architectury and Update
- Loading branch information
1 parent
b6538c3
commit ddd0c41
Showing
43 changed files
with
436 additions
and
834 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
- '**/src/**' | ||
- '.github/**' | ||
branches: | ||
- master | ||
- 2001-fabric | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,121 @@ | ||
plugins { | ||
id "architectury-plugin" version "3.4-SNAPSHOT" | ||
id "dev.architectury.loom" version "1.4-SNAPSHOT" apply false | ||
id 'fabric-loom' version '1.0-SNAPSHOT' | ||
id "me.shedaniel.unified-publishing" version "0.1.+" | ||
id "com.github.breadmoirai.github-release" version "2.4.1" | ||
} | ||
|
||
architectury { | ||
minecraft = rootProject.minecraft_version | ||
} | ||
def runNumber = (System.getenv("GITHUB_RUN_NUMBER") == null ? "9999" : System.getenv('GITHUB_RUN_NUMBER')) | ||
|
||
subprojects { | ||
apply plugin: "dev.architectury.loom" | ||
archivesBaseName = project.archives_base_name | ||
version = project.mod_version + "." + runNumber | ||
group = project.maven_group | ||
|
||
loom { | ||
silentMojangMappingsLicense() | ||
repositories { | ||
maven { | ||
url = "https://maven.parchmentmc.org" | ||
} | ||
maven { | ||
url "https://maven.kosmx.dev" | ||
} | ||
maven { | ||
url "https://maven.maxhenkel.de/repository/public" | ||
} | ||
maven { | ||
url = "https://api.modrinth.com/maven" | ||
} | ||
} | ||
|
||
dependencies { | ||
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}" | ||
// The following line declares the mojmap mappings, you may use other mappings as well | ||
mappings loom.layered() { | ||
officialMojangMappings() | ||
} | ||
|
||
// The following line declares the yarn mappings you may select this one as well. | ||
// mappings "net.fabricmc:yarn:1.16.5+build.10:v2" | ||
dependencies { | ||
// To change the versions see the gradle.properties file | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings loom.layered() { | ||
officialMojangMappings() | ||
parchment("org.parchmentmc.data:parchment-1.16.5:2022.03.06@zip") | ||
} | ||
modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}" | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | ||
|
||
modImplementation "de.maxhenkel.voicechat:voicechat-api:${project.voicechat_api}" | ||
modImplementation "maven.modrinth:simple-voice-chat:fabric-${project.voicechat}" | ||
|
||
modImplementation "io.github.kosmx.emotes:emotesMain:${project.emotecraft}" | ||
modImplementation "dev.kosmx.player-anim:player-animation-lib-fabric:${project.player_animation_lib}" | ||
modImplementation "maven.modrinth:emotecraft:${project.emotecraft}+${project.minecraft_version}-fabric" | ||
} | ||
|
||
allprojects { | ||
apply plugin: "java" | ||
apply plugin: "architectury-plugin" | ||
apply plugin: "maven-publish" | ||
processResources { | ||
inputs.property "version", project.version | ||
filteringCharset "UTF-8" | ||
|
||
def runNumber = (System.getenv("GITHUB_RUN_NUMBER") == null ? "9999" : System.getenv('GITHUB_RUN_NUMBER')) | ||
filesMatching("fabric.mod.json") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
archivesBaseName = rootProject.archives_base_name | ||
version = rootProject.mod_version + "." + runNumber | ||
group = rootProject.maven_group | ||
def targetJavaVersion = 17 | ||
tasks.withType(JavaCompile).configureEach { | ||
// ensure that the encoding is set to UTF-8, no matter what the system default is | ||
// this fixes some edge cases with special characters not displaying correctly | ||
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html | ||
// If Javadoc is generated, this must be specified in that task too. | ||
it.options.encoding = "UTF-8" | ||
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) { | ||
it.options.release = targetJavaVersion | ||
} | ||
} | ||
|
||
java { | ||
def javaVersion = JavaVersion.toVersion(targetJavaVersion) | ||
if (JavaVersion.current() < javaVersion) { | ||
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion) | ||
} | ||
archivesBaseName = project.archives_base_name | ||
// 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() | ||
} | ||
|
||
repositories { | ||
// Add repositories to retrieve artifacts from in here. | ||
// You should only use this when depending on other mods because | ||
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically. | ||
// See https://docs.gradle.org/current/userguide/declaring_repositories.html | ||
// for more information about repositories. | ||
maven { | ||
url = "https://maven.parchmentmc.org" | ||
} | ||
maven { | ||
url = "https://maven.kosmx.dev" | ||
} | ||
maven { | ||
url = "https://maven.maxhenkel.de/repository/public" | ||
} | ||
maven { | ||
url = "https://api.modrinth.com/maven" | ||
} | ||
jar { | ||
from("LICENSE") { | ||
rename { "${it}_${archivesBaseName}+${version}" } | ||
} | ||
} | ||
|
||
unifiedPublishing { | ||
project { | ||
displayName = "[Fabric $project.minecraft_version] v$project.version" | ||
releaseType = "release" | ||
gameVersions = ["1.20.1"] | ||
gameLoaders = ["fabric"] | ||
|
||
tasks.withType(JavaCompile) { | ||
options.encoding = "UTF-8" | ||
mainPublication remapJar | ||
|
||
// The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too | ||
// JDK 9 introduced a new way of specifying this that will make sure no newer classes or methods are used. | ||
// We'll use that if it's available, but otherwise we'll use the older option. | ||
def targetVersion = 8 | ||
if (JavaVersion.current().isJava9Compatible()) { | ||
options.release = targetVersion | ||
relations { | ||
depends { | ||
curseforge = modrinth = "emotecraft" | ||
} | ||
depends { | ||
curseforge = modrinth = "simple-voice-chat" | ||
} | ||
} | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
if (project.hasProperty("curse_api_key") || System.getenv("curse_api_key") != null) { | ||
curseforge { | ||
token = project.hasProperty("curse_api_key") ? project.property("curse_api_key") : System.getenv("curse_api_key") | ||
id = project.curseforge_id | ||
gameVersions.addAll "Java 8" | ||
} | ||
} | ||
|
||
if (project.hasProperty("modrinth_key") || System.getenv("modrinth_key") != null) { | ||
modrinth { | ||
token = project.hasProperty("modrinth_key") ? project.property("modrinth_key") : System.getenv("modrinth_key") | ||
id = project.modrinth_id | ||
version = "$project.version+Fabric" | ||
} | ||
} | ||
} | ||
} | ||
|
||
task modPublish | ||
task modPublish |
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
common/src/main/java/dev/bsmp/emotetweaks/util/EmoteProperties.java
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
common/src/main/java/dev/bsmp/emotetweaks/voicefx/SFXPacket.java
This file was deleted.
Oops, something went wrong.
98 changes: 0 additions & 98 deletions
98
common/src/main/java/dev/bsmp/emotetweaks/voicefx/SFXThread.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.