Skip to content

Commit

Permalink
Merge branch 'master' into feature/test-containers
Browse files Browse the repository at this point in the history
  • Loading branch information
paultuckey committed Mar 21, 2023
2 parents 9e707cc + cf885c1 commit 4c505af
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 10 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/maven.yml
Expand Up @@ -12,10 +12,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 1.8
java-version: '17'
distribution: 'zulu'

- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn --batch-mode --update-snapshots package

# - uses: actions/upload-artifact@v3
# with:
# name: Package
# path: staging
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -31,6 +31,16 @@ See the [manual](https://tuckey.org/urlrewrite/manual/4.0/index.html) for more i
<version>4.0.3</version>
</dependency>
```

For Servlet API 5.0, use Jakarta classifier like
```xml
<dependency>
<groupId>org.tuckey</groupId>
<artifactId>urlrewritefilter</artifactId>
<version>4.0.3</version>
<classifier>jakarta</classifier>
</dependency>
```
* Add the following to your WEB-INF/web.xml (add it near the top above your servlet mappings (if you have any)): (see <a href="https://tuckey.org/urlrewrite/manual/4.0/index.html#filterparams">filter parameters</a> for more options)
```xml
<filter>
Expand Down
34 changes: 34 additions & 0 deletions annotation/pom.xml
Expand Up @@ -84,6 +84,40 @@
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.2</version>
<executions>
<execution>
<id>jakarta</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedClassifierName>jakarta</shadedClassifierName>
<shadedArtifactAttached>true</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>${project.groupId}:${project.artifactId}</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>javax.servlet</pattern>
<shadedPattern>jakarta.servlet</shadedPattern>
</relocation>
<relocation>
<pattern>javax.annotation</pattern>
<shadedPattern>jakarta.annotation</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</reporting>

Expand Down
51 changes: 46 additions & 5 deletions pom.xml
Expand Up @@ -77,7 +77,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.1</version>
<version>3.0.0</version>
<executions>
<execution>
<phase>validate</phase>
Expand All @@ -88,7 +88,8 @@
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>true</doUpdate>
<doUpdate>false</doUpdate>
<shortRevisionLength>5</shortRevisionLength>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -141,8 +142,46 @@
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.1</version>
<version>3.12.0</version>
<dependencies>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.5</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.2</version>
<executions>
<execution>
<id>jakarta</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedClassifierName>jakarta</shadedClassifierName>
<shadedArtifactAttached>true</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>${project.groupId}:${project.artifactId}</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>javax.servlet</pattern>
<shadedPattern>jakarta.servlet</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down Expand Up @@ -185,12 +224,14 @@
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.5</version>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<version>3.0.0-M9</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 4c505af

Please sign in to comment.