Skip to content

Commit

Permalink
upload with bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
werbhelius committed Oct 26, 2017
1 parent f50caa1 commit bb3ba54
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 24 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ buildscript {
repositories {
jcenter()
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-rc2'
classpath 'com.android.tools.build:gradle:3.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.novoda:bintray-release:0.5.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -25,4 +27,3 @@ task clean(type: Delete) {
delete rootProject.buildDir
}

tasks.getByPath(":pickphotoview:releaseAndroidJavadocs").enabled = false
14 changes: 14 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,17 @@ org.gradle.jvmargs=-Xmx1536m
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

PROJ_NAME=pickphotoview
PROJ_GROUP=com.werb.pickphotoview
PROJ_ARTIFACTID=pickphotoview
PROJ_VERSION=0.3.6
PROJ_VERSIOM_CODE=10
PROJ_WEBSITEURL=https://github.com/Werb/PickPhotoSample
PROJ_ISSUETRACKERURL=https://github.com/Werb/PickPhotoSample/issues
PROJ_VCSURL=https://github.com/Werb/PickPhotoSample.git
PROJ_DESCRIPTION=Photo Picker Of Android Library

DEVELOPER_ID=wanbo
DEVELOPER_NAME=werbhelius
DEVELOPER_EMAIL=werbhelius@gmail.com
83 changes: 83 additions & 0 deletions pickphotoview/bintray.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
group = PROJ_GROUP
version = PROJ_VERSION
project.archivesBaseName = PROJ_ARTIFACTID

apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

artifacts {
archives sourcesJar
}

install {
repositories.mavenInstaller {
pom.project {
name PROJ_NAME
description PROJ_DESCRIPTION
url PROJ_WEBSITEURL
inceptionYear '2017'

packaging 'aar'
groupId PROJ_GROUP
artifactId PROJ_ARTIFACTID
version PROJ_VERSION

licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
scm {
connection PROJ_VCSURL
url PROJ_WEBSITEURL

}
developers {
developer {
id DEVELOPER_ID
name DEVELOPER_NAME
email DEVELOPER_EMAIL
}
}
}
}
}

bintray {

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
user = properties.getProperty('BINTRAY_USER')
key = properties.getProperty('BINTRAY_KEY')

configurations = ['archives']

dryRun = false
publish = true

pkg {
repo = 'maven'
name = PROJ_NAME
licenses = ['Apache-2.0']
vcsUrl = PROJ_VCSURL
websiteUrl = PROJ_WEBSITEURL
issueTrackerUrl = PROJ_ISSUETRACKERURL
publicDownloadNumbers = true
version {
name = PROJ_VERSION
desc = PROJ_DESCRIPTION
vcsTag = PROJ_VERSION

gpg {
sign = true
}
}
}
}
32 changes: 11 additions & 21 deletions pickphotoview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
versionCode PROJ_VERSIOM_CODE as int
versionName PROJ_VERSION

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down Expand Up @@ -41,27 +41,17 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'com.github.bumptech.glide:glide:4.1.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:design:26.1.0'
implementation('com.werb.moretype:moretype:0.2.1', {
exclude group: 'com.android.support'
})
implementation('com.werb.eventbuskotlin:eventbuskotlin:0.1.9', {
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.github.bumptech.glide:glide:4.1.1'
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
compile 'com.android.support:design:26.1.0'
compile('com.werb.moretype:moretype:0.2.1', {
exclude group: 'com.android.support'
})
compile 'com.werb.eventbuskotlin:eventbuskotlin:0.2.0'
}

apply plugin: 'com.novoda.bintray-release'
publish {
userOrg = 'werbhelius'
groupId = 'com.werb.pickphotoview'
artifactId = 'pickphotoview'
publishVersion = '0.3.6-beta1'
desc = 'Photo Picker Of Android Library'
website = 'https://github.com/Werb/PickPhotoSample'
}
apply from: './bintray.gradle'

0 comments on commit bb3ba54

Please sign in to comment.