From 2c251ce29ff7c4e25784147b866ea72542a5e289 Mon Sep 17 00:00:00 2001 From: Trevor Jones Date: Mon, 1 Jul 2019 16:16:48 -0600 Subject: [PATCH] plugin portal publishing config --- build.gradle | 2 ++ plugin/build.gradle | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index e07b0fd..c1f1b1a 100644 --- a/build.gradle +++ b/build.gradle @@ -16,10 +16,12 @@ buildscript { repositories { + gradlePluginPortal() jcenter() } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" + classpath "com.gradle.publish:plugin-publish-plugin:0.10.1" } } diff --git a/plugin/build.gradle b/plugin/build.gradle index a629c13..30a1f55 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -18,16 +18,25 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile apply plugin: 'kotlin' apply plugin: 'java-gradle-plugin' apply plugin: 'maven-publish' +apply plugin: "com.gradle.plugin-publish" gradlePlugin { plugins { AGRP { + displayName = "com.trevjonez.AndroidGithubReleasePlugin" + description = "Android variant aware tasks for creating github releases and uploading assets" id = "com.trevjonez.AndroidGithubReleasePlugin" implementationClass = "com.trevjonez.agrp.AndroidGithubReleasePlugin" } } } +pluginBundle { + website = "https://github.com/trevjonez/AndroidGithubReleasePlugin" + vcsUrl = "https://github.com/trevjonez/AndroidGithubReleasePlugin.git" + tags = ["android", "github", "release", "tag"] +} + tasks.named("test").configure { systemProperty("org.gradle.testkit.debug", true) systemProperty("agpVersion", agpVersion) @@ -55,4 +64,4 @@ dependencies { task sourcesJar(type: Jar, dependsOn: classes) { getArchiveClassifier().set('sources') from sourceSets.main.allSource -} \ No newline at end of file +}