-
Notifications
You must be signed in to change notification settings - Fork 23
Fix module configuration for central repo release #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix module configuration for central repo release #90
Conversation
Change-Id: Ia6f7e1d8b2a2b15522c69feffa9032edba504eee
Summary of ChangesHello @chickenlj, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses the necessary configuration adjustments to prepare several modules for release to a central repository. The changes primarily involve standardizing and enriching the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request aims to configure the project's modules for a central repository release by removing example modules and adding metadata to various pom.xml files. While these changes are necessary for release, I've identified a critical issue with the module build order in the root pom.xml that will cause the build to fail. Additionally, there is significant duplication of metadata across submodule POMs, which should be inherited from the parent to improve maintainability. The SCM information added to these submodules also uses an incorrect format that could cause problems with release tooling.
|
|
||
| <modules> | ||
| <module>engine-core</module> | ||
| <module>sandbox-core</module> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <url>https://github.com/agentscope-ai/agentscope-runtime-java</url> | ||
| <organization> | ||
| <name>Alibaba Cloud Inc.</name> | ||
| <url>https://runtime.agentscope.io</url> | ||
| </organization> | ||
| <licenses> | ||
| <license> | ||
| <name>Apache 2.0</name> | ||
| <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
| <distribution>repo</distribution> | ||
| </license> | ||
| </licenses> | ||
| <developers> | ||
| <developer> | ||
| <id>chickenlj</id> | ||
| <name>Jun Liu</name> | ||
| <email>ken.lj.hz@gmail.com</email> | ||
| <organization>Alibaba Cloud</organization> | ||
| <organizationUrl>https://aliyun.com</organizationUrl> | ||
| </developer> | ||
| <developer> | ||
| <id>xuehuitian45</id> | ||
| <name>Huitian Xue</name> | ||
| <email>13069167198@163.com</email> | ||
| <organization>Alibaba Cloud</organization> | ||
| <organizationUrl>https://aliyun.com</organizationUrl> | ||
| </developer> | ||
| </developers> | ||
| <scm> | ||
| <connection>git://github.com/agentscope-ai/agentscope-runtime-java.git</connection> | ||
| <developerConnection>git@github.com:agentscope-ai/agentscope-runtime-java.git</developerConnection> | ||
| <url>https://github.com/agentscope-ai/agentscope-runtime-java</url> | ||
| </scm> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The url, organization, licenses, developers, and scm elements are duplicated from the parent pom.xml. This information is inherited by default, and duplicating it in each module increases maintenance overhead and can lead to inconsistencies. The recommended practice is to remove this redundant configuration and rely on inheritance from the parent POM.
Furthermore, if you decide to keep this configuration, the scm block is incorrectly formatted. It's missing the scm:git: prefix required by Maven, and the git:// protocol is outdated. This will likely cause issues with release plugins. The correct format would be:
<scm>
<connection>scm:git:https://github.com/agentscope-ai/agentscope-runtime-java.git</connection>
<developerConnection>scm:git:ssh://git@github.com/agentscope-ai/agentscope-runtime-java.git</developerConnection>
<url>https://github.com/agentscope-ai/agentscope-runtime-java</url>
</scm>Given the redundancy, the best solution is to remove this entire block.
| <url>https://github.com/agentscope-ai/agentscope-runtime-java</url> | ||
| <organization> | ||
| <name>Alibaba Cloud Inc.</name> | ||
| <url>https://runtime.agentscope.io</url> | ||
| </organization> | ||
| <licenses> | ||
| <license> | ||
| <name>Apache 2.0</name> | ||
| <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
| <distribution>repo</distribution> | ||
| </license> | ||
| </licenses> | ||
| <developers> | ||
| <developer> | ||
| <id>chickenlj</id> | ||
| <name>Jun Liu</name> | ||
| <email>ken.lj.hz@gmail.com</email> | ||
| <organization>Alibaba Cloud</organization> | ||
| <organizationUrl>https://aliyun.com</organizationUrl> | ||
| </developer> | ||
| <developer> | ||
| <id>xuehuitian45</id> | ||
| <name>Huitian Xue</name> | ||
| <email>13069167198@163.com</email> | ||
| <organization>Alibaba Cloud</organization> | ||
| <organizationUrl>https://aliyun.com</organizationUrl> | ||
| </developer> | ||
| </developers> | ||
| <scm> | ||
| <connection>git://github.com/agentscope-ai/agentscope-runtime-java.git</connection> | ||
| <developerConnection>git@github.com:agentscope-ai/agentscope-runtime-java.git</developerConnection> | ||
| <url>https://github.com/agentscope-ai/agentscope-runtime-java</url> | ||
| </scm> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The url, organization, licenses, developers, and scm elements are duplicated from the parent pom.xml. This information is inherited by default, and duplicating it in each module increases maintenance overhead and can lead to inconsistencies. The recommended practice is to remove this redundant configuration and rely on inheritance from the parent POM.
Furthermore, if you decide to keep this configuration, the scm block is incorrectly formatted. It's missing the scm:git: prefix required by Maven, and the git:// protocol is outdated. This will likely cause issues with release plugins. The correct format would be:
<scm>
<connection>scm:git:https://github.com/agentscope-ai/agentscope-runtime-java.git</connection>
<developerConnection>scm:git:ssh://git@github.com/agentscope-ai/agentscope-runtime-java.git</developerConnection>
<url>https://github.com/agentscope-ai/agentscope-runtime-java</url>
</scm>Given the redundancy, the best solution is to remove this entire block.
| <url>https://github.com/agentscope-ai/agentscope-runtime-java</url> | ||
| <organization> | ||
| <name>Alibaba Cloud Inc.</name> | ||
| <url>https://runtime.agentscope.io</url> | ||
| </organization> | ||
| <licenses> | ||
| <license> | ||
| <name>Apache 2.0</name> | ||
| <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
| <distribution>repo</distribution> | ||
| </license> | ||
| </licenses> | ||
| <developers> | ||
| <developer> | ||
| <id>chickenlj</id> | ||
| <name>Jun Liu</name> | ||
| <email>ken.lj.hz@gmail.com</email> | ||
| <organization>Alibaba Cloud</organization> | ||
| <organizationUrl>https://aliyun.com</organizationUrl> | ||
| </developer> | ||
| <developer> | ||
| <id>xuehuitian45</id> | ||
| <name>Huitian Xue</name> | ||
| <email>13069167198@163.com</email> | ||
| <organization>Alibaba Cloud</organization> | ||
| <organizationUrl>https://aliyun.com</organizationUrl> | ||
| </developer> | ||
| </developers> | ||
| <scm> | ||
| <connection>git://github.com/agentscope-ai/agentscope-runtime-java.git</connection> | ||
| <developerConnection>git@github.com:agentscope-ai/agentscope-runtime-java.git</developerConnection> | ||
| <url>https://github.com/agentscope-ai/agentscope-runtime-java</url> | ||
| </scm> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The url, organization, licenses, developers, and scm elements are duplicated from the parent pom.xml. This information is inherited by default, and duplicating it in each module increases maintenance overhead and can lead to inconsistencies. The recommended practice is to remove this redundant configuration and rely on inheritance from the parent POM.
Furthermore, if you decide to keep this configuration, the scm block is incorrectly formatted. It's missing the scm:git: prefix required by Maven, and the git:// protocol is outdated. This will likely cause issues with release plugins. The correct format would be:
<scm>
<connection>scm:git:https://github.com/agentscope-ai/agentscope-runtime-java.git</connection>
<developerConnection>scm:git:ssh://git@github.com/agentscope-ai/agentscope-runtime-java.git</developerConnection>
<url>https://github.com/agentscope-ai/agentscope-runtime-java</url>
</scm>Given the redundancy, the best solution is to remove this entire block.
| <url>https://github.com/agentscope-ai/agentscope-runtime-java</url> | ||
| <organization> | ||
| <name>Alibaba Cloud Inc.</name> | ||
| <url>https://runtime.agentscope.io</url> | ||
| </organization> | ||
| <licenses> | ||
| <license> | ||
| <name>Apache 2.0</name> | ||
| <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
| <distribution>repo</distribution> | ||
| </license> | ||
| </licenses> | ||
| <developers> | ||
| <developer> | ||
| <id>chickenlj</id> | ||
| <name>Jun Liu</name> | ||
| <email>ken.lj.hz@gmail.com</email> | ||
| <organization>Alibaba Cloud</organization> | ||
| <organizationUrl>https://aliyun.com</organizationUrl> | ||
| </developer> | ||
| <developer> | ||
| <id>xuehuitian45</id> | ||
| <name>Huitian Xue</name> | ||
| <email>13069167198@163.com</email> | ||
| <organization>Alibaba Cloud</organization> | ||
| <organizationUrl>https://aliyun.com</organizationUrl> | ||
| </developer> | ||
| </developers> | ||
| <scm> | ||
| <connection>git://github.com/agentscope-ai/agentscope-runtime-java.git</connection> | ||
| <developerConnection>git@github.com:agentscope-ai/agentscope-runtime-java.git</developerConnection> | ||
| <url>https://github.com/agentscope-ai/agentscope-runtime-java</url> | ||
| </scm> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The url, organization, licenses, developers, and scm elements are duplicated from the parent pom.xml. This information is inherited by default, and duplicating it in each module increases maintenance overhead and can lead to inconsistencies. The recommended practice is to remove this redundant configuration and rely on inheritance from the parent POM.
Furthermore, if you decide to keep this configuration, the scm block is incorrectly formatted. It's missing the scm:git: prefix required by Maven, and the git:// protocol is outdated. This will likely cause issues with release plugins. The correct format would be:
<scm>
<connection>scm:git:https://github.com/agentscope-ai/agentscope-runtime-java.git</connection>
<developerConnection>scm:git:ssh://git@github.com/agentscope-ai/agentscope-runtime-java.git</developerConnection>
<url>https://github.com/agentscope-ai/agentscope-runtime-java</url>
</scm>Given the redundancy, the best solution is to remove this entire block.
| <url>https://github.com/agentscope-ai/agentscope-runtime-java</url> | ||
| <organization> | ||
| <name>Alibaba Cloud Inc.</name> | ||
| <url>https://runtime.agentscope.io</url> | ||
| </organization> | ||
| <licenses> | ||
| <license> | ||
| <name>Apache 2.0</name> | ||
| <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
| <distribution>repo</distribution> | ||
| </license> | ||
| </licenses> | ||
| <developers> | ||
| <developer> | ||
| <id>chickenlj</id> | ||
| <name>Jun Liu</name> | ||
| <email>ken.lj.hz@gmail.com</email> | ||
| <organization>Alibaba Cloud</organization> | ||
| <organizationUrl>https://aliyun.com</organizationUrl> | ||
| </developer> | ||
| <developer> | ||
| <id>xuehuitian45</id> | ||
| <name>Huitian Xue</name> | ||
| <email>13069167198@163.com</email> | ||
| <organization>Alibaba Cloud</organization> | ||
| <organizationUrl>https://aliyun.com</organizationUrl> | ||
| </developer> | ||
| </developers> | ||
| <scm> | ||
| <connection>git://github.com/agentscope-ai/agentscope-runtime-java.git</connection> | ||
| <developerConnection>git@github.com:agentscope-ai/agentscope-runtime-java.git</developerConnection> | ||
| <url>https://github.com/agentscope-ai/agentscope-runtime-java</url> | ||
| </scm> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The url, organization, licenses, developers, and scm elements are duplicated from the parent pom.xml. This information is inherited by default, and duplicating it in each module increases maintenance overhead and can lead to inconsistencies. The recommended practice is to remove this redundant configuration and rely on inheritance from the parent POM.
Furthermore, if you decide to keep this configuration, the scm block is incorrectly formatted. It's missing the scm:git: prefix required by Maven, and the git:// protocol is outdated. This will likely cause issues with release plugins. The correct format would be:
<scm>
<connection>scm:git:https://github.com/agentscope-ai/agentscope-runtime-java.git</connection>
<developerConnection>scm:git:ssh://git@github.com/agentscope-ai/agentscope-runtime-java.git</developerConnection>
<url>https://github.com/agentscope-ai/agentscope-runtime-java</url>
</scm>Given the redundancy, the best solution is to remove this entire block.
xuehuitian45
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.