Skip to content

Commit 78edf4c

Browse files
Build with gh-actions.
1 parent a5e39cd commit 78edf4c

File tree

5 files changed

+46
-16
lines changed

5 files changed

+46
-16
lines changed

.github/workflows/maven.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
name: build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up JDK
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 11
19+
- name: Build with Maven
20+
run: ./mvnw --no-transfer-progress clean verify
21+
22+
sonar:
23+
name: sonar analyse
24+
runs-on: ubuntu-latest
25+
needs: build
26+
steps:
27+
- uses: actions/checkout@v1
28+
- uses: actions/setup-java@v1
29+
with:
30+
java-version: 11
31+
- name: Run SonarCloud analyse
32+
run: >
33+
./mvnw --batch-mode --no-transfer-progress clean
34+
org.jacoco:jacoco-maven-plugin:prepare-agent verify
35+
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
36+
-Dsonar.host.url=https://sonarcloud.io
37+
-Dsonar.organization=michael-simons-github
38+
-Dsonar.projectKey=eu.michael-simons:java-oembed
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.travis.yml

-13
This file was deleted.

README.textile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
h1. Simple oembed implementation for Java based on Apache HttpClient
22

3-
!https://travis-ci.org/michael-simons/java-oembed.svg?branch=master!:https://travis-ci.org/michael-simons/java-oembed !https://sonarcloud.io/api/project_badges/measure?project=eu.michael-simons%3Ajava-oembed&metric=coverage!:https://sonarcloud.io/dashboard?id=eu.michael-simons%3Ajava-oembed !https://sonarcloud.io/api/project_badges/measure?project=eu.michael-simons%3Ajava-oembed&metric=alert_status!:https://sonarcloud.io/dashboard?id=eu.michael-simons%3Ajava-oembed !https://maven-badges.herokuapp.com/maven-central/eu.michael-simons/java-oembed/badge.svg(Maven Central)!:https://maven-badges.herokuapp.com/maven-central/eu.michael-simons/java-oembed
3+
!https://github.com/michael-simons/java-oembed/workflows/build/badge.svg!:https://github.com/michael-simons/java-oembed/actions !https://sonarcloud.io/api/project_badges/measure?project=eu.michael-simons%3Ajava-oembed&metric=coverage!:https://sonarcloud.io/dashboard?id=eu.michael-simons%3Ajava-oembed !https://sonarcloud.io/api/project_badges/measure?project=eu.michael-simons%3Ajava-oembed&metric=alert_status!:https://sonarcloud.io/dashboard?id=eu.michael-simons%3Ajava-oembed
44

55
This is a very simple Java client for consuming "Oembed":http://www.oembed.com/ enabled sites.
66

pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<spring-boot.version>2.1.1.RELEASE</spring-boot.version>
3131
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
3232
<jsoup.version>1.11.3</jsoup.version>
33+
<commons-beanutils.version>1.9.4</commons-beanutils.version>
3334
</properties>
3435
<build>
3536
<pluginManagement>
@@ -306,7 +307,7 @@
306307
<dependency>
307308
<groupId>commons-beanutils</groupId>
308309
<artifactId>commons-beanutils</artifactId>
309-
<version>1.9.3</version>
310+
<version>${commons-beanutils.version}</version>
310311
</dependency>
311312
<dependency>
312313
<groupId>junit</groupId>

src/main/java/ac/simons/oembed/OembedService.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
import org.slf4j.LoggerFactory;
5151

5252
/**
53-
* @author Michael J. Simons, 2014-12-31
53+
* @author Michael J. Simons
54+
* @since 2014-12-31
5455
*/
5556
public class OembedService {
5657

0 commit comments

Comments
 (0)