-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c46cf6e
commit e07654c
Showing
17 changed files
with
127 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,24 @@ | ||
plugins { | ||
id 'eclipse' | ||
id 'java-library' | ||
id 'eclipse' | ||
id 'idea' | ||
id 'maven-publish' | ||
id 'net.minecraftforge.gradle' version '[6.0.24,6.2)' | ||
id 'org.parchmentmc.librarian.forgegradle' version '1.+' | ||
id 'org.spongepowered.mixin' version '0.7.+' | ||
id 'net.neoforged.gradle.userdev' version '7.0.145' | ||
id "me.modmuss50.mod-publish-plugin" version "0.7.4" | ||
id "com.modrinth.minotaur" version "2.+" | ||
} | ||
apply from: "main.gradle" | ||
apply plugin: 'net.minecraftforge.gradle' | ||
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. | ||
apply plugin: 'eclipse' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'org.parchmentmc.librarian.forgegradle' | ||
apply plugin: 'org.spongepowered.mixin' | ||
|
||
// Should exist on all loaders and is loader specific | ||
repositories { | ||
maven {url "https://modmaven.dev/" }// UnionLib | ||
maven {url "https://girafi.dk/maven/"} | ||
maven {url "https://www.cursemaven.com"} //CurseForge | ||
maven {url = "https://repo.spongepowered.org/maven"} // mixin | ||
maven {url "https://girafi.dk/maven/"} | ||
} | ||
|
||
dependencies { | ||
minecraft "net.minecraftforge:forge:${_minecraft_version}-" + _loader_version | ||
annotationProcessor "org.spongepowered:mixin:"+modMixinVersion+":processor" | ||
implementation('net.sf.jopt-simple:jopt-simple:5.0.4') { version { strictly '5.0.4' } } | ||
implementation ("net.neoforged:neoforge:${_loader_version}") | ||
|
||
implementation ("com.stereowalker.unionlib:UnionLib:${_minecraft_version}-${_unionlib_version}-${_loader}") | ||
} | ||
|
||
// These aren't loader specific and should exist on all loaders |
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
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
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
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,51 @@ | ||
project.ext._mod_jar = jar | ||
|
||
java.toolchain.languageVersion = JavaLanguageVersion.of(21) | ||
|
||
tasks.named('wrapper', Wrapper).configure { | ||
distributionType = Wrapper.DistributionType.BIN | ||
} | ||
|
||
minecraft { | ||
accessTransformers { | ||
file('src/main/resources/META-INF/accesstransformer.cfg') | ||
} | ||
} | ||
|
||
runs { | ||
configureEach { | ||
systemProperty 'forge.logging.markers', 'REGISTRIES' | ||
systemProperty 'forge.logging.console.level', 'debug' | ||
modSource project.sourceSets.main | ||
} | ||
client { | ||
systemProperty 'forge.enabledGameTestNamespaces', project._mod_id | ||
workingDirectory project.file("run/${project._loader}-Client") | ||
} | ||
server { | ||
systemProperty 'forge.enabledGameTestNamespaces', project._mod_id | ||
workingDirectory project.file("run/${project._loader}-Server") | ||
//programArgument '--nogui' | ||
} | ||
} | ||
|
||
sourceSets.main.resources { srcDir 'src/generated/resources' } | ||
|
||
configurations { | ||
runtimeClasspath.extendsFrom localRuntime | ||
} | ||
|
||
// Example for how to get properties into the manifest for reading by the runtime.. | ||
jar { | ||
manifest { | ||
attributes([ | ||
"Specification-Title": _mod_name, | ||
"Specification-Vendor": "Stereowalker", | ||
"Specification-Version": "1", // We are version 1 of ourselves | ||
"Implementation-Title": project.name, | ||
"Implementation-Version": "${version}", | ||
"Implementation-Vendor" :"Stereowalker", | ||
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") | ||
]) | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.