在gradle项目中,我很难将工件发布到github。我已经创建了一个github存储库。我在maven中使用maven部署插件并将其完全向前推进。这是插件的配置。
<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>但我的问题是我怎么能在格拉德尔做到这一点?
发布于 2016-01-13 08:30:47
格蕾的美和诅咒是灵活性。谷歌搜索显示了3个很有前途的插件:
也许其中一个解决了你的问题。如果你在找什么特别的东西,请告诉我。
https://stackoverflow.com/questions/34761344
复制相似问题