Skip to content

Commit 68e616e

Browse files
authored
Merge pull request #32 from freenowtech/fix/release-github-actions
Fix Release to Maven Central
2 parents 6aa42aa + 69c70a5 commit 68e616e

File tree

3 files changed

+80
-113
lines changed

3 files changed

+80
-113
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
- name: Release and Publish
5454
uses: qcastel/github-actions-maven-release@v1.12.25
5555
with:
56+
access-token: ${{ secrets.FREE_NOW_GITHUB_ACCESS_TOKEN }}
5657
release-branch-name: ${{ env.BRANCH_NAME }}
5758

5859
gpg-enabled: true

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Phrase-Java-Client
2-
[![Build Status](https://travis-ci.org/mytaxi/phrase-java-client.svg?branch=master)](https://travis-ci.org/mytaxi/phrase-java-client)
3-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.mytaxi.apis/phrase-java-client/badge.svg?x=1)](https://maven-badges.herokuapp.com/maven-central/com.mytaxi.apis/phrase-java-client)
2+
[![Build Status](https://github.com/freenowtech/phrase-java-client/actions/workflows/maven.yml/badge.svg?query=branch%3Amaster)](https://github.com/freenowtech/phrase-java-client/actions?query=branch%3Amaster)
3+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.free-now.apis/phrase-java-client/badge.svg?x=1)](https://maven-badges.herokuapp.com/maven-central/com.free-now.apis/phrase-java-client)
44
## What is this?
55
This projects contains of services to handle the translations from [PhraseApp API v2](http://docs.phraseapp.com/api/v2/).
66
It's supposed to expose Phrase translations as POJO or as File within the java world.
@@ -16,9 +16,9 @@ Currently this project is not released in the maven central repository.
1616
Please install this dependency to your local repository and include the following dependency:
1717
```
1818
<dependency>
19-
<groupId>com.mytaxi.apis</groupId>
19+
<groupId>com.free-now.apis</groupId>
2020
<artifactId>phrase-java-client</artifactId>
21-
<version>1.0.4</version>
21+
<version>${phrase-java-client.version}</version>
2222
</dependency>
2323
```
2424

pom.xml

Lines changed: 75 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>com.mytaxi.apis</groupId>
5+
<groupId>com.free-now.apis</groupId>
66
<artifactId>phrase-java-client</artifactId>
7-
<version>1.0.7-SNAPSHOT</version>
7+
<version>1.1.0-SNAPSHOT</version>
88
<name>phrase-api</name>
99
<description>This projects contains of services to handle the translations from [PhraseApp API
1010
v2](http://docs.phraseapp.com/api/v2/). It's supposed to expose Phrase translations as POJO or as File within the java world.</description>
11-
<url>https://github.com/mytaxi/phrase-java-client</url>
11+
<url>https://github.com/freenowtech/phrase-java-client</url>
1212

1313
<licenses>
1414
<license>
@@ -20,15 +20,15 @@
2020
<developers>
2121
<developer>
2222
<name>Jan Sören Ramm</name>
23-
<organization>Intelligent Apps GmbH - mytaxi</organization>
24-
<organizationUrl>http://www.mytaxi.com</organizationUrl>
23+
<organization>Intelligent Apps GmbH - Free Now</organization>
24+
<organizationUrl>http://www.free-now.com</organizationUrl>
2525
</developer>
2626
</developers>
2727

2828
<scm>
2929
<connection>${scm.connection}</connection>
3030
<developerConnection>${scm.connection}</developerConnection>
31-
<tag>phrase-java-client-1.0.2</tag>
31+
<tag>phrase-java-client-1.0.6</tag>
3232
<url>${scm.url}</url>
3333
</scm>
3434

@@ -47,8 +47,8 @@
4747
<jackson.version>[2.7.0,2.8.0)</jackson.version>
4848
<javaVersion>1.8</javaVersion>
4949
<mavenVersion>2.0.9</mavenVersion>
50-
<scm.connection>scm:git:git@github.com:mytaxi/phrase-java-client.git</scm.connection>
51-
<scm.url>https://github.com/mytaxi/phrase-java-client</scm.url>
50+
<scm.connection>scm:git:git@github.com:freenowtech/phrase-java-client.git</scm.connection>
51+
<scm.url>https://github.com/freenowtech/phrase-java-client</scm.url>
5252
<spring.version>3.2.15.RELEASE</spring.version>
5353
</properties>
5454

@@ -153,122 +153,88 @@
153153

154154
</dependencies>
155155
<build>
156-
<pluginManagement>
157-
<plugins>
158-
<plugin>
159-
<groupId>org.apache.maven.plugins</groupId>
160-
<artifactId>maven-release-plugin</artifactId>
161-
<version>2.5</version>
162-
<configuration>
163-
<useReleaseProfile>false</useReleaseProfile>
164-
<releaseProfiles>release</releaseProfiles>
165-
<goals>deploy</goals>
166-
</configuration>
167-
</plugin>
168-
</plugins>
169-
</pluginManagement>
156+
157+
<resources>
158+
<resource>
159+
<directory>src/main/resources</directory>
160+
<filtering>true</filtering>
161+
</resource>
162+
</resources>
163+
<testResources>
164+
<testResource>
165+
<directory>src/test/resources</directory>
166+
</testResource>
167+
</testResources>
168+
169+
<sourceDirectory>src/main/java</sourceDirectory>
170+
<testSourceDirectory>src/test/java</testSourceDirectory>
171+
170172
<plugins>
171173
<plugin>
172174
<groupId>org.apache.maven.plugins</groupId>
173-
<artifactId>maven-compiler-plugin</artifactId>
174-
<version>2.5.1</version>
175-
<configuration>
176-
<source>${javaVersion}</source>
177-
<target>${javaVersion}</target>
178-
</configuration>
175+
<artifactId>maven-release-plugin</artifactId>
176+
<version>2.5.3</version>
177+
</plugin>
178+
<plugin>
179+
<groupId>org.apache.maven.plugins</groupId>
180+
<artifactId>maven-source-plugin</artifactId>
181+
<version>3.2.1</version>
182+
<executions>
183+
<execution>
184+
<id>attach-sources</id>
185+
<goals>
186+
<goal>jar-no-fork</goal>
187+
</goals>
188+
</execution>
189+
</executions>
179190
</plugin>
180191
<plugin>
181-
<groupId>com.github.ekryd.sortpom</groupId>
182-
<artifactId>sortpom-maven-plugin</artifactId>
183-
<version>2.4.0</version>
192+
<groupId>org.apache.maven.plugins</groupId>
193+
<artifactId>maven-gpg-plugin</artifactId>
194+
<version>1.5</version>
184195
<executions>
185196
<execution>
197+
<id>sign-artifacts</id>
186198
<phase>verify</phase>
187199
<goals>
188-
<goal>sort</goal>
200+
<goal>sign</goal>
201+
</goals>
202+
</execution>
203+
</executions>
204+
</plugin>
205+
<plugin>
206+
<groupId>org.apache.maven.plugins</groupId>
207+
<artifactId>maven-javadoc-plugin</artifactId>
208+
<version>3.2.0</version>
209+
<executions>
210+
<execution>
211+
<id>attach-javadocs</id>
212+
<goals>
213+
<goal>jar</goal>
189214
</goals>
190215
</execution>
191216
</executions>
217+
</plugin>
218+
<plugin>
219+
<groupId>org.sonatype.plugins</groupId>
220+
<artifactId>nexus-staging-maven-plugin</artifactId>
221+
<version>1.6.8</version>
222+
<extensions>true</extensions>
223+
<configuration>
224+
<serverId>ossrh</serverId>
225+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
226+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
227+
</configuration>
228+
</plugin>
229+
<plugin>
230+
<groupId>org.apache.maven.plugins</groupId>
231+
<artifactId>maven-compiler-plugin</artifactId>
232+
<version>2.5.1</version>
192233
<configuration>
193-
<lineSeparator>\n</lineSeparator>
194-
<sortProperties>true</sortProperties>
195-
<keepBlankLines>true</keepBlankLines>
196-
<sortDependencies>scope</sortDependencies>
197-
<nrOfIndentSpace>4</nrOfIndentSpace>
198-
<createBackupFile>false</createBackupFile>
234+
<source>${javaVersion}</source>
235+
<target>${javaVersion}</target>
199236
</configuration>
200237
</plugin>
201238
</plugins>
202239
</build>
203-
204-
<profiles>
205-
<profile>
206-
<id>doclint-java8-disable</id>
207-
<activation>
208-
<jdk>[1.8,)</jdk>
209-
</activation>
210-
<properties>
211-
<additionalparam>-Xdoclint:none</additionalparam>
212-
</properties>
213-
</profile>
214-
<profile>
215-
<id>release</id>
216-
<build>
217-
<plugins>
218-
<plugin>
219-
<groupId>org.apache.maven.plugins</groupId>
220-
<artifactId>maven-gpg-plugin</artifactId>
221-
<version>1.5</version>
222-
<executions>
223-
<execution>
224-
<id>sign-artifacts</id>
225-
<phase>verify</phase>
226-
<goals>
227-
<goal>sign</goal>
228-
</goals>
229-
</execution>
230-
</executions>
231-
</plugin>
232-
<plugin>
233-
<groupId>org.sonatype.plugins</groupId>
234-
<artifactId>nexus-staging-maven-plugin</artifactId>
235-
<version>1.6.3</version>
236-
<extensions>true</extensions>
237-
<configuration>
238-
<serverId>ossrh</serverId>
239-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
240-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
241-
</configuration>
242-
</plugin>
243-
<plugin>
244-
<groupId>org.apache.maven.plugins</groupId>
245-
<artifactId>maven-source-plugin</artifactId>
246-
<version>2.2.1</version>
247-
<executions>
248-
<execution>
249-
<id>attach-sources</id>
250-
<goals>
251-
<goal>jar-no-fork</goal>
252-
</goals>
253-
</execution>
254-
</executions>
255-
</plugin>
256-
<plugin>
257-
<groupId>org.apache.maven.plugins</groupId>
258-
<artifactId>maven-javadoc-plugin</artifactId>
259-
<version>2.9.1</version>
260-
<executions>
261-
<execution>
262-
<id>attach-javadocs</id>
263-
<goals>
264-
<goal>jar</goal>
265-
</goals>
266-
</execution>
267-
</executions>
268-
</plugin>
269-
</plugins>
270-
</build>
271-
</profile>
272-
</profiles>
273-
274240
</project>

0 commit comments

Comments
 (0)