team401 / 2024-Robot-Code

Competition code for our 2024 robot
Other
7 stars 0 forks source link

Add coppercore using Jitpack #202

Open aidnem opened 3 months ago

aidnem commented 3 months ago

Purpose Add coppercore as a dependency using jitpack. Potential alternative to #201 .

Project Scope

aidnem commented 3 months ago

@jkleiber it seems I'm getting somewhere! Poking around in some of the links in the error messages brought me here: the build log from jitpack's attempt to build our library. At the bottom, it states "⚠️ ERROR: No build artifacts found". I assume this means that if we can make our library produce an artifact(s?), it will let us build it.

jkleiber commented 3 months ago

@aidnem have you tried looking at this: https://jitpack.io/docs/BUILDING/ we might need to add something on the coppercore side to get it to build correctly in jitpack

aidnem commented 3 months ago

@jkleiber looks like I have to enable building publications in the build.gradle. Shall I branch off of Minh's JSON Controller Implementation branch just to give me something to import?

aidnem commented 3 months ago

I found a post online linking to an example project, these commits are what we're looking for it seems: 1: Using the published modules 2: Enabling publishing of the modules

The official jitpack modular example repo could also be what we want to copy.