Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Commit

Permalink
Using plugindev to release the plugin through jcenter and gradle plug…
Browse files Browse the repository at this point in the history
…in repository
  • Loading branch information
dcendents committed Nov 21, 2014
1 parent aae0b5b commit a4b52a7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 39 deletions.
65 changes: 27 additions & 38 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
buildscript {
repositories {
jcenter()
}

dependencies {
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7.1',
'com.github.townsfolk:gradle-release:1.2'
}
plugins {
id 'nu.studer.plugindev' version '1.0.3'
}

apply plugin: 'java-gradle-plugin'
apply plugin: 'maven'
apply plugin: 'nexus'
apply plugin: 'signing'
apply plugin: 'release'

repositories {
mavenCentral()
mavenLocal()
Expand All @@ -26,31 +14,32 @@ dependencies {
sourceCompatibility = 1.6
targetCompatibility = 1.6

modifyPom {
project {
name 'Gradle Android Maven plugin'
description 'Modification to the standard Maven plugin to be compatible with android-library projects (aar).'
url 'https://github.com/dcendents/android-maven-plugin'
inceptionYear '2013'

scm {
url 'https://github.com/dcendents/android-maven-plugin'
connection 'scm:https://github.com/dcendents/android-maven-plugin.git'
developerConnection 'scm:git://github.com/dcendents/android-maven-plugin.git'
}

licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0'
}
}
plugindev {
pluginId = 'com.github.dcendents.android-maven'
pluginImplementationClass 'org.gradle.api.plugins.AndroidMavenPlugin'
pluginName 'Gradle Android Maven plugin'
pluginDescription 'Modification to the standard Maven plugin to be compatible with android-library projects (aar).'
pluginLicenses 'Apache-2.0'
pluginTags 'gradle', 'plugin', 'android', 'maven'
authorId 'dcendents'
authorName 'Daniel Beland'
authorEmail '[email protected]'
projectUrl 'https://github.com/dcendents/android-maven-plugin'
projectInceptionYear '2013'
done() // do not omit this
}

developers {
developer {
id 'dcendents'
name 'Daniel Beland'
email '[email protected]'
bintray {
user = "${bintrayUsername}"
key = "${bintrayApiKey}"

dryRun = false
publish = true
pkg {
repo = 'gradle-plugins'
version {
gpg {
sign = true
}
}
}
Expand Down

This file was deleted.

0 comments on commit a4b52a7

Please sign in to comment.