Skip to content

Commit

Permalink
Add JEI at runtime & patch workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Killarexe committed Jul 24, 2024
1 parent 26c21c0 commit 16dc824
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
Expand All @@ -36,5 +36,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: dimensional_expansion
path: ./build/libs/dimensional_expansion-0.9.3.jar
retention-days: 5
path: ./build/libs/dimensional_expansion-0.9.4a.jar
retention-days: 7
17 changes: 15 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,26 @@ configurations {
runtimeClasspath.extendsFrom localRuntime
}

repositories {
maven {
// location of the maven that hosts JEI files since January 2023
name = "Jared's maven"
url = "https://maven.blamejared.com/"
}
maven {
// location of a maven mirror for JEI files, as a fallback
name = "ModMaven"
url = "https://modmaven.dev"
}
}

dependencies {
// Example optional mod dependency with JEI
// The JEI API is declared for compile time use, while the full JEI artifact is used at runtime
// compileOnly "mezz.jei:jei-${mc_version}-common-api:${jei_version}"
// compileOnly "mezz.jei:jei-${mc_version}-neoforge-api:${jei_version}"
// We add the full version to localRuntime, not runtimeOnly, so that we do not publish a dependency on it
// localRuntime "mezz.jei:jei-${mc_version}-neoforge:${jei_version}"
localRuntime "mezz.jei:jei-${minecraft_version}-neoforge:${jei_version}"

// Example mod dependency using a mod jar from ./libs with a flat dir repository
// This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar
Expand Down Expand Up @@ -186,4 +199,4 @@ idea {
downloadSources = true
downloadJavadoc = true
}
}
}
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ neo_version_range=[21.0.0-beta,)
# The loader version range can only use the major version of FML as bounds
loader_version_range=[4,)

jei_version=19.5.0.49

## Mod Properties

# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63}
Expand All @@ -42,4 +44,4 @@ mod_group_id=github.killarexe.dimensional_expansion
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
mod_authors=Killar
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
mod_description=Dimensional Expansion is a Minecraft mod avaliable on NeoForge,\nwho adds new tools and weapons for your gears, blocks and for builders, items with special poperities\nand the main feature that is currenly in progress is a new dimension with dungeons, villages and other structures.
mod_description=Dimensional Expansion is a Minecraft mod avaliable on NeoForge,\nwho adds new tools and weapons for your gears, blocks and for builders, items with special poperities\nand the main feature that is currenly in progress is a new dimension with dungeons, villages and other structures.

0 comments on commit 16dc824

Please sign in to comment.