forked from smallrye/smallrye-jwt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
to-jakarta.sh
25 lines (22 loc) · 1.75 KB
/
to-jakarta.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
# move to jakarta parent
find . -type f -name 'pom.xml' -exec sed -i 's/smallrye-parent/smallrye-jakarta-parent/g' {} +
# java sources
find . -type f -name '*.java' -exec sed -i 's/javax./jakarta./g' {} +
find . -type f -name '*.java' -exec sed -i 's/jakarta.crypto./javax.crypto./g' {} +
find . -type f -name '*.java' -exec sed -i 's/jakarta.security.auth./javax.security.auth./g' {} +
find . -type f -name '*.java' -exec sed -i 's/jakarta.net.ssl./javax.net.ssl./g' {} +
# service loader files
find . -path "*/src/main/resources/META-INF/services/javax*" | sed -e 'p;s/javax/jakarta/g' | xargs -n2 git mv
mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.nextMajorVersion}.0.1-SNAPSHOT -Pcoverage
mvn versions:update-property -Dproperty=version.jakarta.servlet.api -DnewVersion=[5.0.0] -N
mvn versions:update-property -Dproperty=version.jakarta.security.enterprise.api -DnewVersion=[2.0.0] -N
mvn versions:update-property -Dproperty=version.smallrye.config -DnewVersion=[3.0.0] -N
mvn versions:update-property -Dproperty=version.eclipse.microprofile.jwt -DnewVersion=[2.0] -N
mvn versions:update-property -Dproperty=version.microprofile.config -DnewVersion=[3.0] -N
mvn versions:set-property -Dproperty=artifactId.arquillian.jetty -DnewVersion=arquillian-jetty-embedded-11 -N
mvn versions:update-property -Dproperty=version.jetty -DnewVersion=[11.0.7] -N
mvn versions:set-property -Dproperty=version.resteasy -DnewVersion=6.0.0.Final -N
mvn versions:set-property -Dproperty=groupId.resteasy.client -DnewVersion=org.jboss.resteasy.microprofile -N
mvn versions:set-property -Dproperty=artifactId.resteasy.client -DnewVersion=microprofile-rest-client -N
mvn versions:set-property -Dproperty=version.resteasy.client -DnewVersion=2.0.0.Beta1 -N