Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing to Gradle portal #4

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/build/
/.gradle/
/.idea/
26 changes: 24 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* To upload a new release to Nexus:
* gradle clean uploadArchives -PcoreRelease
*
* To upload a new release to Gradle portal:
* gradle clean publishPlugins -PcoreRelease -Pgradle.publish.key=<key> -Pgradle.publish.secret=<secret>
*
* Requirement environment variables:
* - OSSRHUSERNAME - Nexus username
* - OSSRHPASSWORD - Nexus password
Expand All @@ -25,9 +28,10 @@ plugins {
id 'maven'
id 'io.codearte.nexus-staging' version '0.22.0'

id "com.gradle.plugin-publish" version "0.12.0"
id "com.gradle.plugin-publish" version "0.14.0"
id "java-gradle-plugin"

id "maven-publish"
}

repositories {
Expand Down Expand Up @@ -85,7 +89,7 @@ task tagNewVersion() {
}

wrapper {
gradleVersion = '6.4'
gradleVersion = '6.8.3'
}

test {
Expand Down Expand Up @@ -205,3 +209,21 @@ task copyDeps(type: Copy) {
from configurations.runtime + configurations.testCompile
into project.projectDir.path + "/lib"
}

gradlePlugin {
plugins {
serenityPlugin {
id = 'net.serenity-bdd.gradle'
displayName = 'Serenity BDD Cucumber 6 Integration'
description = 'Run Serenity tests and generate Serenity reports using Cucumber 6'
implementationClass = 'net.serenitybdd.plugins.gradle.SerenityPlugin'
}
}
}

pluginBundle {
website = 'https://github.com/serenity-bdd/serenity-gradle-plugin'
vcsUrl = 'https://github.com/serenity-bdd/serenity-gradle-plugin.git'
tags = ['cucumber', 'serenity', 'tests', 'reporting', 'livingdocumentation']
}

2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists