Skip to content

Commit

Permalink
1.21.1 supported
Browse files Browse the repository at this point in the history
Ready for maven publish

Upgrade fabric api to 0.102.1+1.21.1

Upgrade modmenu to 11.0.1

Upgrade fnml4j to 2.0.0-beta.3

Upgrade fabric loom to 1.8.0-alpha.4
  • Loading branch information
flowerinsnowdh committed Aug 14, 2024
1 parent babb6e0 commit 583f8cd
Show file tree
Hide file tree
Showing 30 changed files with 1,824 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ jobs:
steps:
- uses: actions/checkout@v4

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

- name: Setup Gradle
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2

- name: Distributions with Gradle Wrapper
run: |
cd 1.20.1-forge/
cd 24w14a-1.21.1-fabric/
./gradlew build
- name: Release
uses: softprops/action-gh-release@v2
with:
files: 1.20.1-forge//build/libs/great_scrollable_tooltips-*.jar
files: 24w14a-1.21.1-fabric/build/libs/*.jar
373 changes: 373 additions & 0 deletions 24w14a-1.21.1-fabric/LICENSE

Large diffs are not rendered by default.

93 changes: 93 additions & 0 deletions 24w14a-1.21.1-fabric/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
plugins() {
id('fabric-loom').version("${fabric_loom_version}")
id('maven-publish')
}

version = project.mod_version
group = project.maven_group

base() {
archivesName = project.archives_base_name
}

repositories() {
mavenCentral()

maven() {
url = 'https://maven.terraformersmc.com/releases/'
}

maven() {
url = 'https://repo.flowerinsnow.online/repository/maven-opensources/'
}

maven() {
url = 'https://cursemaven.com/'
}
}

dependencies() {
// To change the versions see the gradle.properties file
minecraft("com.mojang:minecraft:${project.minecraft_version}")
mappings("net.fabricmc:yarn:${project.yarn_mappings}:v2")
modImplementation("net.fabricmc:fabric-loader:${project.loader_version}")

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation("net.fabricmc.fabric-api:fabric-api:${project.fabric_version}")

// Uncomment the following line to enable the deprecated Fabric API modules.
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.

// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"

modImplementation("com.terraformersmc:modmenu:${modmenu_version}")
modImplementation("curse.maven:legendary-tooltips-fabric-542478:5591020") // Legendary Tooltips [Fabric] v1.4.11
include(api("online.flowerinsnow.fnml4j:interface:${fnml4j_version}"))
include(api("online.flowerinsnow.fnml4j:core:${fnml4j_version}"))
}

processResources() {
LinkedHashMap<String, ?> props = [
'version' : project.version
]
props.forEach(inputs::property)

filesMatching('fabric.mod.json') {
expand(props)
}
}

tasks.withType(JavaCompile).configureEach() {
it.options.release = 21
}

java() {
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

jar() {
from('LICENSE')
}

// configure the maven publication
publishing() {
publications() {
mavenJava(MavenPublication) {
artifactId = project.archives_base_name
from(components.java)
}
}

repositories() {
maven() {
url = "${System.getenv('PUBLISH_REPO_URL')}"
credentials() {
username = "${System.getenv('PUBLISH_REPO_USERNAME')}"
password = "${System.getenv('PUBLISH_REPO_PASSWORD')}"
}
}
}
}
20 changes: 20 additions & 0 deletions 24w14a-1.21.1-fabric/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G -Dfile.encoding=UTF-8
org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.15.11

# Mod Properties
mod_version=15.14.0-beta.1+fabric
maven_group=online.flowerinsnow.greatscrollabletooltips
archives_base_name=great-scrollable-tooltips

# Dependencies
fabric_version=0.102.1+1.21.1
modmenu_version=11.0.1
fnml4j_version=2.0.0-beta.3
fabric_loom_version=1.8.0-alpha.4
Binary file not shown.
7 changes: 7 additions & 0 deletions 24w14a-1.21.1-fabric/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 583f8cd

Please sign in to comment.