Skip to content

Commit ebb7e2b

Browse files
authored
Merge pull request #2 from Sematre/feature_maven
Feature: Maven implementation
2 parents e8722ef + 903fbf4 commit ebb7e2b

File tree

5 files changed

+483
-277
lines changed

5 files changed

+483
-277
lines changed

.gitignore

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Created by https://www.gitignore.io/api/java,eclipse
2-
# Edit at https://www.gitignore.io/?templates=java,eclipse
3-
1+
# Created with https://www.gitignore.io
42
### Eclipse ###
53

64
.metadata
@@ -96,4 +94,14 @@ local.properties
9694
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
9795
hs_err_pid*
9896

99-
# End of https://www.gitignore.io/api/java,eclipse
97+
### Maven ###
98+
target/
99+
pom.xml.tag
100+
pom.xml.releaseBackup
101+
pom.xml.versionsBackup
102+
pom.xml.next
103+
release.properties
104+
dependency-reduced-pom.xml
105+
buildNumber.properties
106+
.mvn/timing.properties
107+
.mvn/wrapper/maven-wrapper.jar

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: java
2+
jdk:
3+
- openjdk7
4+
- openjdk8
5+
- openjdk11
6+
- oraclejdk8
7+
- oraclejdk11

README.md

+29-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# DSBmobile-API
22
[![Release Version][release-image]][release-url]
3+
[![Maven Version][maven-image]][maven-url]
4+
[![Build Status][travis-image]][travis-url]
35
[![License][license-image]][license-url]
46
> Unofficial DSBmobile API for Java.
57
@@ -16,7 +18,7 @@ try {
1618
ArrayList<TimeTable> timeTables = dsbMobile.getTimeTables();
1719
for (TimeTable timeTable : timeTables) {
1820

19-
Boolean isHtml = timeTable.IsHtml();
21+
Boolean isHtml = timeTable.isHtml();
2022

2123
String date = timeTable.getDate();
2224
String groupName = timeTable.getGroupName();
@@ -52,15 +54,34 @@ try {
5254
```
5355
Note: The try-catch block is not necessary.
5456

57+
## Implementation
58+
Gradle:
59+
```gradle
60+
dependencies {
61+
implementation 'de.sematre.dsbmobile:DSBmobile-API:1.2'
62+
}
63+
```
64+
65+
Maven:
66+
```xml
67+
<dependency>
68+
<groupId>de.sematre.dsbmobile</groupId>
69+
<artifactId>DSBmobile-API</artifactId>
70+
<version>1.2</version>
71+
</dependency>
72+
```
73+
5574
## Release History
75+
* 1.2
76+
* Maven implementation
5677
* 1.1
5778
* Code cleanup
5879
* Readme update
5980
* 1.0
6081
* Initial version
6182

6283
## Dependencies
63-
- [Google Gson](https://github.com/google/gson) ([Apache 2 license](https://github.com/google/gson/blob/master/LICENSE)).
84+
- [Google Gson](https://github.com/google/gson) ([Apache 2 license](https://github.com/google/gson/blob/master/LICENSE))
6485

6586
## Info
6687
© Sematre 2018
@@ -70,5 +91,11 @@ Distributed under the **MIT License**. See ``LICENSE`` for more information.
7091
[release-image]: https://img.shields.io/github/release/Sematre/DSBmobile-API.svg?style=flat-square
7192
[release-url]: https://github.com/Sematre/DSBmobile-API/releases
7293

94+
[maven-image]: https://img.shields.io/maven-central/v/de.sematre.dsbmobile/DSBmobile-API.svg?style=flat-square
95+
[maven-url]: https://search.maven.org/artifact/de.sematre.dsbmobile/DSBmobile-API/
96+
97+
[travis-image]: https://img.shields.io/travis/com/Sematre/DSBmobile-API.svg?style=flat-square
98+
[travis-url]: https://travis-ci.com/Sematre/DSBmobile-API
99+
73100
[license-image]: https://img.shields.io/github/license/Sematre/DSBmobile-API.svg?style=flat-square
74101
[license-url]: https://github.com/Sematre/DSBmobile-API/blob/master/LICENSE

pom.xml

+149
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>de.sematre.dsbmobile</groupId>
7+
<artifactId>DSBmobile-API</artifactId>
8+
<version>1.2</version>
9+
10+
<name>DSBmobile-API</name>
11+
<description>Unofficial DSBmobile API for Java.</description>
12+
<url>https://github.com/Sematre/DSBmobile-API</url>
13+
14+
<licenses>
15+
<license>
16+
<name>MIT License</name>
17+
<url>https://opensource.org/licenses/MIT</url>
18+
</license>
19+
</licenses>
20+
21+
<scm>
22+
<connection>scm:git:git://github.com/sematre/dsbmobile-api.git</connection>
23+
<developerConnection>scm:git:ssh://github.com:sematre/dsbmobile-api.git</developerConnection>
24+
<url>https://github.com/sematre/dsbmobile-api</url>
25+
<tag>HEAD</tag>
26+
</scm>
27+
28+
<issueManagement>
29+
<system>GitHub</system>
30+
<url>https://github.com/Sematre/DSBmobile-API/issues</url>
31+
</issueManagement>
32+
33+
<properties>
34+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35+
<maven.compiler.source>1.7</maven.compiler.source>
36+
<maven.compiler.target>1.7</maven.compiler.target>
37+
</properties>
38+
39+
<distributionManagement>
40+
<snapshotRepository>
41+
<id>ossrh</id>
42+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
43+
</snapshotRepository>
44+
<repository>
45+
<id>ossrh</id>
46+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
47+
</repository>
48+
</distributionManagement>
49+
50+
<build>
51+
<plugins>
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-compiler-plugin</artifactId>
55+
<version>3.8.0</version>
56+
<configuration>
57+
<source>1.7</source>
58+
<target>1.7</target>
59+
</configuration>
60+
</plugin>
61+
</plugins>
62+
</build>
63+
64+
<profiles>
65+
<profile>
66+
<id>release</id>
67+
<build>
68+
<plugins>
69+
<plugin>
70+
<groupId>org.apache.maven.plugins</groupId>
71+
<artifactId>maven-source-plugin</artifactId>
72+
<version>2.2.1</version>
73+
<executions>
74+
<execution>
75+
<id>attach-sources</id>
76+
<goals>
77+
<goal>jar-no-fork</goal>
78+
</goals>
79+
</execution>
80+
</executions>
81+
</plugin>
82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-javadoc-plugin</artifactId>
85+
<version>2.9.1</version>
86+
<executions>
87+
<execution>
88+
<id>attach-javadocs</id>
89+
<goals>
90+
<goal>jar</goal>
91+
</goals>
92+
</execution>
93+
</executions>
94+
</plugin>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-gpg-plugin</artifactId>
98+
<version>1.5</version>
99+
<executions>
100+
<execution>
101+
<id>sign-artifacts</id>
102+
<phase>verify</phase>
103+
<goals>
104+
<goal>sign</goal>
105+
</goals>
106+
<configuration>
107+
<keyname>${gpg.keyname}</keyname>
108+
</configuration>
109+
</execution>
110+
</executions>
111+
</plugin>
112+
<plugin>
113+
<groupId>org.sonatype.plugins</groupId>
114+
<artifactId>nexus-staging-maven-plugin</artifactId>
115+
<version>1.6.7</version>
116+
<extensions>true</extensions>
117+
<configuration>
118+
<serverId>ossrh</serverId>
119+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
120+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
121+
</configuration>
122+
</plugin>
123+
</plugins>
124+
</build>
125+
</profile>
126+
</profiles>
127+
128+
<dependencies>
129+
<dependency>
130+
<groupId>com.google.code.gson</groupId>
131+
<artifactId>gson</artifactId>
132+
<version>2.8.5</version>
133+
</dependency>
134+
</dependencies>
135+
136+
<developers>
137+
<developer>
138+
<name>Sematre</name>
139+
<email>Sematre@gmx.de</email>
140+
<organization>Sematre</organization>
141+
<organizationUrl>https://sematre.de</organizationUrl>
142+
</developer>
143+
</developers>
144+
145+
<organization>
146+
<name>Sematre</name>
147+
<url>https://sematre.de</url>
148+
</organization>
149+
</project>

0 commit comments

Comments
 (0)