{"id":14969740,"url":"https://github.com/heretere/hdl","last_synced_at":"2025-10-26T09:30:55.673Z","repository":{"id":54971077,"uuid":"328163487","full_name":"heretere/hdl","owner":"heretere","description":"Heretere's Dependency Loader","archived":false,"fork":false,"pushed_at":"2021-10-28T11:55:39.000Z","size":646,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T17:52:52.072Z","etag":null,"topics":["bukkit","java","spigot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heretere.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-09T13:39:50.000Z","updated_at":"2023-07-06T11:42:37.000Z","dependencies_parsed_at":"2022-08-14T07:50:22.608Z","dependency_job_id":null,"html_url":"https://github.com/heretere/hdl","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heretere%2Fhdl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heretere%2Fhdl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heretere%2Fhdl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heretere%2Fhdl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heretere","download_url":"https://codeload.github.com/heretere/hdl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238301228,"owners_count":19449404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bukkit","java","spigot"],"created_at":"2024-09-24T13:42:17.983Z","updated_at":"2025-10-26T09:30:55.344Z","avatar_url":"https://github.com/heretere.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heretere's Dependency Loader\n\n\u003cp align=\"left\"\u003e\n    \u003ca href=\"#\" onclick=\"return false;\"\u003e\n        \u003cimg alt=\"Maven Central\" src=\"https://img.shields.io/maven-central/v/com.heretere.hdl/core?style=for-the-badge\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"#\" onclick=\"return false;\"\u003e\n        \u003cimg alt=\"Lines of code\" src=\"https://img.shields.io/tokei/lines/github/heretere/hdl?style=for-the-badge\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"#\" onclick=\"return false;\"\u003e\n        \u003cimg alt=\"GitHub code size in bytes\" src=\"https://img.shields.io/github/languages/code-size/heretere/hdl?style=for-the-badge\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/heretere/hdl/blob/master/LICENSE\"\u003e\n        \u003cimg alt=\"GitHub license\" src=\"https://img.shields.io/github/license/heretere/hdl?style=for-the-badge\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n### Description\n\nHeretere's Dependency Loader is a runtime maven dependency handler. It has powered using a Gradle plugin to make solving transitive dependencies simple.\n\n### Why?\n\nCertain websites have capped jar sizes, this library allows you to supply a much smaller jar size without sacrificing\nthe amount of libraries you use in your project.\n\n### Documentation\n- [Wiki](https://github.com/heretere/hdl/wiki)\n\n---\n\n# Features\n\n- Automatically downloads, and loads maven dependencies at runtime\n- Easily create your own runtime dependency types on top of Maven\n- Downloads are cached to your plugin's data folder or to a different specified directory\n- Relocation isn't required since files are loaded into an isolated classloader\n\n#### Currently, Supported Dependency Types\n\n- All Maven repos\n\n---\n\n# Examples\n\n## Gradle Plugin\n\n```kotlin\nplugins {\n\tid(\"com.heretere.hdl.plugin\") version \"2.0.0\"\n}\n\ndependencies {\n\t// instead of implementation(\"com.google.guava:guava:31.0-jre\")\n\thdl(\"com.google.guava:guava:31.0-jre\")\n}\n```\n\nThe plugin will automatically include the core dependency so you can invoke it at runtime.\n\n## Main Class\n\n```java\n\timport com.heretere.hdl.impl.DependencyLoader;\n\n\tpublic class Main {\n\t\tpublic static void main(String[] args) {\n\t\t\tDependencyLoader loader = new DependencyLoader(/*Define a dependency directory path here*/);\n\t\t\t\n\t\t\tboolean success = loader.loadDependencies();\n\t\t\t\n\t\t\tif (!success) {\n\t\t\t\tthrow new RuntimeException(\"Failed to load dependencies\")\n\t\t\t\t\n\t\t\t\t//dependencies successfully loaded\n\t\t\t}\n\t\t}\n\t}\n```\n\n---\n\n# Usage\n\nUsage without Gradle plugin\n\n\u003cdetails\u003e\n\u003csummary\u003eMaven\u003c/summary\u003e\n\n```xml\n\u003c!-- Just the Core --\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.heretere.hdl\u003c/groupId\u003e\n    \u003cartifactId\u003ecore\u003c/artifactId\u003e\n    \u003cversion\u003eVersion\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n```xml\n\u003c!-- Spigot Version --\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.heretere.hdl\u003c/groupId\u003e\n    \u003cartifactId\u003ebukkit\u003c/artifactId\u003e\n    \u003cversion\u003eVersion\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\u003c/details\u003e\n\u003cdetails open\u003e\n\u003csummary\u003eGradle\u003c/summary\u003e\n\n```groovy\nrepositories {\n    mavenCentral()\n}\n```\n\n```groovy\n//Just the Core\ndependencies {\n    implementation 'com.heretere.hdl:core:Version'\n}\n```\n\n```groovy\n//Spigot Version\ndependencies {\n    implementation 'com.heretere.hdl:bukkit:Version'\n}\n```\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheretere%2Fhdl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheretere%2Fhdl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheretere%2Fhdl/lists"}