Skip to content

Commit

Permalink
Merge pull request #16 from bugsnag/gradle-plugin-publishing
Browse files Browse the repository at this point in the history
Allow publishing to plugins.gradle.org
  • Loading branch information
kattrali committed Mar 23, 2016
2 parents 520be26 + a222591 commit baeee18
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 16 deletions.
51 changes: 35 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
// Plugins
// Gradle plugins
plugins {
id "groovy"
id "com.bmuschko.nexus" version "2.3.1"
id 'groovy'
id 'com.gradle.plugin-publish' version '0.9.4'
id 'com.bmuschko.nexus' version '2.3.1'
}

// JVM targets
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
// Repositories for dependencies
repositories {
jcenter()
}

// Project properties
group = 'com.bugsnag'
version = '2.0.2'
// Target Java 1.6 when compiling groovy code
compileGroovy {
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
}

// Build dependencies
dependencies {
repositories {
jcenter()
}

compile gradleApi()
compile localGroovy()
compile 'com.android.tools.build:gradle:1.5.0'
compile 'org.apache.httpcomponents:httpclient:4.3.6'
compile 'org.apache.httpcomponents:httpmime:4.3.6'
}

// Settings for nexus maven plugin
// Maven publishing settings (nexus-maven-plugins)
modifyPom {
project {
name 'Bugsnag Android Gradle Plugin'
description "A Gradle plugin with Bugsnag tasks for Android apps."
description 'Gradle plugin to automatically upload ProGuard mapping files to Bugsnag.'
url 'https://github.com/bugsnag/bugsnag-android-gradle-plugin'
inceptionYear '2015'

scm {
url 'https://github.com/bugsnag/bugsnag-android-gradle-plugin'
Expand Down Expand Up @@ -61,3 +60,23 @@ modifyPom {
}
}
}

// Gradle plugin publishing settings (plugins.gradle.com)
pluginBundle {
website = 'https://github.com/bugsnag/bugsnag-android-gradle-plugin'
vcsUrl = 'https://github.com/bugsnag/bugsnag-android-gradle-plugin.git'

plugins {
androidGradlePlugin {
id = 'com.bugsnag.android.gradle'
displayName = 'Bugsnag Android Gradle Plugin'
description = 'Gradle plugin to automatically upload ProGuard mapping files to Bugsnag.'
tags = ['bugsnag', 'proguard', 'android', 'upload']
}
}

mavenCoordinates {
groupId = 'com.bugsnag'
artifactId = 'bugsnag-android-gradle-plugin'
}
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
group = com.bugsnag
version = 2.0.2

0 comments on commit baeee18

Please sign in to comment.