首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gradle -将工件发布到github

Gradle -将工件发布到github
EN

Stack Overflow用户
提问于 2016-01-13 08:07:55
回答 1查看 2.5K关注 0票数 2

在gradle项目中,我很难将工件发布到github。我已经创建了一个github存储库。我在maven中使用maven部署插件并将其完全向前推进。这是插件的配置。

代码语言:javascript
复制
<plugins>
            <plugin>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.1</version>
                <configuration>
                    <altDeploymentRepository>internal.repo::default::file://${project.build.directory}/mvn-repo</altDeploymentRepository>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.github.github</groupId>
                <artifactId>site-maven-plugin</artifactId>
                <version>0.11</version>
                <configuration>
                    <message>Maven artifacts for ${project.version}</message>  <!-- git commit message -->
                    <noJekyll>true</noJekyll>                                  <!-- disable webpage processing -->
                    <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory> <!-- matches distribution management repository url above -->
                    <branch>refs/heads/master</branch>                       <!-- remote branch name -->
                    <includes><include>**/*</include></includes>
                    <repositoryName>{git_repo_name}</repositoryName>      <!-- github repo name -->
                    <repositoryOwner>{git_user_name}</repositoryOwner>    <!-- github username  -->
                </configuration>
                <executions>
                    <!-- run site-maven-plugin's 'site' target as part of the build's normal 'deploy' phase -->
                    <execution>
                        <goals>
                            <goal>site</goal>
                        </goals>
                        <phase>deploy</phase>
                    </execution>
                </executions>
            </plugin>
        </plugins>

但我的问题是我怎么能在格拉德尔做到这一点?

EN

回答 1

Stack Overflow用户

发布于 2016-01-13 08:30:47

格蕾的美和诅咒是灵活性。谷歌搜索显示了3个很有前途的插件:

也许其中一个解决了你的问题。如果你在找什么特别的东西,请告诉我。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34761344

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档