Skip to content

Commit 9ad7916

Browse files
authored
Merge pull request #50 from MIA-Development-Team/deps/updatedeps
deps: update gradle
2 parents 285c3ab + 3d860ed commit 9ad7916

6 files changed

Lines changed: 11 additions & 52 deletions

File tree

build.gradle

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'idea'
33
id 'java-library'
44
id 'maven-publish'
5-
id 'net.neoforged.moddev' version '2.0.78'
5+
id 'net.neoforged.moddev' version '2.0.115'
66
}
77

88
tasks.named('wrapper', Wrapper).configure {
@@ -30,21 +30,18 @@ repositories {
3030
name = "Jared's maven"
3131
url = "https://maven.blamejared.com/"
3232
}
33-
3433
// Curios
3534
maven {
3635
name = "Curios"
3736
url = uri("https://maven.theillusivec4.top/")
3837
}
3938
// Patchouli
4039
maven { url 'https://maven.blamejared.com' }
41-
4240
// Simple Bedrock Model
4341
maven {
4442
url = "https://api.modrinth.com/maven"
4543
content { includeGroup "maven.modrinth" }
4644
}
47-
4845
// KubeJS
4946
maven {
5047
url "https://maven.latvian.dev/releases"
@@ -80,12 +77,14 @@ dependencies {
8077

8178
// Jade
8279
implementation "maven.modrinth:jade:${project.jade_version}"
80+
8381
// Simple Bedrock Model
84-
implementation jarJar("maven.modrinth:simplebedrockmodel:1.4.0-neoforge+mc1.21.1")
82+
implementation jarJar("maven.modrinth:simplebedrockmodel:$sbm_version")
83+
compileOnly("com.maydaymemory:mae:$mae_version")
8584

8685
// KubeJS
8786
api("dev.latvian.mods:kubejs-neoforge:$kubejs_version")
88-
interfaceInjectionData("dev.latvian.mods:kubejs-neoforge:$kubejs_version") // optional
87+
interfaceInjectionData("dev.latvian.mods:kubejs-neoforge:$kubejs_version")
8988
}
9089

9190
base {
@@ -96,24 +95,16 @@ base {
9695
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
9796

9897
neoForge {
99-
// Specify the version of NeoForge to use.
10098
version = project.neo_version
10199

102100
parchment {
103101
mappingsVersion = project.parchment_mappings_version
104102
minecraftVersion = project.parchment_minecraft_version
105103
}
106104

107-
// This line is optional. Access Transformers are automatically detected
108-
accessTransformers = project.files('src/main/resources/META-INF/accesstransformer.cfg')
109-
110-
// Default run configurations.
111-
// These can be tweaked, removed, or duplicated as needed.
112105
runs {
113106
client {
114107
client()
115-
116-
// Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
117108
systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id
118109
}
119110

@@ -123,45 +114,22 @@ neoForge {
123114
systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id
124115
}
125116

126-
// This run config launches GameTestServer and runs all registered gametests, then exits.
127-
// By default, the server will crash when no gametests are provided.
128-
// The gametest system is also enabled by default for other run configs under the /test command.
129117
gameTestServer {
130118
type = "gameTestServer"
131119
systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id
132120
}
133121

134122
data {
135123
data()
136-
137-
// example of overriding the workingDirectory set in configureEach above, uncomment if you want to use it
138-
// gameDirectory = project.file('run-data')
139-
140-
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
141124
programArguments.addAll '--mod', project.mod_id, '--all', '--output', file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath()
142125
}
143-
144-
// applies to all the run configs above
145126
configureEach {
146-
// Recommended logging data for a userdev environment
147-
// The markers can be added/remove as needed separated by commas.
148-
// "SCAN": For mods scan.
149-
// "REGISTRIES": For firing of registry events.
150-
// "REGISTRYDUMP": For getting the contents of all registries.
151127
systemProperty 'forge.logging.markers', 'REGISTRIES'
152-
153-
// Recommended logging level for the console
154-
// You can set various levels here.
155-
// Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
156128
logLevel = org.slf4j.event.Level.DEBUG
157129
}
158130
}
159131

160132
mods {
161-
// define mod <-> source bindings
162-
// these are used to tell the game which sources are for which mod
163-
// mostly optional in a single mod project
164-
// but multi mod projects should define one per mod
165133
"${mod_id}" {
166134
sourceSet(sourceSets.main)
167135
}
@@ -195,7 +163,6 @@ var generateModMetadata = tasks.register("generateModMetadata", ProcessResources
195163
mod_authors : mod_authors,
196164
mod_description : mod_description,
197165
curios_version_range : curios_version_range,
198-
geckolib_version_range : geckolib_version_range
199166
]
200167
inputs.properties replaceProperties
201168
expand replaceProperties

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ emi_version=1.1.22+1.21.1
2020
jade_version=15.10.1+neoforge
2121
patchouli_version=1.21-88-NEOFORGE
2222
kubejs_version=2101.7.1-build.181
23-
geckolib_version=4.7.6
24-
geckolib_version_range=[4.7.0,)
23+
sbm_version=1.4.0-neoforge+mc1.21.1
24+
mae_version=1.0.2
2525

2626
mod_id=mia
2727
mod_name=Made In Abyss

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.12.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ pluginManagement {
77
}
88

99
plugins {
10-
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.9.0'
10+
id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0'
1111
}

src/main/java/com/altnoir/mia/block/entity/EndlessCupBlockEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.jetbrains.annotations.Nullable;
1919

2020
public class EndlessCupBlockEntity extends BlockEntity {
21-
public FluidTank fluidTank = new FluidTank(100000) {
21+
public FluidTank fluidTank = new FluidTank(Integer.MAX_VALUE) {
2222
@Override
2323
protected void onContentsChanged() {
2424
setChanged();
@@ -56,6 +56,6 @@ public CompoundTag getUpdateTag(HolderLookup.Provider registries) {
5656
}
5757

5858
public static void tick(Level level, BlockPos pos, BlockState state, EndlessCupBlockEntity blockEntity) {
59-
blockEntity.fluidTank.fill(new FluidStack(Fluids.WATER, 100000), IFluidHandler.FluidAction.EXECUTE);
59+
blockEntity.fluidTank.fill(new FluidStack(Fluids.WATER, Integer.MAX_VALUE), IFluidHandler.FluidAction.EXECUTE);
6060
}
6161
}

src/main/templates/META-INF/neoforge.mods.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,6 @@ config="${mod_id}.mixins.json"
9292
ordering="NONE"
9393
side="BOTH"
9494

95-
#[[dependencies.${mod_id}]]
96-
# modId="geckolib"
97-
# type="required"
98-
# versionRange="${geckolib_version_range}"
99-
# ordering="NONE"
100-
# side="CLIENT"
101-
102-
10395
# Features are specific properties of the game environment, that you may want to declare you require. This example declares
10496
# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't
10597
# stop your mod loading on the server for example.

0 commit comments

Comments
 (0)