gradle-release-plugin

gradle-release plugin + maven publishing plugin

大憨熊 提交于 2020-01-01 04:49:09
问题 I'm creating gradle builds as a new gradle user, but I have worked with maven in the past. I'm trying to reproduce actions of the maven release plugin: Change branch version to Release number (commit at svn) Create a tag (at svn) Deploy the release tag in Nexus OSS Change branch version to new Snapshot number (commit at svn) As you can see, I'm using: Nexus OSS as versioning repository SVN as scm Gradle (2.8) I'm trying to achieve my objectives with these two plugins: Gradle-release Plugin:

Gradle creating duplicate start scripts into bin directory

自古美人都是妖i 提交于 2019-12-23 10:16:24
问题 I am trying to create multiple start script files through gradle. But somehow one particular start script file is getting duplicated. startScripts.enabled = false run.enabled = false def createScript(project, mainClass, name) { project.tasks.create(name: name, type: CreateStartScripts) { outputDir = new File(project.buildDir, 'scripts') mainClassName = mainClass applicationName = name classpath = jar.outputs.files + project.configurations.runtime doLast { def windowsScriptFile = file

SSH Git access using Gradle Release Plugin

自古美人都是妖i 提交于 2019-12-22 09:55:11
问题 Using Jenkins Pipeline I changed the Repository URL from http to ssh git access. After doing that the job is not working anymore (before that all worked correctly). Down below the logs: :xxxxxx:checkUpdateNeeded Running [git, remote, update] produced an error: [Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. error: Could not fetch origin] :xxxxxx:checkUpdateNeeded FAILED :release FAILED

Deploying a gradle script from Jenkins using the artifactory plugin

流过昼夜 提交于 2019-12-11 16:14:51
问题 I'm trying to deploy a build from jenkins using the artifactory invocation of gradle plugin and get a an HTTP error 302, going through the log looks like there's a checksum problem that cannot be skipped: 13:35:41.463 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask] Failed checksum deploy of checksum '8d80bb7f1bf2f0457baa3ad7379348c5ecbf2535' with statusCode: 302 13:35:41.466 [DEBUG] [org.apache.http.impl.conn.SingleClientConnManager] Get connection for route HttpRoute[{}-

SSH Git access using Gradle Release Plugin

余生颓废 提交于 2019-12-05 23:26:23
Using Jenkins Pipeline I changed the Repository URL from http to ssh git access. After doing that the job is not working anymore (before that all worked correctly). Down below the logs: :xxxxxx:checkUpdateNeeded Running [git, remote, update] produced an error: [Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. error: Could not fetch origin] :xxxxxx:checkUpdateNeeded FAILED :release FAILED Release process failed, reverting back any changes made by Release Plugin. FAILURE: Build failed with