Skip to content

Commit

Permalink
updated baritone proof of concept
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed Feb 27, 2023
1 parent 7b505a3 commit 5d9c9e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ minecraft {

configurations {
jarLibs
onlyJarLibs
// Force choosing the correct nightly build because Mac OS chooses an invalid one
all {
resolutionStrategy {
Expand Down Expand Up @@ -109,10 +110,10 @@ dependencies {
compileOnly 'org.jetbrains:annotations:23.0.0'

// This Baritone will NOT be included in the jar
implementation 'com.github.cabaletta:baritone:1.2.14'
implementation "com.github.rfresh2.baritone:baritone-deobf:d0ce0d1678"

// This Baritone WILL be included in the jar
jarLibs 'cabaletta:baritone-api:1.2'
onlyJarLibs 'com.github.cabaletta.baritone:baritone-api:v1.2.17'

// Add everything in jarLibs to implementation (compile)
implementation configurations.jarLibs
Expand Down Expand Up @@ -184,7 +185,7 @@ shadowJar {
'kotlin/**/*.kotlin_metadata',
'kotlin/**/*.kotlin_builtins',
'META-INF/*.version'
configurations = [project.configurations.jarLibs]
configurations = [project.configurations.jarLibs, project.configurations.onlyJarLibs]
relocate 'kotlin', 'com.lambda.shadow.kotlin'
relocate 'kotlinx', 'com.lambda.shadow.kotlinx'
finalizedBy 'configureReobfTaskForReobfShadowJar', 'reobfShadowJar'
Expand Down

0 comments on commit 5d9c9e1

Please sign in to comment.