Skip to content

Commit aa114b1

Browse files
authored
Package for Maven Central (#19)
* Update packaging * Bump Dom4J version * Comment out publishing to artifactory * Remove old network test * Update README * Update Gradle instructions for 7.0 * Remove old publishing block
1 parent 4421ed9 commit aa114b1

File tree

4 files changed

+24
-42
lines changed

4 files changed

+24
-42
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.gradle/
22
.idea/
33
target/
4-
build/
4+
build/
5+
gradle.properties

README.md

+5-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PodEngine 2.4 – Podcast Feed Library
1+
# PodEngine 2.4.1 – Podcast Feed Library
22

33
## Java library for parsing your podcast feeds 🚀
44
* Written in Java 7 🤖
@@ -8,34 +8,24 @@
88
* MIT Licensed (Use it for all your commercial things!) 🤑
99

1010
## Installation 📦
11-
### Gradle
11+
### Gradle (Groovy)
1212
```groovy
1313
repositories {
14-
maven {
15-
url 'https://maven.icosillion.com/artifactory/open-source/'
16-
}
14+
mavenCentral()
1715
}
1816
1917
dependencies {
20-
compile 'com.icosillion.podengine:podengine:2.4'
18+
implementation group: 'com.icosillion.podengine', name: 'podengine', version:'2.4.1'
2119
}
2220
```
2321

2422
### Maven
2523
```xml
26-
<repositories>
27-
<repository>
28-
<id>icosillion</id>
29-
<name>Icosillion Repository</name>
30-
<url>https://maven.icosillion.com/artifactory/open-source/</url>
31-
</repository>
32-
</repositories>
33-
3424
<dependencies>
3525
<dependency>
3626
<groupId>com.icosillion.podengine</groupId>
3727
<artifactId>podengine</artifactId>
38-
<version>2.4</version>
28+
<version>2.4.1</version>
3929
</dependency>
4030
</dependencies>
4131
```

build.gradle

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
6+
dependencies {
7+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.15.1'
8+
}
9+
}
10+
111
plugins {
212
id 'com.adarshr.test-logger' version '2.0.0'
313
}
414

515
apply plugin: 'java'
616
apply plugin: 'maven-publish'
17+
apply plugin: 'com.vanniktech.maven.publish'
718

819
group = 'com.icosillion.podengine'
9-
version = '2.4'
20+
version = '2.4.1'
1021

1122
description = """Simple library to read podcast feeds"""
1223

@@ -18,25 +29,15 @@ repositories {
1829
}
1930

2031
dependencies {
21-
implementation group: 'org.dom4j', name: 'dom4j', version:'2.0.2'
32+
implementation group: 'org.dom4j', name: 'dom4j', version:'2.0.3'
2233
implementation group: 'commons-io', name: 'commons-io', version:'2.5'
2334
testImplementation group: 'junit', name: 'junit', version:'4.12'
2435
}
2536

26-
publishing {
27-
repositories {
28-
maven {
29-
url 'https://maven.icosillion.com/artifactory/open-source/'
30-
credentials {
31-
username project.properties.containsKey("deploymentUser") ? project.properties.get("deploymentUser") : ""
32-
password project.properties.containsKey("deploymentPassword") ? project.properties.get("deploymentPassword") : ""
33-
}
34-
}
35-
}
36-
37-
publications {
38-
maven(MavenPublication) {
39-
from components.java
37+
allprojects {
38+
plugins.withId("com.vanniktech.maven.publish") {
39+
mavenPublish {
40+
sonatypeHost = "S01"
4041
}
4142
}
4243
}

src/test/java/com/icosillion/podengine/models/NetworkTest.java

-10
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@
1515
*/
1616
public class NetworkTest {
1717

18-
@Test
19-
public void testPodcastFeed() {
20-
try {
21-
Podcast podcast = new Podcast(new URL("https://rss.art19.com/tim-ferriss-show"));
22-
assertEquals("The Tim Ferriss Show", podcast.getTitle());
23-
} catch (InvalidFeedException | MalformedURLException | MalformedFeedException e) {
24-
fail(e.getMessage());
25-
}
26-
}
27-
2818
@Test
2919
public void testRelayFeed() {
3020
try {

0 commit comments

Comments
 (0)