Skip to content

Commit

Permalink
Remove Bintray plugins and dependencies.
Browse files Browse the repository at this point in the history
* Add Jitpack.io instead.
  • Loading branch information
marcouberti committed Apr 15, 2019
1 parent bdcb766 commit 0b45fd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 96 deletions.
2 changes: 1 addition & 1 deletion Neato-SDK/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(":neato-sdk-android")
//implementation 'com.neatorobotics.sdk.android:neato-sdk-android:0.10.0@aar'
//implementation 'com.github.neatorobotics:neato-sdk-android:0.11.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.1'
Expand Down
6 changes: 1 addition & 5 deletions Neato-SDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -18,9 +16,7 @@ allprojects {
repositories {
google()
jcenter()
maven {
url "http://dl.bintray.com/neato/maven"
}
maven { url "https://jitpack.io" }
}
}

Expand Down
91 changes: 1 addition & 90 deletions Neato-SDK/neato-sdk-android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
plugins {
id "com.android.library"
id "com.github.dcendents.android-maven"
id "com.jfrog.bintray"
id "kotlin-android"
id "kotlin-kapt"
id "kotlin-android-extensions"
Expand All @@ -15,7 +13,7 @@ android {
minSdkVersion 14
targetSdkVersion 28
versionCode 3
versionName "0.10.0"
versionName "0.11.0"
}
buildTypes {
release {
Expand Down Expand Up @@ -64,90 +62,3 @@ dependencies {
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0"
testImplementation "io.mockk:mockk:1.9.3"
}

//BINTRAY - JCENTER
group = 'com.neatorobotics.sdk.android'
version = '0.10.0'

def siteUrl = 'https://github.com/NeatoRobotics/neato-sdk-android'
def gitUrl = 'https://github.com/NeatoRobotics/neato-sdk-android.git'

Properties properties = new Properties()
try {
properties.load(project.rootProject.file('local.properties').newDataInputStream())
} catch (Exception e) {
println '[Neato SDK]local.properties file not found!'
}


bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")

configurations = ['archives'] //When uploading configuration files
pkg {
repo = 'maven'
name = "neato-sdk-android"
desc = 'Neato SDK for Android'
websiteUrl = siteUrl
issueTrackerUrl = 'https://github.com/NeatoRobotics/neato-sdk-android'
vcsUrl = gitUrl
licenses = ['MIT']
labels = ['neato', 'android', 'sdk', 'java']
publicDownloadNumbers = true
}
}

install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
name 'Neato SDK for Android'
url siteUrl
licenses {
license {
name 'The MIT License (MIT)'
url 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id 'marcouberti'
name 'Marco Uberti'
email '[email protected]'
}
}
scm {
connection 'https://github.com/NeatoRobotics/neato-sdk-android'
developerConnection 'https://github.com/NeatoRobotics/neato-sdk-android'
url siteUrl

}
}
}
}
}

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

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

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

task findConventions << {
println project.getConvention()
}

0 comments on commit 0b45fd4

Please sign in to comment.