Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Nov 28, 2023
2 parents 28dbf45 + 313e5b7 commit 18972b5
Show file tree
Hide file tree
Showing 133 changed files with 5,052 additions and 1,818 deletions.
43 changes: 24 additions & 19 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,45 @@ name: Deploy

on:
push:
branches: [ master , development]
branches: [ master , development ]

jobs:
verify:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
java-version: [ 8, 11 ]
java-version: [ 11 ]
steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Java and Maven
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
- run: mvn verify
distribution: 'temurin'
- run: mvn verify -B -e

release:
needs: verify
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Java and Maven
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8

- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}
maven_args: -Dci=true
java-version: 11
distribution: 'temurin'
server-id: ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
- id: install-secret-key
name: Install gpg secret key
run: |
cat <(echo -e "${{ secrets.gpg_private_key }}") | gpg --batch --import
- name: publish to snapshot
run: mvn --no-transfer-progress clean deploy -B -e -Dci=true -Dgpg.passphrase=${{ secrets.gpg_passphrase }}
env:
SONATYPE_USERNAME: ${{ secrets.nexus_username }}
SONATYPE_PASSWORD: ${{ secrets.nexus_password }}
1 change: 0 additions & 1 deletion .mvn/maven.config

This file was deleted.

6 changes: 0 additions & 6 deletions .mvn/settings.xml

This file was deleted.

48 changes: 40 additions & 8 deletions domino-rest-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>domino-rest</artifactId>
<groupId>org.dominokit</groupId>
<version>1.0.0</version>
<version>1.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -21,12 +21,12 @@
<version>1.0.0-RC1</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<groupId>org.gwtproject</groupId>
<artifactId>gwt-user</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<groupId>org.gwtproject</groupId>
<artifactId>gwt-dev</artifactId>
<scope>test</scope>
</dependency>
Expand All @@ -40,11 +40,6 @@
<artifactId>domino-rest-shared</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.dominokit</groupId>
<artifactId>domino-rest-jaxrs</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.gwtproject.core</groupId>
<artifactId>gwt-core</artifactId>
Expand All @@ -60,6 +55,43 @@
<artifactId>gwt-xhr</artifactId>
<version>1.0.0-RC1</version>
</dependency>

<dependency>
<groupId>org.gwtproject.regexp</groupId>
<artifactId>gwt-regexp</artifactId>
<version>1.0.0-RC1</version>
<exclusions>
<exclusion>
<groupId>com.google.elemental2</groupId>
<artifactId>elemental2-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.elemental2</groupId>
<artifactId>elemental2-dom</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.elemental2</groupId>
<artifactId>elemental2-promise</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.elemental2</groupId>
<artifactId>elemental2-promise</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api -->
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>${jax.rs.version}</version>
</dependency>

<dependency>
<groupId>org.dominokit</groupId>
<artifactId>domino-rest-jaxrs</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import org.dominokit.rest.js.ServerEventFactory;
import org.dominokit.rest.shared.request.*;
import org.gwtproject.i18n.shared.DateTimeFormat;
import org.gwtproject.regexp.shared.MatchResult;
import org.gwtproject.regexp.shared.RegExp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -253,4 +255,19 @@ public RestConfig setNullQueryParamStrategy(NullQueryParamStrategy strategy) {
}
return this;
}

@Override
public UrlTokenRegexMatcher getUrlTokenRegexMatcher() {
return url -> {
if (url.contains("http:") || url.contains("https:")) {
RegExp regExp = RegExp.compile("^((.*:)//([a-z0-9\\-.]+)(|:[0-9]+)/)(.*)$");
MatchResult matcher = regExp.exec(url);
boolean matchFound = matcher != null; // equivalent to regExp.test(inputStr);
if (matchFound) {
return matcher.getGroup(matcher.getGroupCount() - 1);
}
}
return url;
};
}
}
1 change: 1 addition & 0 deletions domino-rest-client/src/main/module.gwt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
<inherits name="org.gwtproject.event.Event"/>
<inherits name="org.gwtproject.core.Core"/>
<inherits name="org.dominokit.domino.logger.Logging"/>
<inherits name="javax.ws.rs.JaxRs"/>
<source path=""/>
</module>
7 changes: 1 addition & 6 deletions domino-rest-jaxrs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.dominokit</groupId>
<artifactId>domino-rest</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</parent>

<artifactId>domino-rest-jaxrs</artifactId>
Expand All @@ -16,11 +16,6 @@
<description>domino rest jax-rs super sources</description>

<build>
<resources>
<resource>
<directory>src/main/java</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
80 changes: 0 additions & 80 deletions domino-rest-jaxrs/src/main/java/javax/ws/rs/Consumes.java

This file was deleted.

67 changes: 0 additions & 67 deletions domino-rest-jaxrs/src/main/java/javax/ws/rs/CookieParam.java

This file was deleted.

Loading

0 comments on commit 18972b5

Please sign in to comment.