Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a3e6214
Upgrade Gson to 2.9.1, commons-io to 2.20.0, and unimined to 1.3.5.
Murat65536 Aug 3, 2025
e6e9878
Push back to working 1.3.4.
Murat65536 Aug 3, 2025
359e229
Update gradle.
Murat65536 Aug 4, 2025
2614117
Update nether pathfinder to 1.6 and Unimined to 1.3.15.
Murat65536 Aug 4, 2025
4b77b58
Roll back nether_pathfinder_version.
Murat65536 Aug 4, 2025
58ee6bb
Change everything to double quotes.
Murat65536 Aug 4, 2025
023e9ca
Redirect license to a URL that actually exists.
Murat65536 Aug 4, 2025
bef664b
I mean... it builds I guess?
Murat65536 Aug 5, 2025
f4ed086
Wait now it builds I think.
Murat65536 Aug 5, 2025
a661fa5
Update.
Murat65536 Aug 5, 2025
f280291
Small change. Still won't build lol.
Murat65536 Aug 11, 2025
b800e2d
Minor formatting changes.
Murat65536 Aug 30, 2025
77e5612
Upgrade unimined plugin to 1.4.1
Murat65536 Dec 24, 2025
c238b51
Small change
Murat65536 Dec 25, 2025
bb7a3ba
Change to Kotlin DSL
Murat65536 Dec 25, 2025
2e7a2d9
Slight change
Murat65536 Dec 25, 2025
f2580e3
Update Gradle
Murat65536 Dec 25, 2025
81592cd
Update Shadow
Murat65536 Dec 25, 2025
aaa0dfd
Formatting changes
Murat65536 Dec 26, 2025
172da2c
More Kotlin DSL implementation
Murat65536 Dec 26, 2025
8d99c03
Configurable Java variable
Murat65536 Dec 26, 2025
0fdc44c
R8 fixes and other general fixes
Murat65536 Dec 26, 2025
39c36c8
Fix Forge
Murat65536 Dec 26, 2025
ac83afb
General clean-up and add build.md
Murat65536 Dec 26, 2025
7e4b471
Remove tweaker
Murat65536 Dec 26, 2025
bc51769
Fix all those warnings
Murat65536 Jan 5, 2026
20cf766
Fix all those warnings part 2
Murat65536 Jan 7, 2026
47eb512
Small change
Murat65536 Jan 7, 2026
d79c491
Small change
Murat65536 Jan 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ volderyarn/

# Gradle
build/
buildSrc/build/
.gradle/
classes/
*.class
Expand Down
8 changes: 3 additions & 5 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ Here's what the various qualifiers mean
- **Standalone**: Everything is obfuscated. Other mods cannot use Baritone, but you get a bit of extra performance.
- **Unoptimized**: Nothing is obfuscated. This shouldn't be used in production, but is really helpful for crash reports.

- **No loader**: Loadable as a launchwrapper tweaker against vanilla Minecraft using a custom `version.json`.
- **Forge/Neoforge/Fabric**: Loadable as a standard mod using the respective loader. The fabric build may or may not work on Quilt.

If you build from source you will also find mapping files in the `dist` directory. These contain the renamings done by ProGuard and are useful if you want to read obfuscated stack traces.
If you build from source you will also find mapping files in the `dist` directory. These contain the renamings done by R8 and are useful if you want to read obfuscated stack traces.

## Build it yourself
- Clone or download Baritone
Expand Down Expand Up @@ -70,9 +69,8 @@ For more details, see [the build ci action](/.github/workflows/gradle_build.yml)

For most branches `gradlew build` should build everything, but there are exceptions and this file might be out of date.

More specifically, on older branches the setup used to be that `gradlew build` builds the tweaker jar
and `gradlew build -Pbaritone.forge_build` / `gradlew build -Pbaritone.fabric_build` are needed to build
for Forge/Fabric instead. And you might have to run `setupDecompWorkspace` first.
More specifically, on older branches you might need to run `gradlew build -Pbaritone.forge_build` / `gradlew build -Pbaritone.fabric_build`
to build for Forge/Fabric, and you might have to run `setupDecompWorkspace` first.

## IntelliJ
- Open the project in IntelliJ as a Gradle project
Expand Down
155 changes: 0 additions & 155 deletions build.gradle

This file was deleted.

122 changes: 122 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/*
* This file is part of Baritone.
*
* Baritone is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Baritone is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/

plugins {
id("baritone.base-conventions")
id("xyz.wagyourtail.unimined")
}

base.archivesName.set("${base.archivesName.get()}-common")

// Additional repositories needed for UniMined compatibility
// UniMined requires project-level repositories due to its dynamic repository management
repositories {
// Baritone-specific dependency repository
maven("https://babbaj.github.io/maven/") {
name = "babbaj-repo"
content {
includeModule("dev.babbaj", "nether-pathfinder")
}
}

// Mixin repository
maven("https://repo.spongepowered.org/repository/maven-public/") {
name = "spongepowered-repo"
content {
includeGroupByRegex("org\\.spongepowered.*")
}
}
}

dependencies {
// Add the same dependencies as minecraft-conventions but for the root project
compileOnly(libs.mixin)
compileOnly(libs.bundles.asm)
implementation(libs.nether.pathfinder)
testImplementation(libs.junit)
}

// Configure Minecraft for root project
unimined.minecraft {
version(libs.versions.minecraft.get())

mappings {
intermediary()
mojmap()
parchment(version = libs.versions.parchment.get())
}

runs.off = true
defaultRemapJar = false
}

sourceSets {
val main by getting

create("api") {
compileClasspath += main.compileClasspath
runtimeClasspath += main.runtimeClasspath
}

create("launch") {
compileClasspath += main.compileClasspath + main.runtimeClasspath + main.output + sourceSets["api"].output
runtimeClasspath += main.compileClasspath + main.runtimeClasspath + main.output + sourceSets["api"].output
}

create("schematica_api") {
compileClasspath += main.compileClasspath
runtimeClasspath += main.runtimeClasspath
}

main {
compileClasspath += sourceSets["api"].output
runtimeClasspath += sourceSets["api"].output
compileClasspath += sourceSets["schematica_api"].output
runtimeClasspath += sourceSets["schematica_api"].output
}

getByName("test") {
compileClasspath += main.compileClasspath + main.runtimeClasspath + main.output
runtimeClasspath += main.compileClasspath + main.runtimeClasspath + main.output
}
}

tasks {
jar {
from(
sourceSets["main"].output,
sourceSets["launch"].output,
sourceSets["api"].output
)
}

javadoc {
source = sourceSets["api"].allJava
classpath = sourceSets["api"].compileClasspath

(options as StandardJavadocDocletOptions).apply {
isLinkSource = true
encoding = "UTF-8"
addBooleanOption("html5", true)
}
}
}

// Add aggregate task for CI
tasks.register("ciBuild") {
dependsOn(subprojects.map { it.tasks.named("build") })
}
44 changes: 0 additions & 44 deletions buildSrc/build.gradle

This file was deleted.

Loading
Loading