Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Added bintray upload. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
a11n committed Oct 31, 2016
1 parent b4e6de2 commit f8c3e3a
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@ build/
classes/
*.iml
local.properties
gradle.properties
58 changes: 56 additions & 2 deletions build.gradle
@@ -1,5 +1,13 @@
plugins {
id "com.jfrog.bintray" version "1.7.2"
}

apply plugin: 'java-gradle-plugin'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'

group = 'de.ito.gradle.plugin'
version = '0.1.0'

repositories {
jcenter()
Expand Down Expand Up @@ -31,5 +39,51 @@ jacocoTestReport {
}
}

group = 'de.ito.gradle.plugin'
version = '0.1.0'
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar, javadocJar
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId project.group
artifactId 'android-string-extractor'
version project.version
}
}
}

bintray {
user = project.hasProperty('bintray_user') ? project.bintray_user : ''
key = project.hasProperty('bintray_key') ? project.bintray_key : ''

publications = ['mavenJava']
dryRun = false
publish = false
pkg {
repo = 'maven'
name = 'de.ito.gradle.plugin:android-string-extractor'
desc = 'Gradle plugin which automatically extracts hardcoded strings from Android layouts.'
licenses = ['MIT']
vcsUrl = 'https://github.com/it-objects/android-string-extractor-plugin.git'
labels = ['Android', 'Gradle', 'plugin', 'string', 'extraction']
publicDownloadNumbers = false
version {
name = project.version
desc = ''
}
}
}

0 comments on commit f8c3e3a

Please sign in to comment.