Skip to content

Migrate package namespace from de.kherud to net.ladenthin#101

Open
bernardladenthin wants to merge 3 commits intomasterfrom
claude/migrate-domain-artifact-SFC1J
Open

Migrate package namespace from de.kherud to net.ladenthin#101
bernardladenthin wants to merge 3 commits intomasterfrom
claude/migrate-domain-artifact-SFC1J

Conversation

@bernardladenthin
Copy link
Copy Markdown
Owner

Summary

This PR migrates the entire project's Java package namespace from de.kherud.llama to net.ladenthin.llama, along with corresponding updates to the Maven coordinates and all native JNI bindings.

Key Changes

  • Package namespace migration: All Java source files moved from de.kherud.llama.* to net.ladenthin.llama.*
  • Maven coordinates updated:
    • groupId: de.kherudnet.ladenthin
    • artifactId: llamajava-llama.cpp
    • Version bumped to 4.2.0
  • JNI header and implementation updates: All native method signatures in jllama.h and jllama.cpp updated to use new package namespace
  • Native class lookups: Updated all FindClass() calls in JNI initialization to reference new package paths
  • Resource paths: Updated build artifact paths in CMakeLists.txt and GitHub Actions workflows to use new namespace structure
  • Developer metadata: Updated pom.xml with new maintainer information (Bernard Ladenthin) and repository URLs
  • New utility class: Added LlamaSystemProperties to centralize system property resolution under the new net.ladenthin.llama prefix
  • Documentation updates: Updated README.md and CLAUDE.md with new package references and system property names

Implementation Details

  • All 100+ Java files updated with new package declarations and import statements
  • JNI function names regenerated to match new package structure (e.g., Java_de_kherud_llama_LlamaModel_*Java_net_ladenthin_llama_LlamaModel_*)
  • System property prefix changed from de.kherud.llama.* to net.ladenthin.llama.* throughout the codebase
  • Build configuration and CI/CD workflows updated to reflect new resource directory structure

https://claude.ai/code/session_01F7sCo1ftokzKfe8PAUWZnT

claude added 3 commits April 28, 2026 10:51
…va-llama.cpp

- Move all Java packages from de.kherud.llama → net.ladenthin.llama (main + test)
- Add LlamaSystemProperties: dual-prefix property resolver (net.ladenthin has
  priority, de.kherud.llama falls back for backward compatibility)
- Wire LlamaSystemProperties into LlamaLoader (lib.path, tmpdir) and
  OSInfo (osinfo.architecture)
- Update JNI class names in jllama.cpp/jllama.h to net/ladenthin/llama/
- Rename JNI function prefixes: Java_de_kherud_llama_ → Java_net_ladenthin_llama_
- pom.xml: groupId → net.ladenthin, artifactId → java-llama.cpp, URLs/SCM
- README.md: Maven coords, resource path, Android proguard, property docs
- CMakeLists.txt: OSInfo class path, resource install dirs
- release.yaml: artifact paths, -D test.ngl property
- CLAUDE.md: source/resource paths

https://claude.ai/code/session_01F7sCo1ftokzKfe8PAUWZnT
No backward compatibility: the old prefix is not wired up (e.g. log level),
so keeping it would be misleading. LlamaSystemProperties now resolves
properties under the single net.ladenthin.llama prefix only. PREFIX_LEGACY
constant and the two-step fallback lookup are removed; PREFIX_CURRENT renamed
to PREFIX throughout.

https://claude.ai/code/session_01F7sCo1ftokzKfe8PAUWZnT
Keep the artifact ID as 'llama' (same as the original upstream).
Only the groupId changes to net.ladenthin.

https://claude.ai/code/session_01F7sCo1ftokzKfe8PAUWZnT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants