Exlll / ConfigLib

A Minecraft library for saving, loading, updating, and commenting YAML configuration files
MIT License
135 stars 17 forks source link

Support building with jitpack #13

Closed RobotHanzo closed 2 years ago

RobotHanzo commented 2 years ago

Allow users who don't want to use GitHub's maven to use jitpack.

Exlll commented 2 years ago

Could you please further explain how adding this file helps and how one would build with jitpack? Also do you know which artifacts are imported when someone loads the library via jitpack? In particular, how would you tell Gradle to only load the configlib-yaml version, for example?

repositories {
    maven(url = "https://jitpack.io")
}
dependencies {
    implementation("com.github.Exlll:ConfigLib:master-SNAPSHOT")
}
RobotHanzo commented 2 years ago
  1. Since this project uses Java 17 features, Jitpack requires the use of the file to indicate the JDK to use while building.
  2. Using my fork as an example:
    implementation 'com.github.RobotHanzo.ConfigLib:configlib-yaml:7ca7a8caec'

    Jitpack does support subprojects

Exlll commented 2 years ago

@RobotHanzo Works perfectly, thank you for your contribution! :slightly_smiling_face: I'll have time to update the README tomorrow.