Skip to content

Commit

Permalink
publish to gradle plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Amesbury committed Aug 21, 2018
1 parent fde8393 commit ff110bb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ branches:

script: "./gradlew build"

env:
- secure: "hTSP/4TrRMvPUjxMtioE34q1xXRAiimQYcz9SIPrhHNwDXGb5bvBOsQ5zHF8+Bn6rowHqKhBSuGmOfV9AT4qcDKQoUjbGGp7QwkG7ygLKITSisEp4Biuinw7kMNmHSh9iMlwdETchnpsh6wwr5LVVvwbFbTy3a2sR/RLBWg97z5HplO5Wu+kkqaTRdNxOwmFAroDKGvqYCqFeedtLmltYj6XtZqUpD2zETCx6KDKZNNVt/xFU8VVVUBloLPm6t+2IiP8WVxrvJ5ZD/pyIx3pNHx6J/DE21KUorrJ2bY1tSyvacXEo0ZH1gXerue9gtA/C9zook2Q+tzB6TuhFH7PMo7M6zCQaaDadlsLb9c9UXjQVKm8hJp7I1jg1INiCjCHFR5m/TyZxW89H5qcpgKdy7ldiebBzWGlI0MCqdv5s9aipGJzqV8hIK6cnnXdRXS1qgyCeZIbcY+5gxsCrmWsnWELyqnMqYVXEV4Pq8K/U5ETouCTe1egbN8BFzgzeI1R48vEDTtYSIhNVq3HcuV3gMiwHtoKTLBulTj1k3KiwBBoTRFKAF8MIsTOaLbzzvH9+ZoWnlqbMqYGDvQH1keXqA2+664pUIvKqBxSG7A+ik8pcrN4MN3DGDDrvGEMlrx4+K1x6P6JqX8lBcY7NwT8B/CpY+pcM+REooC4IzrStQs="
- secure: "WylcEJGDweH8rrKOfYXHgEZ1LMXdY4BHjBn0Lo34NyEVVXY6305j0btX3m1oYTAB4i7ZIGRY3LaSMjzAuc7FwWwqt2UZTyvKJlLNB2oIZmOuHtqq9CTb0etkbHdBjr4bw7RZetmHjZggmhOms5sqh7Ih6xf5Dak4HFDXz0Uk63QRqH9WzkgK6uJ22XKYPvTIR5HfWJMgCRFTaz34co4DSDfppR9OyXgRup+I9tVMflCSCnfMyP0s3eCNGx7HTOptdVqtjCW3WMuXavOaSt6rgkL+EVu2qZUdMtIoZsf7MyWfT3C2HbpsM2QgiGpmuExy5j3nN70RsIJCHLX1fhV6ErwplqNDOSyQRK+fKgK4vK2FnxttMD++eBz5EGxFz/mvZ7BrU3bOt99SUDmuji0KxNXkxjF2WBMahfuah9m5tKaGZlycFbSTDp6sHQ1m2QBGoS14G/2G7CwusZ55xwFLfQHkaKWYmkRYhEoOD5zORDDyzUBMfx7Ne5wBL3ZiKry34fyN4rOlsuduPVENph+HipG5b0clKebE7CvUplct/vd9093FjhJkx2lvAtvjFeVJ0moBD+Tk8su29+l/qvCNgPg3cPumf6zZXfkc5Rtbg5Ehm/Gokg3mPHFBFP6G1gzUQBqtoRS0Y/qL9IFU7Cztp1pYLcqh9C7F7JF6H9L39zA="

deploy:
provider: releases
api_key:
Expand All @@ -22,3 +26,7 @@ deploy:
on:
tags: true
repo: moonlitdoor/mld-git-version
provider: script
script: "./gradlew publishPlugins -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET"
on:
tags: true
15 changes: 11 additions & 4 deletions git-version/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,26 @@ plugins {
`java-gradle-plugin`
`kotlin-dsl`
`maven-publish`
id("com.gradle.plugin-publish") version "0.10.0"
}

gradlePlugin {
(plugins) {
"git-version" {
id = "git-version"
id = "com.moonlitdoor.git-version"
implementationClass = "com.moonlitdoor.git.version.GitVersionPlugin"
}
}
}

publishing {
repositories {
// maven(url = "build/repository")
pluginBundle {
website = "https://www.moonlitdoor.com"
vcsUrl = "https://github.com/moonlitdoor/mld-git-version"
description = "A Gradle plugin that sets various properties available for use as the version based on the git repository."
(plugins) {
"git-version" {
displayName = "Git Version Plugin"
tags = listOf("git", "version", "android", "java")
}
}
}

0 comments on commit ff110bb

Please sign in to comment.