Closed CraftedFury closed 4 years ago
@Brian-Graham
From Jitpack.io:
Easy to use package repository for Git
IE A type of Maven Repository you can use to link the api to your project.
From Googling "jitpack baritone" -> yields https://jitpack.io/p/cabaletta/baritone which allows you to link on any branch or commit, provided it is able to build successfully within Jitpack.
Followed the "copy and paste" instructions in their 1 step setup and got this error (as someone mentioned in my previous question, apparently this doesn't work for baritone pre 1.3?):
Could not find method implementation() for arguments [com.github.cabaletta:baritone:1.2.11] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
This is my repositories:
repositories {
mavenCentral()
maven {
name = 'spongepowered-repo'
url = 'https://repo.spongepowered.org/maven'
}
maven {
name = 'impactdevelopment-repo'
url = 'https://impactdevelopment.github.io/maven/'
}
maven {
name = 'jitpack-repo'
url = 'https://jitpack.io'
}
/*flatDir {
dirs 'libs'
}*/
}
This is my dependencies:
dependencies {
provided("org.spongepowered:mixin:0.7.11-SNAPSHOT") {
//transitive = false
// Mixin includes a lot of dependencies that are too up-to-date
exclude module: 'launchwrapper'
exclude module: 'guava'
exclude module: 'gson'
exclude module: 'commons-io'
exclude module: 'log4j-core'
}
implementation 'com.github.cabaletta:baritone:1.2.11'
}
If I change implementation
to compile
, it works... I'm not even sure what the difference is... time to google it.
I assume this is because I'm using an old Gradle version (2.14.1) because I'm using an ancient forge version.
What's the proper forge version i should be using for Minecraft Forge 1.12.2?
This is my minecraft section:
minecraft {
version = "1.12.2-14.23.5.2768"
runDir = 'run'
// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not allways work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "snapshot_20171003"
//mappings = 'stable_39'
// The sources jar should use SRG names not MCP to ensure compatibility with all mappings
//makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}
That's proper.
You should use the latest forge and the latest stable mappings for 1.12.2. The Gradle version doesn't matter other then if it works with your ForgeGradle version however you should use compile
with ForgeGradle 2.3 or you may have some issues because it does not take in account for the newer un-deprecated methods for adding dependencies.
What do you need help with?
What is Jitpack (as mentioned in issue https://github.com/cabaletta/baritone/issues/1400) and how can it fix the issue outlined in the question.
Your collaborators need some help if the best they can do is answer with 4 words, to something with almost no google presence, or how and why it can fix my issue. (When this isn't even outlined or mentioned in the Setup documentation)
Final checklist