{"id":36822356,"url":"https://github.com/ooftf/ooftf-maven","last_synced_at":"2026-01-12T14:01:52.480Z","repository":{"id":57721932,"uuid":"364850568","full_name":"ooftf/ooftf-maven","owner":"ooftf","description":"简化上传mavenCentral配置","archived":false,"fork":false,"pushed_at":"2021-05-10T03:33:32.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-26T22:02:39.918Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Groovy","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/ooftf.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}},"created_at":"2021-05-06T09:09:46.000Z","updated_at":"2021-05-12T07:00:31.000Z","dependencies_parsed_at":"2022-09-26T21:50:27.016Z","dependency_job_id":null,"html_url":"https://github.com/ooftf/ooftf-maven","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/ooftf/ooftf-maven","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Fooftf-maven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Fooftf-maven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Fooftf-maven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Fooftf-maven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ooftf","download_url":"https://codeload.github.com/ooftf/ooftf-maven/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Fooftf-maven/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-12T14:01:17.743Z","updated_at":"2026-01-12T14:01:52.388Z","avatar_url":"https://github.com/ooftf.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ooftf-maven\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.ooftf/ooftf-maven/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.ooftf/ooftf-maven)\n## 描述\n简化上传到mavenCentral的配置\n## 使用\nproject.gradle\n```groovy\n classpath \"com.github.ooftf:ooftf-maven:1.0.4\"\n```\nlibrary.gradle\n```groovy\n apply plugin: 'ooftf-maven'\n publish{\n    version = '1.0.0'\n    groupId = 'com.github.ooftf'\n }\n\n```\n local.properties\n```\n maven.username=ooftf\n maven.password=*******\n signing.keyId=xxxxxxxx\n signing.password=xxxxxxxx\n```\n签名文件放到 C:\\Users\\signing.gpg\n##  publish 可配置参数有\n* String groupId   默认 com.github.ooftf\n* String artifactId 默认 project.name\n* String version\n* String username  默认 ooftf\n* String password\n* String url  默认 maven\n* String signingKeyId\n* String signingPassword\n* String signingSecretKeyRingFile 默认 C:\\Users\\signing.gpg\n\n## 在local.properties可配置参数\n* maven.username\n* maven.password\n* signing.keyId\n* signing.password\n* signing.file\n## 可以添加 C:\\Users\\local.properties 文件作为全局配置\n## be careful\n* publish 配置优先于 local.properties\n* 如果 version 是以 SNAPSHOT 结尾上传到 snapshot仓库，否则上传到release仓库\n* SNAPSHOT 不签名\n### snapshot仓库\n        maven {\n            url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'\n        }\n#### release仓库\nmavenCentral()\n\n### 上传maven参考文档\n[Android库发布到Maven Central全攻略](https://xiaozhuanlan.com/topic/6174835029) 导出签名文件，应该选择Backup secret key\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooftf%2Fooftf-maven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fooftf%2Fooftf-maven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooftf%2Fooftf-maven/lists"}