Skip to content

Commit

Permalink
plugin portal publishing config
Browse files Browse the repository at this point in the history
  • Loading branch information
trevjonez committed Jul 1, 2019
1 parent 9a5f98e commit 2c251ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down
11 changes: 10 additions & 1 deletion plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -55,4 +64,4 @@ dependencies {
task sourcesJar(type: Jar, dependsOn: classes) {
getArchiveClassifier().set('sources')
from sourceSets.main.allSource
}
}

0 comments on commit 2c251ce

Please sign in to comment.