maoruibin / maoruibin/maoruibin.github.com

修改已生成的 POM 文件

Open
#14 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

gradle
Dominant language
HTML
Stars
22
Forks
4
PR merge metrics
No merged PRs in 30d

Description

//https://discuss.gradle.org/t/dependency-in-a-custom-configuration-is-not-being-added-to-the-pom/7245
//追加 EventBus 的依赖
pom.withXml {
    def node = asNode().appendNode( 'dependencies').appendNode( 'dependency' )
    node.appendNode( 'groupId', 'org.greenrobot' )
    node.appendNode( 'artifactId', 'eventbus' )
    node.appendNode( 'version', "${libs.eventbus}" )
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the Groovy snippet in the issue and locate the build configuration that generates the POM. Determine the intended change to the generated dependencies and verify the resulting POM, since the issue does not name a file, test, or completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.