Skip to content

Commit bdd66aa

Browse files
authored
Merge pull request #9 from ConvertAPI/develop
Develop
2 parents 79e3f37 + c4eeb16 commit bdd66aa

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

examples/src/main/java/com/convertapi/examples/AlternativeConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static void main(String[] args) throws IOException, ExecutionException, I
2828

2929
System.out.println("Converting DOCX to PDF with OpenOffice converter");
3030
Param docxFileParam = new Param("file", new File(AlternativeConverter.class.getClassLoader().getResource("test.docx").getFile()).toPath());
31-
Param converterParam = new Param("converter", "openofficetopdf");
31+
Param converterParam = new Param("converter", "openoffice");
3232

3333
CompletableFuture<ConversionResult> pdfResult = ConvertApi.convert("docx", "pdf", docxFileParam, converterParam);
3434

maven-release-snapshot.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/sh
2+
3+
# Usage: ./maven-release-snapshot.sh 2.0-SNAPSHOT
4+
5+
branch_to_release="develop"
6+
7+
echo "Switching to the release branch..."
8+
git fetch
9+
git checkout $branch_to_release
10+
11+
echo "Pulling changes..."
12+
git pull --ff-only
13+
14+
echo "Push commits..."
15+
git push
16+
17+
echo "Revert uncommitted changes..."
18+
git checkout .
19+
20+
echo "Cleaning..."
21+
mvn clean
22+
23+
echo "Preparing release..."
24+
if [ $# -eq 1 ]
25+
then
26+
echo "\n\n" | mvn release:prepare -DreleaseVersion=$1 -Dtag=staging -Dresume=false
27+
else
28+
echo "Usage: ./maven-release-snapshot.sh [snapshot version], e.g.: 2.0-SNAPSHOT"
29+
fi
30+
31+
echo "Performing release..."
32+
mvn release:perform
33+
34+
echo "Remove local staging tag..."
35+
git tag -d staging
36+
37+
echo "Revert release commits..."
38+
git reset --hard origin/$branch_to_release

0 commit comments

Comments
 (0)