Compare commits

...

7 Commits

Author SHA1 Message Date
824a2cf0a3 MORE UPDATES
Some checks failed
build / build (17) (push) Failing after 4m11s
build / upload-release (push) Has been skipped
2025-01-21 04:39:04 +05:00
a112b38b1c MORE UPDATES 2025-01-21 04:32:33 +05:00
2a5f442a78 MORE UPDATES 2025-01-21 04:22:27 +05:00
d3fea6ca2d Update gradle 2025-01-21 04:21:35 +05:00
baba04d179 Update workflow file 2025-01-21 04:11:54 +05:00
4f0c236cff Update workflow file 2025-01-21 04:05:22 +05:00
9f80bf51f0 Update version and build files 2025-01-21 04:05:06 +05:00
4 changed files with 56 additions and 71 deletions

View File

@ -10,7 +10,7 @@ jobs:
RUN_NUMBER: ${{ gitea.run_number }}
strategy:
matrix:
java: [ '21' ]
java: [ '17' ]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
@ -50,9 +50,6 @@ jobs:
with:
name: create-air-fabric
- name: Extract files
run: unzip create-air-fabric
- name: Make release
uses: akkuman/gitea-release-action@v1
with:

View File

@ -1,13 +1,10 @@
plugins {
id 'fabric-loom' version '1.5-SNAPSHOT'
id "fabric-loom" version "1.8+"
id "io.github.p03w.machete" version "1.+" // automatic jar compressing on build
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
base.archivesName = archives_base_name
group = project.maven_group
String buildNumber = System.getenv("RUN_NUMBER")
@ -20,16 +17,24 @@ repositories {
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
maven { url = "https://maven.shedaniel.me/" } // Cloth Config, REI
maven { url = "https://dvs1.progwml6.com/files/maven/" } // JEI
maven { url = "https://maven.parchmentmc.org" } // Parchment mappings
maven { url = "https://maven.blamejared.com" } // JEI
maven {
name = 'ParchmentMC'
url = 'https://maven.parchmentmc.org'
}
maven { url = "https://maven.quiltmc.org/repository/release" } // Quilt Mappings
maven { url = "https://api.modrinth.com/maven" } // LazyDFU
maven { url = "https://maven.terraformersmc.com/releases/" } // Mod Menu
maven { url = "https://mvn.devos.one/snapshots/" } // Create, Porting Lib, Forge Tags, Milk Lib, Registrate
maven { url = "https://cursemaven.com" } // Forge Config API Port
maven { url = "https://maven.jamieswhiteshirt.com/libs-release" } // Reach Entity Attributes
maven { url = "https://jitpack.io/" } // Mixin Extras, Fabric ASM
maven { // Fabric ASM for Porting Lib
url = "https://jitpack.io/"
content { includeGroupAndSubgroups("com.github") }
}
maven { url = "https://maven.tterrag.com/" } // Flywheel
maven { url = "https://mvn.devos.one/snapshots/" } // Create and several dependencies
maven { url = "https://mvn.devos.one/releases/" } // Porting Lib releases
maven { url = "https://raw.githubusercontent.com/Fuzss/modresources/main/maven" } // Forge Config API Port
exclusiveContent {
forRepository {
@ -76,24 +81,25 @@ dependencies {
// Recipe Viewers - Create Fabric supports JEI, REI, and EMI.
// See root gradle.properties to choose which to use at runtime.
switch (recipe_viewer.toLowerCase(Locale.ROOT)) {
case "jei": modLocalRuntime("mezz.jei:jei-${minecraft_version}-fabric:${jei_version}"); break
case "rei": modLocalRuntime("me.shedaniel:RoughlyEnoughItems-fabric:${rei_version}"); break
case "emi": modLocalRuntime("dev.emi:emi:${emi_version}"); break
case "jei": modLocalRuntime("mezz.jei:jei-$minecraft_version-fabric:$jei_version"); break
case "rei": modLocalRuntime("me.shedaniel:RoughlyEnoughItems-fabric:$rei_version"); break
case "emi": modLocalRuntime("dev.emi:emi-fabric:$emi_version"); break
case "disabled": break
default: println("Unknown recipe viewer specified: ${recipe_viewer}. Must be JEI, REI, EMI, or disabled.")
default: println("Unknown recipe viewer specified: $recipe_viewer. Must be JEI, REI, EMI, or disabled.")
}
}
processResources {
// require dependencies to be the version compiled against or newer
Map<String, String> properties = new HashMap<>()
properties.put("version", version)
properties.put("fabric_loader_version", fabric_loader_version)
properties.put("fabric_api_version", fabric_api_version)
properties.put("create_version", "~" + create_version.split("-")[0] + "-" + create_version.split("-")[1])
properties.put("minecraft_version", minecraft_version)
Map<String, Object> properties = [
"version": version,
"fabric_loader_version": fabric_loader_version,
"fabric_api_version": fabric_api_version,
"create_version": create_version,
"minecraft_version": minecraft_version
]
properties.forEach((k, v) -> inputs.property(k, v))
inputs.properties(properties)
filesMatching("fabric.mod.json") {
expand properties
@ -102,7 +108,7 @@ processResources {
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = Integer.parseInt(sourceCompatibility)
it.options.release = 17
}
java {
@ -114,20 +120,3 @@ jar {
rename { "${it}_${project.archivesBaseName}"}
}
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// 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.
}
}

View File

@ -2,35 +2,35 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
fabric_loader_version=0.14.21
# check this on https://modmuss50.me/fabric.html
fabric_api_version=0.90.0+1.20.1
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
fabric_loader_version=0.16.9
# check this on https://modmuss50.me/fabric.html
fabric_api_version=0.92.2+1.20.1
# Mappings
# https://lambdaurora.dev/tools/import_quilt.html
qm_version = 23
# https://parchmentmc.org/docs/getting-started
parchment_version = 2023.06.26
# https://lambdaurora.dev/tools/import_quilt.html
qm_version = 23
# https://parchmentmc.org/docs/getting-started
parchment_version = 2023.09.03
# Mod Properties
mod_version = 1.0
maven_group = ru.bitheaven
archives_base_name = createairfabric
mod_version = 1.0
maven_group = ru.bitheaven
archives_base_name = createairfabric
# Dependencies
# https://modrinth.com/mod/create-fabric/versions
create_version = 0.5.1-f-build.1329+mc1.20.1
# https://modrinth.com/mod/thin-air/versions
thinair_version = v8.1.5-1.20.1-Fabric
# https://modrinth.com/mod/ad-astra/versions
adastra_version = MxqFxL9C
botarium_version = 5a8eybLl
# set to disabled to have none of them.
recipe_viewer = disabled
# Mod Menu - https://modrinth.com/mod/modmenu/versions
modmenu_version = 4.1.2
# LazyDFU - https://modrinth.com/mod/lazydfu/versions
lazydfu_version = 0.1.3
# https://modrinth.com/mod/create-fabric/versions
create_version = 0.5.1-j-build.1631+mc1.20.1
# https://modrinth.com/mod/thin-air/versions
thinair_version = v8.1.5-1.20.1-Fabric
# https://modrinth.com/mod/ad-astra/versions
adastra_version = Xtm1uo8F
botarium_version = f3ATcSfq
# set to disabled to have none of them.
recipe_viewer = disabled
# Mod Menu - https://modrinth.com/mod/modmenu/versions
modmenu_version = 7.2.2
# LazyDFU - https://modrinth.com/mod/lazydfu/versions
lazydfu_version = 0.1.3

View File

@ -1,6 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists