-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
babb6e0
commit 583f8cd
Showing
30 changed files
with
1,824 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')}" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
7
24w14a-1.21.1-fabric/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.