Skip to content

Commit

Permalink
Configure gradle portal publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Urbański committed Jul 24, 2019
1 parent f582b25 commit f7a9124
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ sudo: true

cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

jobs:
include:
- stage: build
script:
- ./gradlew clean build

- stage: build
script:
- ./gradlew clean build

- stage: publish
if: branch = master
script:
- ./gradlew publishPlugins -Pgradle.publish.key="$GRADLE_PUBLISH_KEY" -Pgradle.publish.secret="$GRADLE_PUBLISH_SECRET"
20 changes: 19 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ plugins {
idea
`java-gradle-plugin`
id("com.palantir.idea-test-fix") version ("0.1.0")
id("com.gradle.plugin-publish") version ("0.10.0")
}

group = "com.hltech"
version = "0.1.0-SNAPSHOT"
version = "1.0.0"

repositories {
mavenCentral()
Expand All @@ -32,3 +33,20 @@ dependencies {
testImplementation("org.spockframework:spock-core:1.2-groovy-2.5")
testImplementation("com.github.tomakehurst:wiremock:2.13.0")
}

pluginBundle {
website = "https://github.com/HLTech/judge-d-contract-publisher-gradle-plugin"
vcsUrl = "https://github.com/HLTech/judge-d-contract-publisher-gradle-plugin.git"
tags = listOf("contract-testing", "judge-dredd", "pact-gen", "swagger", "hltech")
}

gradlePlugin {
plugins {
create("contractsPublisher") {
id = "com.hltech.judged.contracts.publisher"
displayName = "Plugin for publishing contracts to judge-dredd"
description = "A plugin that helps you publish service expectations and capabilities to judge-dredd"
implementationClass = "com.hltech.judged.contracts.publisher.gradle.plugin.PublisherPlugin"
}
}
}

0 comments on commit f7a9124

Please sign in to comment.