{"id":18023711,"url":"https://github.com/katrix/sbt-spongyinfo","last_synced_at":"2025-09-16T17:54:04.613Z","repository":{"id":83323388,"uuid":"69904852","full_name":"Katrix/sbt-spongyinfo","owner":"Katrix","description":"Easily create Sponge plugins using SBT.","archived":false,"fork":false,"pushed_at":"2021-01-01T20:04:11.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-22T10:54:20.781Z","etag":null,"topics":["minecraft","sbt","scala","sponge"],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/Katrix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-10-03T19:45:52.000Z","updated_at":"2024-01-26T16:42:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"df75efeb-18bf-4909-bb81-5f82df663ede","html_url":"https://github.com/Katrix/sbt-spongyinfo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Katrix/sbt-spongyinfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Katrix%2Fsbt-spongyinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Katrix%2Fsbt-spongyinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Katrix%2Fsbt-spongyinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Katrix%2Fsbt-spongyinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Katrix","download_url":"https://codeload.github.com/Katrix/sbt-spongyinfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Katrix%2Fsbt-spongyinfo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275458377,"owners_count":25468396,"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","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["minecraft","sbt","scala","sponge"],"created_at":"2024-10-30T07:10:27.659Z","updated_at":"2025-09-16T17:54:04.557Z","avatar_url":"https://github.com/Katrix.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbt-spongyinfo\n\nsbt-spongyinfo is a sbt plugin that makes making plugins for Sponge easier and less tedious, saving you time wondering why your plugin isn't being detected correctly.\n\nTo add sbt-spongyinfo to your project, add this to your `plugins.sbt`\n\n```scala\nresolvers += \"SpongePowered\" at \"https://repo-new.spongepowered.org/repository/maven-public\"\naddSbtPlugin(\"net.katsstuff\" % \"sbt-spongyinfo\" % \"2.0.0-SNAPSHOT\")\n```\n\n## Features\n* Creates a dependency on on SpongeAPI automatically\n* Allows you to easily change the API version for a project\n* Automatically generates the `mcmod.info` file for you, based on information like the project id, name, version and so on.\n* Deploy your plugin to Ore from SBT\n* Cross sponge versions\n\n## Usage\n\nTo just roll with the default settings, simply enable the plugin for the project, like so `enablePlugins(SpongePlugin)`.\n\nTo set the Sponge version, use the key named `spongeApiVersion`. For example, to set the Sponge to 7.1.0, use `spongeApiVersion := \"7.0.0\"`. The default is currently `7.0.0`.\n\nsbt-spongyinfo will try to use information it can find about the project to generate a sensible `mcmod.info` or `plugins.json` file. Given this project here:\n\n```scala\nlazy val mymod = (project in file(\".\")).enablePlugins(SpongePlugin).settings(\n  scalaVersion := \"2.13.3\",\n  name := \"MyPlugin\",\n  version := \"1.0\",\n  description := \"An example project to show of sbt-spongyinfo\",\n  homepage := Some(url(\"http://mywebsite.net\"))\n)\n```\n\nit will generate this `mcmod.info` file:\n\n```json\n[\n    {\n        \"modid\": \"mymod\",\n        \"name\": \"MyMod\",\n        \"version\": \"1.0\",\n        \"description\": \"An example project to show of sbt-spongyinfo\",\n        \"url\": \"http://mywebsite.net\"\n    }\n]\n\n```\n\nTo set the information used to create the `mcmod.info`, use the key named `spongeV7.pluginInfo` or `spongeV8.pluginInfo`. Example:\n```scala\nspongeV7.PluginInfo := spongeV7.PluginInfo(\n  id               = \"myplugin\",\n  name             = Some(\"MyPlugin\"),\n  version          = Some(\"9.9.999\"),\n  description      = Some(\"My special plugin\"),\n  url              = Some(\"mywebsite.net\"),\n  authors          = Seq(\"Katrix\"),\n  dependencies     = Set(\n    spongeV7.Dependency(\n      loadOrder = spongeV7.LoadOrder.None, \n      id = \"myotherplugin\", \n      version = Some(\"1.1.0\"), \n      optional = false\n    )\n  )\n)\n```\nAll fields besides `id` are optional.\n\nIf you don't want a `mcmod.info` file created for a project, for example if it is a shared project, you can easily specify this like this `spongeV7.metaCreate := false`. This setting defaults to true for the Sponge API version your project is currently using.\n\nIf you want to manually create a `mcmod.info` file, run `spongeV7.metaFile`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatrix%2Fsbt-spongyinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatrix%2Fsbt-spongyinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatrix%2Fsbt-spongyinfo/lists"}