parent
618c1e42e2
commit
44b0bd43a4
@ -0,0 +1,13 @@
|
|||||||
|
plugins {
|
||||||
|
id "com.gradle.plugin-publish" version "0.15.0"
|
||||||
|
}
|
||||||
|
tasks.register("publishExisting", com.gradle.publish.PublishExistingTask) {
|
||||||
|
pluginId = "org.springframework.boot"
|
||||||
|
fileRepositoryRoot = "${repositoryRoot}"
|
||||||
|
pluginVersion = "${bootVersion}"
|
||||||
|
pluginCoordinates = "org.springframework.boot:spring-boot-gradle-plugin:${bootVersion}"
|
||||||
|
displayName = "Spring Boot Gradle Plugin"
|
||||||
|
pluginDescription = "Spring Boot Gradle Plugin"
|
||||||
|
website = "https://spring.io/projects/spring-boot"
|
||||||
|
vcsUrl = "https://github.com/spring-projects/spring-boot"
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source $(dirname $0)/common.sh
|
||||||
|
|
||||||
|
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
|
||||||
|
|
||||||
|
git-repo/gradlew publishExisting -p git-repo/config/gradle-plugin-publishing -Pgradle.publish.key=${GRADLE_PUBLISH_KEY} -Pgradle.publish.secret=${GRADLE_PUBLISH_SECRET} -PbootVersion=${version} -PrepositoryRoot=$(pwd)/artifactory-repo
|
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
platform: linux
|
||||||
|
inputs:
|
||||||
|
- name: artifactory-repo
|
||||||
|
- name: git-repo
|
||||||
|
params:
|
||||||
|
GRADLE_PUBLISH_KEY:
|
||||||
|
GRADLE_PUBLISH_SECRET:
|
||||||
|
run:
|
||||||
|
path: git-repo/ci/scripts/publish-gradle-plugin.sh
|
Loading…
Reference in New Issue