Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle

name: Gradle Package

on: push

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0

- name: Build with Gradle
run: ./gradlew build

- name: Publish build
uses: actions/upload-artifact@v4
with:
name: Package
path: build/libs
42 changes: 2 additions & 40 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,2 @@
# gradle

.gradle/
build/
out/
classes/

# eclipse

*.launch

# idea

.idea/
*.iml
*.ipr
*.iws

# vscode

.settings/
.vscode/
bin/
.classpath
.project

# macos

*.DS_Store

# fabric

run/

# java

hs_err_*.log
replay_*.log
*.hprof
*.jfr
build
.gradle
3 changes: 1 addition & 2 deletions Versionfiles/mcversion-1.21.4.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ fabric_versiononly=0.113.0

modmenu_version=12.0.0

gbfabrictools_version=1.4+1.20
crowdintranslate_version=1.4+1.19.3
gbfabrictools_version=1.4+1.20
11 changes: 11 additions & 0 deletions Versionfiles/mcversion-1.21.5.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
minecraft_version=1.21.5
yarn_mappings=1.21.5+build.1
loader_version=0.16.13

#Fabric api
fabric_version=0.121.0+1.21.5
fabric_versiononly=0.121.0

modmenu_version=14.0.0-rc.2

gbfabrictools_version=1.4+1.20
3 changes: 1 addition & 2 deletions Versionfiles/mcversion-1.21.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ fabric_versiononly=0.100.4

modmenu_version=10.0.0-beta.1

gbfabrictools_version=1.4+1.20
crowdintranslate_version=1.4+1.19.3
gbfabrictools_version=1.4+1.20
32 changes: 3 additions & 29 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,33 +1,13 @@
buildscript {
dependencies {
classpath 'de.guntram.mcmod:crowdin-translate:1.4+1.19-pre2'
}
repositories {
maven {
name = 'CrowdinTranslate source'
url = "https://minecraft.guntram.de/maven/"
}
}
}

plugins {
id 'fabric-loom' version '1.9-SNAPSHOT'
id 'fabric-loom' version '1.10.5'
id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
}

apply plugin: 'de.guntram.mcmod.crowdin-translate'
crowdintranslate.crowdinProjectName = 'antighost'
crowdintranslate.minecraftProjectName = 'antighost'
crowdintranslate.verbose = false

repositories {
maven {
url = "https://maven.fabricmc.net"
}
maven {
url = "https://minecraft.guntram.de/maven/"
}
maven {
url = "https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/"
}
Expand All @@ -37,10 +17,10 @@ sourceCompatibility = 21
targetCompatibility = 21

ext.Versions = new Properties()
Versions.load(file("Versionfiles/mcversion-1.21.4.properties").newReader())
Versions.load(file("Versionfiles/mcversion-1.21.5.properties").newReader())

archivesBaseName = "antighost"
ext.projectVersion = "1.3.0"
ext.projectVersion = "1.4.0"

version = "${Versions['minecraft_version']}-fabric${Versions['fabric_versiononly']}-${project.projectVersion}"

Expand All @@ -61,8 +41,6 @@ dependencies {
mappings "net.fabricmc:yarn:${Versions['yarn_mappings']}:v2"
modImplementation "net.fabricmc:fabric-loader:${Versions['loader_version']}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${Versions['fabric_version']}"
modImplementation "de.guntram.mcmod:crowdin-translate:${Versions['crowdintranslate_version']}"
include "de.guntram.mcmod:crowdin-translate:${Versions['crowdintranslate_version']}"
}

java {
Expand All @@ -72,7 +50,3 @@ java {
jar {
from "LICENSE"
}

processResources {
dependsOn downloadTranslations
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Loading