mikepenz / AboutLibraries

AboutLibraries automatically collects all dependencies and licenses of any gradle project (Kotlin MultiPlatform), and provides easy to integrate UI components for Android and Compose-jb environments
http://mikepenz.github.io/AboutLibraries/
Apache License 2.0
3.68k stars 423 forks source link

Colon in generated json filename causes problem in windows #1026

Closed sunragav closed 4 weeks ago

sunragav commented 4 weeks ago

About this issue

libs.versions.toml

[versions]
aboutLibraryVerison = "11.2.2"

[libraries]
mikepenz-aboutlibraries-compose-m3 = { group = "com.mikepenz", name = "aboutlibraries-compose-m3", version.ref = "aboutLibraryVerison" }

[plugins]
aboutLibrary = {id = "com.mikepenz.aboutlibraries.plugin", version.ref = "aboutLibraryVerison"}

Root build.gradle.kts:

alias(libs.plugins.aboutLibrary) apply false

app module build.gradle.kts

plugins {
    alias(libs.plugins.datadog.agp)
    alias(libs.plugins.android.application)
    alias(libs.plugins.aboutLibrary)
}

aboutLibraries {
    registerAndroidTasks = false
    configPath = "config"
}

And then the following command is used to generate the aboutlibraries.json

./gradlew app:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/res/raw/ -PaboutLibraries.exportVariant=prodRelease

When generated via mac and pushed to github, it looks like this in github (With mac having no problem):

image

But in windows the same files create problems. Also some new empty files are generated as you can see in the unresolved section: git-changes-in-widnows

Details

Checklist

mikepenz commented 4 weeks ago

Can you for completeness of the ticket please also add the details on the command you used to generate those files?

sunragav commented 4 weeks ago

@mikepenz Sorry I misunderstood that the json files in config folder are auto-generated by the tool, but they file naming convention used by one of the team members. I will close this issue.