diff --git a/README.md b/README.md index 8bef08d0d..cd0836e50 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Fuel -[![bintray](https://api.bintray.com/packages/kittinunf/maven/Fuel-Android/images/download.svg)](https://bintray.com/kittinunf/maven/Fuel-Android/_latestVersion) +[![jcenter](https://api.bintray.com/packages/kittinunf/maven/Fuel-Android/images/download.svg)](https://bintray.com/kittinunf/maven/Fuel-Android/_latestVersion) +[![mavenCentral](https://maven-badges.herokuapp.com/maven-central/com.github.kittinunf.fuel/fuel/badge.svg)](https://search.maven.org/search?q=g:com.github.kittinunf.fuel) [![Build Status](https://travis-ci.org/kittinunf/fuel.svg?branch=master)](https://travis-ci.org/kittinunf/fuel) [![Codecov](https://codecov.io/github/kittinunf/fuel/coverage.svg?branch=master)](https://codecov.io/gh/kittinunf/fuel) @@ -26,8 +27,8 @@ We offer maven and jitpack installations. Maven via bintray only has stable rele ### Maven You can [download](https://bintray.com/kittinunf/maven/Fuel-Android/_latestVersion) and install `Fuel` with `Maven` and `Gradle`. The core package has the following dependencies: -* Kotlin - [![Kotlin](https://img.shields.io/badge/Kotlin-1.3.30-blue.svg)](https://kotlinlang.org) -* Result - 2.2.0 +* Kotlin - [![Kotlin](https://img.shields.io/badge/Kotlin-1.4.10-blue.svg)](https://kotlinlang.org) +* [ Result ](https://github.com/kittinunf/result/) - 3.1.0 ```groovy //core @@ -40,7 +41,7 @@ You can [download](https://bintray.com/kittinunf/maven/Fuel-Android/_latestVersi Make sure to include `jcenter()` or `mavenCentral()` in your repositories ```groovy repositories { - jcenter() + jcenter() //or mavenCentral() } ``` diff --git a/build.gradle.kts b/build.gradle.kts index 9b8d20d09..af4c96ee5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,6 @@ import com.android.build.gradle.BaseExtension import com.dicedmelon.gradle.jacoco.android.JacocoAndroidUnitTestReportExtension +import com.jfrog.bintray.gradle.BintrayExtension.GpgConfig import org.gradle.api.publish.maven.MavenPom import org.jmailen.gradle.kotlinter.KotlinterExtension import org.jmailen.gradle.kotlinter.support.ReporterType @@ -184,13 +185,17 @@ subprojects { setLicenses(Fuel.Package.licenseName) with(version) { name = Fuel.publishVersion + gpg(delegateClosureOf { + sign = true + passphrase = System.getenv("GPG_PASSPHRASE") ?: "" + }) } } } fun MavenPom.addDependencies() = withXml { asNode().appendNode("dependencies").let { depNode -> - configurations.implementation.allDependencies.forEach { + configurations.implementation.get().allDependencies.forEach { depNode.appendNode("dependency").apply { appendNode("groupId", it.group) appendNode("artifactId", it.name) diff --git a/buildSrc/src/main/kotlin/Constants.kt b/buildSrc/src/main/kotlin/Constants.kt index 55deb33f7..4e13b98be 100644 --- a/buildSrc/src/main/kotlin/Constants.kt +++ b/buildSrc/src/main/kotlin/Constants.kt @@ -1,6 +1,6 @@ // Library version object Fuel { - const val publishVersion = "2.2.3" + const val publishVersion = "2.3.0" const val groupId = "com.github.kittinunf.fuel" const val compileSdkVersion = 29