{"id":19151936,"url":"https://github.com/roaringbitmap/mavenroaringbitmapproject","last_synced_at":"2026-06-14T15:30:15.556Z","repository":{"id":259339450,"uuid":"877621731","full_name":"RoaringBitmap/MavenRoaringBitmapProject","owner":"RoaringBitmap","description":"Using the RoaringBitmap library from a GitHub package (maven + gradle)","archived":false,"fork":false,"pushed_at":"2024-10-24T01:00:11.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-24T15:29:15.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RoaringBitmap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-24T00:28:07.000Z","updated_at":"2024-10-24T01:00:15.000Z","dependencies_parsed_at":"2024-10-24T15:39:40.775Z","dependency_job_id":"43d42392-8971-4762-acc3-23e24e14a693","html_url":"https://github.com/RoaringBitmap/MavenRoaringBitmapProject","commit_stats":null,"previous_names":["roaringbitmap/mavenroaringbitmapproject"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoaringBitmap%2FMavenRoaringBitmapProject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoaringBitmap%2FMavenRoaringBitmapProject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoaringBitmap%2FMavenRoaringBitmapProject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoaringBitmap%2FMavenRoaringBitmapProject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoaringBitmap","download_url":"https://codeload.github.com/RoaringBitmap/MavenRoaringBitmapProject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240236361,"owners_count":19769580,"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":[],"created_at":"2024-11-09T08:16:06.085Z","updated_at":"2026-06-14T15:30:15.496Z","avatar_url":"https://github.com/RoaringBitmap.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MavenRoaringBitmapProject\n\nThis is a demonstration of how to use the RoaringBitmap library from a\nGitHub package.\n\n- [Maven](#maven)\n- [Gradle](#gradle)\n\n\n## Maven\n\nAdd the following dependency to your pom.xml file...\n\n```xml\n    \u003cdependency\u003e\n      \u003cgroupId\u003eorg.roaringbitmap\u003c/groupId\u003e\n      \u003cartifactId\u003eroaringbitmap\u003c/artifactId\u003e\n      \u003cversion\u003e1.3.12\u003c/version\u003e\n    \u003c/dependency\u003e\n```\n\nYou may adjust the version number.\n\nThen add the repository to your pom.xml file:\n\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003egithub\u003c/id\u003e\n        \u003cname\u003eRoaring Maven Packages\u003c/name\u003e\n        \u003curl\u003ehttps://maven.pkg.github.com/RoaringBitmap/RoaringBitmap\u003c/url\u003e\n        \u003creleases\u003e\u003cenabled\u003etrue\u003c/enabled\u003e\u003c/releases\u003e\n        \u003csnapshots\u003e\u003cenabled\u003etrue\u003c/enabled\u003e\u003c/snapshots\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\nSee our pom.xml file as an example.\n\nThe registry access is is protected by an authorisation. So you have to add your GitHub credentials to your global settings.xml: `$HOME\\.m2\\settings.xml`.\n\nYou will need a token which you can generate on GitHub.\n\n```\nGitHub \u003e Settings \u003e Developer Settings \u003e Personal access tokens \u003e Generate new token\n```\n\nThe token needs the read:packages permission. The token identifier is a long string such as `ghp_ieO----------kN`.\n\nThen put the following in your `settings.xml` file, within the `\u003cservers\u003e` element.\n\n```xml\n\u003cserver\u003e\n  \u003cid\u003egithub\u003c/id\u003e\n  \u003cusername\u003elemire\u003c/username\u003e\n  \u003cpassword\u003eghp_ieO----------kN\u003c/password\u003e\n\u003c/server\u003e\n```\n\nReplace `lemire` by your GitHub username and `ghp_ieO----------kN` by the token identifier\nyou just generated.\n\n## Gradle\n\nThe approach with gradle is similar. You still need your GitHub credentials. Go\nto \n\n```\nGitHub \u003e Settings \u003e Developer Settings \u003e Personal access tokens \u003e Generate new token\n```\n\nAnd create a token with read:packages permission.\n\nIf your GitHub user name is `lemire` and your GitHub personal token `ghp_ieOkN`,\nthen you can set them using system variables. Under bash, you can do it like so:\n```\nexport GITHUB_USER=lemire\nexport GITHUB_PASSWORD=ghp_ieOkN\n```\n\n\nIf you prefer you can write your GitHub credentials in your  gradle.properties\nfile\n\n```\n# gradle.properties\ngithubUser=lemire\ngithubPassword=ghp_ieOkN\n```\n\nThen all you need is the following `build.gradle` file:\n\n```groovy\nplugins {\n    id 'java'\n}\n\ngroup 'org.roaringbitmap' // name of your project\nversion '1.0-SNAPSHOT' // version of your project\n\nrepositories {\n    mavenCentral()\n    maven {\n        url 'https://maven.pkg.github.com/RoaringBitmap/RoaringBitmap'\n        credentials {\n            username = System.properties['githubUser'] ?: System.env.GITHUB_USER\n            password = System.properties['githubPassword'] ?: System.env.GITHUB_PASSWORD\n        }\n    }\n}\n\ndependencies {\n    implementation 'org.roaringbitmap:roaringbitmap:1.3.12'\n    testImplementation 'junit:junit:3.8.1'\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froaringbitmap%2Fmavenroaringbitmapproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froaringbitmap%2Fmavenroaringbitmapproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froaringbitmap%2Fmavenroaringbitmapproject/lists"}