diff --git a/README.md b/README.md
index a9e3abf2..ba227037 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,11 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
![API](https://img.shields.io/badge/API-15%2B-brightgreen.svg?style=flat)
+## Important Notice
+Versions 1.4 and 1.4.1 have been deleted due to a critical dependency error. Please forgive me and update to version 1.4.4
+
+## About
+
This is an Android library to parse a RSS Feed. You can retrive the following information about an article:
- Title
@@ -22,7 +27,7 @@ This is an Android library to parse a RSS Feed. You can retrive the following in
The library is uploaded in jCenter, so you can easily add the dependency:
```Gradle
dependencies {
- compile 'com.prof.rssparser:rssparser:1.4.1'
+ compile 'com.prof.rssparser:rssparser:1.4.4'
}
```
#### Use:
@@ -59,8 +64,7 @@ You can also download the
- variant.javaCompiler.classpath.files
- })
-}
-
-task generateSourcesJar(type: Jar) {
- from android.sourceSets.main.java.srcDirs
- classifier 'sources'
-}
-
-task generateJavadocsJar(type: Jar) {
- from javadoc.destinationDir
- classifier 'javadoc'
-}
-
-generateJavadocsJar.dependsOn javadoc
-
-bintray {
- user = 'prof18'
- key = 'API_KEY'
- pkg {
- repo = 'maven'
- name = 'RSS-Parser'
+apply from: 'publish.gradle'
- version {
- name = '1.4.1'
- desc = 'A library to parse RSS feed'
- released = new Date()
- vcsTag = '1.4.1'
- }
-
- licenses = ['Apache-2.0']
- vcsUrl = 'https://github.com/prof18/RSS-Parser.git'
- websiteUrl = 'https://github.com/prof18/RSS-Parser'
- }
- configurations = ['archives']
-
-}
-
-artifacts {
- archives generateJavadocsJar
- archives generateSourcesJar
-}
diff --git a/rssparser/publish.gradle b/rssparser/publish.gradle
new file mode 100644
index 00000000..5409cdbd
--- /dev/null
+++ b/rssparser/publish.gradle
@@ -0,0 +1,58 @@
+apply plugin: 'maven-publish'
+apply plugin: 'com.jfrog.bintray'
+
+version '1.4.4'
+group 'com.prof.rssparser'
+
+publishing {
+ publications {
+ Production(MavenPublication) {
+ artifact("$buildDir/outputs/aar/rssparser-release.aar") {
+ builtBy tasks.getByName("assembleRelease")
+ }
+ groupId
+ artifactId 'rssparser'
+ version this.version
+
+ pom.withXml {
+ def dependenciesNode = asNode().appendNode('dependencies')
+
+ // Iterate over the implementation dependencies (we don't want the test ones), adding a node for each
+ configurations.implementation.allDependencies.each {
+ // Ensure dependencies such as fileTree are not included in the pom.
+ if (it.name != 'unspecified') {
+ def dependencyNode = dependenciesNode.appendNode('dependency')
+ dependencyNode.appendNode('groupId', it.group)
+ dependencyNode.appendNode('artifactId', it.name)
+ dependencyNode.appendNode('version', it.version)
+ }
+ }
+ }
+ }
+ }
+}
+
+def properties = new Properties()
+properties.load(new FileInputStream("local.properties"))
+
+bintray {
+ user = properties.getProperty("bintray.user")
+ key = properties.getProperty("bintray.apikey")
+ publications = ['Production']
+ configurations = ['archives']
+ override = true
+ pkg {
+ repo = 'maven'
+ name = 'RSS-Parser'
+ description = "An Android library to parse RSS Feed"
+ publicDownloadNumbers = true
+ licenses = ['Apache-2.0']
+ vcsUrl = 'https://github.com/prof18/RSS-Parser.git'
+ version {
+ name = this.version
+ desc = "Example ${this.version}"
+ released = new Date()
+ vcsTag = this.version
+ }
+ }
+}
\ No newline at end of file
diff --git a/rssparser/src/androidTest/java/com/prof/rssparser/ApplicationTest.java b/rssparser/src/androidTest/java/com/prof/rssparser/ApplicationTest.java
deleted file mode 100644
index d697ea2a..00000000
--- a/rssparser/src/androidTest/java/com/prof/rssparser/ApplicationTest.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.prof.rssparser;
-
-import android.app.Application;
-import android.test.ApplicationTestCase;
-
-/**
- * Testing Fundamentals
- */
-public class ApplicationTest extends ApplicationTestCase {
- public ApplicationTest() {
- super(Application.class);
- }
-}
\ No newline at end of file
diff --git a/rssparser/src/test/java/com/prof/rssparser/ExampleUnitTest.java b/rssparser/src/test/java/com/prof/rssparser/ExampleUnitTest.java
deleted file mode 100644
index 3f912f52..00000000
--- a/rssparser/src/test/java/com/prof/rssparser/ExampleUnitTest.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.prof.rssparser;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-/**
- * To work on unit tests, switch the Test Artifact in the Build Variants view.
- */
-public class ExampleUnitTest {
- @Test
- public void addition_isCorrect() throws Exception {
- assertEquals(4, 2 + 2);
- }
-}
\ No newline at end of file