Skip to content

Commit 485adbe

Browse files
committed
Rename spotify-web-api-generator-java to spotify-web-api-java-generator
1 parent 33d8eb5 commit 485adbe

27 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ Other notable changes:
1111

1212
- Renamed the maven groupId from `de.jsone-studios` to `de.sonallux.spotify`
1313
- Renamed package from `de.jsone_studios.wrapper.spotify` to `de.sonallux.spotify.api`
14-
- Removed `SpotifyApi` interface in favour of a `SpotifyWebApi`
14+
- Removed `SpotifyApi` interface in favour of an updated `SpotifyWebApi` class
1515
- `SpotifyWebApi` uses the builder pattern to create an instance
16-
- Replaced [retrofit](https://square.github.io/retrofit) by a custom wrapper around [OkHttp](https://square.github.io/okhttp)
16+
- Replaced [retrofit](https://square.github.io/retrofit) with a custom wrapper around [OkHttp](https://square.github.io/okhttp)
1717
- Requests are now created with a builder style api for optional parameters. For example:
1818
```java
1919
ApiCall<?> call1 = spotifyWebApi.getXApi().getX("requiredParam").build();
2020
ApiCall<?> call2 = spotifyWebApi.getXApi().getX("requiredParam").optionalParam1("Y").build();
2121
```
2222
- Removed `SpotifyApi.callApi()` in favour of an `executeCall()` method on the new `ApiCall` class
2323
- Removed `SpotifyApi.callApiAndReturnBody()` in favour of an `execute()` method on the new `ApiCall` class
24-
- Added support for all authorization flows. See [here](https://github.com/sonallux/spotify-web-api-java/tree/master/spotify-web-api-java#authorization) for more details.
24+
- Added support for all authorization flows. See [here](https://github.com/sonallux/spotify-web-api-java/tree/main#authorization) for more details.
2525

2626
## [1.x.x]
2727
The changelog of the `1.x.x` version of the `spotify-web-api-java` can be found on the [master branch](https://github.com/sonallux/spotify-web-api-java/blob/master/CHANGELOG.md).

generate-java-wrapper.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/bin/sh
22

3-
# This script runs the spotify-web-api-generator-java to generate the java wrapper.
3+
# This script runs the spotify-web-api-java-generator to generate the java wrapper.
44

55
OUTPUT_FOLDER=./spotify-web-api-java/src/main/generated/
66
JAVA_PACKAGE_NAME="de.sonallux.spotify.api"
77

88
# Find a '*.cli-jar'
9-
cliJarFile=$(find ./spotify-web-api-generator-java/target -maxdepth 1 -type f -name "*-cli.jar" -print -quit)
9+
cliJarFile=$(find ./spotify-web-api-java-generator/target -maxdepth 1 -type f -name "*-cli.jar" -print -quit)
1010

1111
if [ -z "$cliJarFile" ]
1212
then
13-
echo "Unable to find generator-java cli jar file. Did you run './mvnw package'?"
13+
echo "Unable to find java-generator cli jar file. Did you run './mvnw package'?"
1414
exit 1
1515
fi
1616

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<url>https://github.com/sonallux/spotify-web-api-java</url>
1515

1616
<modules>
17-
<module>spotify-web-api-generator-java</module>
17+
<module>spotify-web-api-java-generator</module>
1818
<module>spotify-web-api-java</module>
1919
</modules>
2020

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

14-
<artifactId>spotify-web-api-generator-java</artifactId>
14+
<artifactId>spotify-web-api-java-generator</artifactId>
1515
<version>2.0.0-SNAPSHOT</version>
1616
<packaging>jar</packaging>
1717

18-
<name>spotify-web-api-generator-java</name>
18+
<name>spotify-web-api-java-generator</name>
1919
<description>A generator to generate the Java Wrapper for the Spotify Web Api</description>
2020
<url>https://github.com/sonallux/spotify-web-api-java</url>
2121

spotify-web-api-generator-java/src/main/java/de/sonallux/spotify/generator/java/CLI.java renamed to spotify-web-api-java-generator/src/main/java/de/sonallux/spotify/generator/java/CLI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static void main(String[] args) {
9494
}
9595

9696
static class ManifestVersionProvider implements IVersionProvider {
97-
private static final String IMPLEMENTATION_TITLE = "spotify-web-api-generator-java";
97+
private static final String IMPLEMENTATION_TITLE = "spotify-web-api-java-generator";
9898

9999
@Override
100100
public String[] getVersion() throws Exception {

spotify-web-api-generator-java/src/main/java/de/sonallux/spotify/generator/java/EndpointHelper.java renamed to spotify-web-api-java-generator/src/main/java/de/sonallux/spotify/generator/java/EndpointHelper.java

File renamed without changes.

spotify-web-api-generator-java/src/main/java/de/sonallux/spotify/generator/java/GeneratorException.java renamed to spotify-web-api-java-generator/src/main/java/de/sonallux/spotify/generator/java/GeneratorException.java

File renamed without changes.

spotify-web-api-generator-java/src/main/java/de/sonallux/spotify/generator/java/JavaGenerator.java renamed to spotify-web-api-java-generator/src/main/java/de/sonallux/spotify/generator/java/JavaGenerator.java

File renamed without changes.

spotify-web-api-generator-java/src/main/java/de/sonallux/spotify/generator/java/NoEscapingMustacheFactory.java renamed to spotify-web-api-java-generator/src/main/java/de/sonallux/spotify/generator/java/NoEscapingMustacheFactory.java

File renamed without changes.

spotify-web-api-generator-java/src/main/java/de/sonallux/spotify/generator/java/templates/AbstractTemplate.java renamed to spotify-web-api-java-generator/src/main/java/de/sonallux/spotify/generator/java/templates/AbstractTemplate.java

File renamed without changes.

0 commit comments

Comments
 (0)