Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelDobCZ23 committed Jan 5, 2025
0 parents commit 2dee6c0
Show file tree
Hide file tree
Showing 16 changed files with 686 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf

# These are Windows script files and should use crlf
*.bat text eol=crlf

32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Java CI with Gradle

on: [pull_request, workflow_dispatch, push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"

- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.10.2

- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build

- name: Capture artifacts
uses: actions/upload-artifact@v4
with:
name: libs
path: |
build/libs
118 changes: 118 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# User-specific stuff
.idea/

*.iml
*.ipr
*.iws

# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

.gradle
build/

# Ignore Gradle GUI config
gradle-app.setting

# Cache of project
.gradletasknamecache

**/build/

# Common working directory
run/

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 KosmX

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file added README.md
Binary file not shown.
82 changes: 82 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
plugins {
kotlin("jvm") version "2.0.+"
id("fabric-loom") version "1.8.+"
id("maven-publish")
}

java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21

loom {
runtimeOnlyLog4j.set(true)
}

repositories {
mavenLocal()
mavenCentral()
maven("https://maven.kosmx.dev/")
maven("https://maven.shedaniel.me/")
maven("https://maven.terraformersmc.com/releases/")
maven("https://api.modrinth.com/maven"){
content {
includeGroup("maven.modrinth")
}
}
}

dependencies {
minecraft("com.mojang:minecraft:${project.properties["minecraft_version"]}")

mappings("net.fabricmc:yarn:${project.properties["yarn_mappings"]}:v2")
modImplementation("net.fabricmc:fabric-loader:${project.properties["loader_version"]}")

modImplementation("net.fabricmc.fabric-api:fabric-api:${project.properties["fabric_version"]}")
modImplementation("net.fabricmc:fabric-language-kotlin:${project.properties["fabric_kotlin"]}")

modImplementation("dev.kosmx.player-anim:player-animation-lib-fabric:${project.properties["player_anim"]}")

modLocalRuntime("com.terraformersmc:modmenu:${project.properties["mod_menu"]}")
modApi("me.shedaniel.cloth:cloth-config-fabric:${project.properties["cloth_config"]}") {
exclude(group = "net.fabricmc.fabric-api")
}
modCompileOnly("io.github.kosmx.emotes:emotesMain:${project.properties["emotecraft"]}")

modImplementation("maven.modrinth:emotecraft:${project.properties["emotecraft"]}+1.21.1-fabric")
modImplementation("maven.modrinth:flashback:${project.properties["flashback"]}")

}

base {
archivesName.set("${project.properties["archive_base_name"]}-${project.properties["mod_version"]}+mc${project.properties["minecraft_version"]}")
}

kotlin {
jvmToolchain(21)
}

tasks {
processResources {
inputs.property("version", project.version)
filteringCharset = "UTF-8"

filesMatching("fabric.mod.json") {
expand(mapOf("version" to project.version))
}
}

java {
withSourcesJar()
}
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}

repositories {
mavenLocal()
}
}
18 changes: 18 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
org.gradle.jvmargs=-Xmx16G

minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.16.9

fabric_version=0.107.0+1.21.1

fabric_kotlin=1.12.3+kotlin.2.0.21

player_anim=2.0.0-alpha1+1.21
mod_menu=11.0.3
cloth_config=15.0.140
emotecraft=2.4.6
flashback=0.15.0

mod_version=1.0
archive_base_name=emotecraft-flashback-addon
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 2dee6c0

Please sign in to comment.