-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathjakarta-ee-9.yml
1019 lines (1013 loc) · 41.8 KB
/
jakarta-ee-9.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#
# Copyright 2023 the original author or authors.
# <p>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# <p>
# https://www.apache.org/licenses/LICENSE-2.0
# <p>
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxMigrationToJakarta
displayName: Migrate to Jakarta EE 9
description: Jakarta EE 9 is the first version of Jakarta EE that uses the new `jakarta` namespace.
tags:
- jaxb
- jaxws
- jakarta
# TODO: Update XML references if necessary.
# TODO: Rename bootstrapping files if necessary.
recipeList:
- org.openrewrite.java.migrate.jakarta.JavaxActivationMigrationToJakartaActivation
- org.openrewrite.java.migrate.jakarta.JavaxAnnotationMigrationToJakartaAnnotation
- org.openrewrite.java.migrate.jakarta.JavaxAuthenticationMigrationToJakartaAuthentication
- org.openrewrite.java.migrate.jakarta.JavaxAuthorizationMigrationToJakartaAuthorization
- org.openrewrite.java.migrate.jakarta.JavaxBatchMigrationToJakartaBatch
- org.openrewrite.java.migrate.jakarta.JavaxDecoratorToJakartaDecorator
- org.openrewrite.java.migrate.jakarta.JavaxEjbToJakartaEjb
- org.openrewrite.java.migrate.jakarta.JavaxElToJakartaEl
- org.openrewrite.java.migrate.jakarta.JavaxEnterpriseToJakartaEnterprise
- org.openrewrite.java.migrate.jakarta.JavaxFacesToJakartaFaces
- org.openrewrite.java.migrate.jakarta.JavaxInjectMigrationToJakartaInject
- org.openrewrite.java.migrate.jakarta.JavaxInterceptorToJakartaInterceptor
- org.openrewrite.java.migrate.jakarta.JavaxJmsToJakartaJms
- org.openrewrite.java.migrate.jakarta.JavaxJsonToJakartaJson
- org.openrewrite.java.migrate.jakarta.JavaxJwsToJakartaJws
- org.openrewrite.java.migrate.jakarta.JavaxMailToJakartaMail
- org.openrewrite.java.migrate.jakarta.JavaxOrmXmlToJakartaOrmXml
- org.openrewrite.java.migrate.jakarta.JavaxPersistenceToJakartaPersistence
- org.openrewrite.java.migrate.jakarta.JavaxPersistenceXmlToJakartaPersistenceXml
- org.openrewrite.java.migrate.jakarta.JavaxResourceToJakartaResource
- org.openrewrite.java.migrate.jakarta.JavaxSecurityToJakartaSecurity
- org.openrewrite.java.migrate.jakarta.JavaxServletToJakartaServlet
- org.openrewrite.java.migrate.jakarta.JavaxTransactionMigrationToJakartaTransaction
- org.openrewrite.java.migrate.jakarta.JavaxValidationMigrationToJakartaValidation
- org.openrewrite.java.migrate.jakarta.JavaxWebsocketToJakartaWebsocket
- org.openrewrite.java.migrate.jakarta.JavaxWsToJakartaWs
- org.openrewrite.java.migrate.jakarta.JavaxXmlBindMigrationToJakartaXmlBind
- org.openrewrite.java.migrate.jakarta.JavaxXmlSoapToJakartaXmlSoap
- org.openrewrite.java.migrate.jakarta.JavaxXmlWsMigrationToJakartaXmlWs
- org.openrewrite.java.migrate.jakarta.JacksonJavaxToJakarta
- org.openrewrite.java.migrate.jakarta.EhcacheJavaxToJakarta
- org.openrewrite.java.migrate.jakarta.JohnzonJavaxToJakarta
- org.openrewrite.java.migrate.jakarta.RestAssuredJavaxToJakarta
- org.openrewrite.java.migrate.jakarta.ApplicationPathWildcardNoLongerAccepted
- org.openrewrite.java.migrate.jakarta.UpdateApacheWSSecurityPackages
- org.openrewrite.java.migrate.javaee8
- org.openrewrite.java.migrate.jakarta.JavaxEEApiToJakarta
- org.openrewrite.java.migrate.jakarta.RemoveJakartaAnnotationDependency
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxActivationMigrationToJakartaActivation
displayName: Migrate deprecated `javax.activation` packages to `jakarta.activation`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
tags:
- activation
- javax
- jakarta
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.activation
oldArtifactId: javax.activation-api
newGroupId: jakarta.activation
newArtifactId: jakarta.activation-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.activation
artifactId: jakarta.activation-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.activation
newPackageName: jakarta.activation
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxAnnotationMigrationToJakartaAnnotation
displayName: Migrate deprecated `javax.annotation` to `jakarta.annotation`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
tags:
- annotation
- javax
- jakarta
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.annotation
oldArtifactId: javax.annotation-api
newGroupId: jakarta.annotation
newArtifactId: jakarta.annotation-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.glassfish.main
oldArtifactId: javax.annotation
newGroupId: jakarta.annotation
newArtifactId: jakarta.annotation-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.annotation
newPackageName: jakarta.annotation
recursive: true
- org.openrewrite.java.ChangePackage:
oldPackageName: jakarta.annotation.processing
newPackageName: javax.annotation.processing
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxAuthenticationMigrationToJakartaAuthentication
displayName: Migrate deprecated `javax.security.auth.message` packages to `jakarta.security.auth.message`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
tags:
- authentication
- security
- javax
- jakarta
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.security.auth.message
oldArtifactId: javax.security.auth.message-api
newGroupId: jakarta.authentication
newArtifactId: jakarta.authentication-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.glassfish.main
oldArtifactId: javax.security.auth.message
newGroupId: jakarta.authentication
newArtifactId: jakarta.authentication-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.authentication
artifactId: jakarta.authentication-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.security.auth.message
newPackageName: jakarta.security.auth.message
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxAuthorizationMigrationToJakartaAuthorization
displayName: Migrate deprecated `javax.security.jacc` packages to `jakarta.security.jacc`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
tags:
- authorization
- security
- javax
- jakarta
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.security.jacc
oldArtifactId: javax.security.jacc-api
newGroupId: jakarta.authorization
newArtifactId: jakarta.authorization-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.glassfish.main
oldArtifactId: javax.security.jacc
newGroupId: jakarta.authorization
newArtifactId: jakarta.authorization-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.authorization
artifactId: jakarta.authorization-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.security.jacc
newPackageName: jakarta.security.jacc
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxBatchMigrationToJakartaBatch
displayName: Migrate deprecated `javax.batch` packages to `jakarta.batch`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
tags:
- batch
- javax
- jakarta
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.batch
oldArtifactId: javax.batch-api
newGroupId: jakarta.batch
newArtifactId: jakarta.batch-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.batch
artifactId: jakarta.batch-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.batch
newPackageName: jakarta.batch
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxValidationMigrationToJakartaValidation
displayName: Migrate deprecated `javax.validation` packages to `jakarta.validation`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
tags:
- validation
- javax
- jakarta
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.validation
oldArtifactId: validation-api
newGroupId: jakarta.validation
newArtifactId: jakarta.validation-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.validation
artifactId: jakarta.validation-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.validation
newPackageName: jakarta.validation
recursive: true
- org.openrewrite.RenameFile:
fileMatcher: '**/javax.validation.ConstraintValidator'
fileName: jakarta.validation.ConstraintValidator
- org.openrewrite.text.FindAndReplace:
find: "javax."
replace: "jakarta."
filePattern: '**/ValidationMessages*.properties'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxDecoratorToJakartaDecorator
displayName: Migrate deprecated `javax.decorator` packages to `jakarta.decorator`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.enterprise
oldArtifactId: cdi-api
newGroupId: jakarta.enterprise
newArtifactId: jakarta.enterprise.cdi-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.enterprise
artifactId: jakarta.enterprise.cdi-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.decorator
newPackageName: jakarta.decorator
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxEjbToJakartaEjb
displayName: Migrate deprecated `javax.ejb` packages to `jakarta.ejb`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.ejb
oldArtifactId: javax.ejb-api
newGroupId: jakarta.ejb
newArtifactId: jakarta.ejb-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.glassfish.main
oldArtifactId: javax.ejb
newGroupId: jakarta.ejb
newArtifactId: jakarta.ejb-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.ejb
artifactId: jakarta.ejb-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.ejb
newPackageName: jakarta.ejb
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxElToJakartaEl
displayName: Migrate deprecated `javax.el` packages to `jakarta.el`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.el
oldArtifactId: javax.el-api
newGroupId: jakarta.el
newArtifactId: jakarta.el-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.el
artifactId: jakarta.el-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.el
newPackageName: jakarta.el
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxEnterpriseToJakartaEnterprise
displayName: Migrate deprecated `javax.enterprise` packages to `jakarta.enterprise`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.enterprise
oldArtifactId: cdi-api
newGroupId: jakarta.enterprise
newArtifactId: jakarta.enterprise.cdi-api
newVersion: 3.0.1
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.enterprise
artifactId: jakarta.enterprise.cdi-api
newVersion: 3.0.1
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.enterprise
newPackageName: jakarta.enterprise
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxFacesToJakartaFaces
displayName: Migrate deprecated `javax.faces` packages to `jakarta.faces`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.faces
oldArtifactId: javax.faces-api
newGroupId: jakarta.faces
newArtifactId: jakarta.faces-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.faces
artifactId: jakarta.faces-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.faces
newPackageName: jakarta.faces
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxInjectMigrationToJakartaInject
displayName: Migrate deprecated `javax.inject` packages to `jakarta.inject`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
tags:
- inject
- javax
- jakarta
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.inject
oldArtifactId: javax.inject-api
newGroupId: jakarta.inject
newArtifactId: jakarta.inject-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.inject
oldArtifactId: javax.inject
newGroupId: jakarta.inject
newArtifactId: jakarta.inject-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.inject
artifactId: jakarta.inject-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.inject
newPackageName: jakarta.inject
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxInterceptorToJakartaInterceptor
displayName: Migrate deprecated `javax.interceptor` packages to `jakarta.interceptor`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.interceptor
oldArtifactId: javax.interceptor-api
newGroupId: jakarta.interceptor
newArtifactId: jakarta.interceptor-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.interceptor
artifactId: jakarta.interceptor-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.interceptor
newPackageName: jakarta.interceptor
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxJmsToJakartaJms
displayName: Migrate deprecated `javax.jms` packages to `jakarta.jms`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.jms
oldArtifactId: javax.jms-api
newGroupId: jakarta.jms
newArtifactId: jakarta.jms-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.glassfish.main
oldArtifactId: javax.jms
newGroupId: jakarta.jms
newArtifactId: jakarta.jms-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.jms
artifactId: jakarta.jms-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.jms
newPackageName: jakarta.jms
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxJsonToJakartaJson
displayName: Migrate deprecated `javax.json` packages to `jakarta.json`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.json
oldArtifactId: javax.json-api
newGroupId: jakarta.json
newArtifactId: jakarta.json-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.json
artifactId: jakarta.json-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.json
newPackageName: jakarta.json
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxJwsToJakartaJws
displayName: Migrate deprecated `javax.jws` packages to `jakarta.jws`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.jws
oldArtifactId: javax.jws-api
newGroupId: jakarta.jws
newArtifactId: jakarta.jws-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.glassfish.main
oldArtifactId: javax.jws
newGroupId: jakarta.jws
newArtifactId: jakarta.jws-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.jws
artifactId: jakarta.jws-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.jws
newPackageName: jakarta.jws
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxMailToJakartaMail
displayName: Migrate deprecated `javax.mail` packages to `jakarta.mail`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.mail
oldArtifactId: javax.mail-api
newGroupId: jakarta.mail
newArtifactId: jakarta.mail-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.mail
artifactId: jakarta.mail-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.mail
newPackageName: jakarta.mail
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxPersistenceToJakartaPersistence
displayName: Migrate deprecated `javax.persistence` packages to `jakarta.persistence`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.persistence
oldArtifactId: javax.persistence-api
newGroupId: jakarta.persistence
newArtifactId: jakarta.persistence-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.eclipse.persistence
oldArtifactId: javax.persistence
newGroupId: jakarta.persistence
newArtifactId: jakarta.persistence-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.persistence
artifactId: jakarta.persistence-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.persistence
newPackageName: jakarta.persistence
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxResourceToJakartaResource
displayName: Migrate deprecated `javax.resource` packages to `jakarta.resource`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.resource
oldArtifactId: javax.resource-api
newGroupId: jakarta.resource
newArtifactId: jakarta.resource-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.glassfish.main
oldArtifactId: javax.resource
newGroupId: jakarta.resource
newArtifactId: jakarta.resource-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.resource
artifactId: jakarta.resource-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.resource
newPackageName: jakarta.resource
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxSecurityToJakartaSecurity
displayName: Migrate deprecated `javax.security.enterprise` packages to `jakarta.security.enterprise`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.security.enterprise
oldArtifactId: javax.security.enterprise-api
newGroupId: jakarta.security.enterprise
newArtifactId: jakarta.security.enterprise-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.security.enterprise
artifactId: jakarta.security.enterprise-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.security.enterprise
newPackageName: jakarta.security.enterprise
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxServletToJakartaServlet
displayName: Migrate deprecated `javax.servlet` packages to `jakarta.servlet`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.servlet
oldArtifactId: javax.servlet-api
newGroupId: jakarta.servlet
newArtifactId: jakarta.servlet-api
newVersion: 6.x
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.servlet
artifactId: jakarta.servlet-api
newVersion: 6.x
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.servlet
newPackageName: jakarta.servlet
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxTransactionMigrationToJakartaTransaction
displayName: Migrate deprecated `javax.transaction` packages to `jakarta.transaction`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
tags:
- transaction
- javax
- jakarta
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.transaction
oldArtifactId: javax.transaction-api
newGroupId: jakarta.transaction
newArtifactId: jakarta.transaction-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.glassfish.main
oldArtifactId: javax.transaction
newGroupId: jakarta.transaction
newArtifactId: jakarta.transaction-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.transaction
artifactId: jakarta.transaction-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.transaction
newPackageName: jakarta.transaction
recursive: false
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxWebsocketToJakartaWebsocket
displayName: Migrate deprecated `javax.websocket` packages to `jakarta.websocket`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.websocket
oldArtifactId: javax.websocket-api
newGroupId: jakarta.websocket
newArtifactId: jakarta.websocket-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.websocket
artifactId: jakarta.websocket-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.websocket
newPackageName: jakarta.websocket
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxWsToJakartaWs
displayName: Migrate deprecated `javax.ws` packages to `jakarta.ws`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.ws.rs
oldArtifactId: javax.ws.rs-api
newGroupId: jakarta.ws.rs
newArtifactId: jakarta.ws.rs-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.ws.rs
artifactId: jakarta.ws.rs-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.ws
newPackageName: jakarta.ws
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxXmlBindMigrationToJakartaXmlBind
displayName: Migrate deprecated `javax.xml.bind` packages to `jakarta.xml.bind`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
tags:
- jaxb
- javax
- jakarta
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.xml.bind
oldArtifactId: jaxb-api
newGroupId: jakarta.xml.bind
newArtifactId: jakarta.xml.bind-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.xml.bind
artifactId: jakarta.xml.bind-api
newVersion: latest.release
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.sun.xml.bind
oldArtifactId: jaxb-impl
newGroupId: org.glassfish.jaxb
newArtifactId: jaxb-runtime
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.glassfish.jaxb
artifactId: jaxb-runtime
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.xml.bind
newPackageName: jakarta.xml.bind
recursive: true
- org.openrewrite.maven.UpgradePluginVersion:
groupId: org.codehaus.mojo
artifactId: jaxb2-maven-plugin
newVersion: 3.x
- org.openrewrite.maven.UpgradePluginVersion:
groupId: org.codehaus.mojo
artifactId: jaxb-maven-plugin
newVersion: 4.x
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxXmlSoapToJakartaXmlSoap
displayName: Migrate deprecated `javax.soap` packages to `jakarta.soap`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.xml.soap
oldArtifactId: javax.xml.soap-api
newGroupId: jakarta.xml.soap
newArtifactId: jakarta.xml.soap-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.xml.soap
artifactId: jakarta.xml.soap-api
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.xml.soap
newPackageName: jakarta.xml.soap
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxXmlWsMigrationToJakartaXmlWs
displayName: Migrate deprecated `javax.xml.ws` packages to `jakarta.xml.ws`
description: Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
tags:
- jaxws
- javax
- jakarta
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.xml.ws
oldArtifactId: jaxws-api
newGroupId: jakarta.xml.ws
newArtifactId: jakarta.xml.ws-api
newVersion: latest.release
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.xml.ws
artifactId: jakarta.xml.ws-api
newVersion: latest.release
- org.openrewrite.java.dependencies.AddDependency:
groupId: com.sun.xml.ws
artifactId: jaxws-rt
version: latest.release
scope: runtime
onlyIfUsing: javax.xml.ws..*
acceptTransitive: true
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: com.sun.xml.ws
artifactId: jaxws-rt
newVersion: latest.release
- org.openrewrite.java.ChangePackage:
oldPackageName: javax.xml.ws
newPackageName: jakarta.xml.ws
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxOrmXmlToJakartaOrmXml
displayName: Migrate xmlns entries in `orm.xml` files
description: Java EE has been rebranded to Jakarta EE, necessitating an XML namespace relocation.
tags:
- jakarta
- persistence
- orm
preconditions:
- org.openrewrite.FindSourceFiles:
filePattern: '**/*orm.xml'
recipeList:
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: version
elementName: entity-mappings
newValue: 3.0
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: xmlns
elementName: entity-mappings
newValue: https://jakarta.ee/xml/ns/persistence/orm
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: xsi:schemaLocation
elementName: entity-mappings
newValue: https://jakarta.ee/xml/ns/persistence/orm https://jakarta.ee/xml/ns/persistence/orm/orm_3_0.xsd
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxPersistenceXmlToJakartaPersistenceXml
displayName: Migrate xmlns entries in `persistence.xml` files
description: Java EE has been rebranded to Jakarta EE, necessitating an XML namespace relocation.
preconditions:
- org.openrewrite.FindSourceFiles:
filePattern: '**/persistence.xml'
recipeList:
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: name
elementName: //property
oldValue: javax.persistence
newValue: jakarta.persistence
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: version
elementName: persistence
newValue: 3.0
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: xmlns
elementName: persistence
oldValue: http://xmlns.jcp.org
newValue: https://jakarta.ee
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: xmlns
elementName: persistence
oldValue: http://java.sun.com/xml/ns/persistence
newValue: https://jakarta.ee/xml/ns/persistence
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: xsi:schemaLocation
elementName: persistence
newValue: https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JacksonJavaxToJakarta
displayName: Migrate Jackson from javax to jakarta namespace
description: >-
Java EE has been rebranded to Jakarta EE. This recipe replaces existing Jackson dependencies with their counterparts
that are compatible with Jakarta EE 9.
recipeList:
# JAXB annotations support
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.fasterxml.jackson.module
oldArtifactId: jackson-module-jaxb-annotations
newGroupId: com.fasterxml.jackson.module
newArtifactId: jackson-module-jakarta-xmlbind-annotations
newVersion: 2.13.x
- org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId:
oldGroupId: com.fasterxml.jackson.module
oldArtifactId: jackson-module-jaxb-annotations
newGroupId: com.fasterxml.jackson.module
newArtifactId: jackson-module-jakarta-xmlbind-annotations
newVersion: 2.13.x
# JAXRS providers
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-cbor-provider
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-cbor-provider
newVersion: 2.13.x
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-base
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-base
newVersion: 2.13.x
- org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-cbor-provider
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-cbor-provider
newVersion: 2.13.x
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-json-provider
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-json-provider
newVersion: 2.13.x
- org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-json-provider
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-json-provider
newVersion: 2.13.x
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-smile-provider
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-smile-provider
newVersion: 2.13.x
- org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-smile-provider
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-smile-provider
newVersion: 2.13.x
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-xml-provider
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-xml-provider
newVersion: 2.13.x
- org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-xml-provider
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-xml-provider
newVersion: 2.13.x
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-yaml-provider
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-yaml-provider
newVersion: 2.13.x
- org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId:
oldGroupId: com.fasterxml.jackson.jaxrs
oldArtifactId: jackson-jaxrs-yaml-provider
newGroupId: com.fasterxml.jackson.jakarta.rs
newArtifactId: jackson-jakarta-rs-yaml-provider
newVersion: 2.13.x
# JSONP datatypes
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.fasterxml.jackson.datatype
oldArtifactId: jackson-datatype-jsr353
newGroupId: com.fasterxml.jackson.datatype
newArtifactId: jackson-datatype-jakarta-jsonp
newVersion: 2.13.x
- org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId:
oldGroupId: com.fasterxml.jackson.datatype
oldArtifactId: jackson-datatype-jsr353
newGroupId: com.fasterxml.jackson.datatype
newArtifactId: jackson-datatype-jakarta-jsonp
newVersion: 2.13.x
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: org.glassfish
oldArtifactId: javax.json
newGroupId: org.glassfish
newArtifactId: jakarta.json
newVersion: 2.0.x
- org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId:
oldGroupId: org.glassfish
oldArtifactId: javax.json
newGroupId: org.glassfish
newArtifactId: jakarta.json
newVersion: 2.0.x
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: com.fasterxml.jackson.datatype.jsr353.JSR353Module
newFullyQualifiedTypeName: com.fasterxml.jackson.datatype.jsonp.JSONPModule
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.EhcacheJavaxToJakarta
displayName: Migrate Ehcache from javax to jakarta namespace
description: >-
Java EE has been rebranded to Jakarta EE. This recipe replaces existing Ehcache dependencies with their counterparts
that are compatible with Jakarta EE 9.
recipeList:
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.ehcache
artifactId: "*"
newVersion: 3.10.x
# Do not use glob express for all ehcache artifacts, only two artifacts have jakarta classifiers.
- org.openrewrite.maven.ChangeDependencyClassifier:
groupId: org.ehcache
artifactId: ehcache
newClassifier: jakarta
- org.openrewrite.maven.ChangeDependencyClassifier:
groupId: org.ehcache
artifactId: ehcache-transactions
newClassifier: jakarta
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JohnzonJavaxToJakarta
displayName: Migrate Johnzon from javax to jakarta namespace
description: >-
Java EE has been rebranded to Jakarta EE. This recipe replaces existing Johnzon dependencies with their counterparts
that are compatible with Jakarta EE 9.
recipeList:
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.apache.johnzon
artifactId: "*"
newVersion: latest.release
- org.openrewrite.java.dependencies.AddDependency:
groupId: jakarta.json
artifactId: jakarta.json-api
scope: provided
version: 2.1.X
onlyIfUsing: org.apache.johnzon..*
---
# Currently this recipe is only updating the artifacts to a version that is compatible with J2EE 9. There still may be
# breaking changes to the Rest Assured API that need to be addressed.
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.RestAssuredJavaxToJakarta
displayName: Migrate RestAssured from javax to jakarta namespace by upgrading to a version compatible with J2EE9
description: >-
Java EE has been rebranded to Jakarta EE. This recipe replaces existing RestAssured dependencies with their
counterparts that are compatible with Jakarta EE 9.
recipeList:
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: io.rest-assured
artifactId: "*"
newVersion: 5.1.x
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.UpdateApacheWSSecurityPackages
displayName: Migrate `org.apache.ws.security` and `org.apache.ws.security.components.crypto` packages to `org.apache.wss4j.common.ext` and `org.apache.wss4j.common.crypto` packages
description: >-
Java EE has been rebranded to Jakarta EE. This recipe replaces Apache security packages to migrate to Apache `wss4j`.
recipeList:
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.ws.security
newPackageName: org.apache.wss4j.common.ext
recursive: true
- org.openrewrite.java.ChangePackage:
oldPackageName: org.apache.ws.security.components.crypto
newPackageName: org.apache.wss4j.common.crypto
recursive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxEEApiToJakarta
displayName: Migrate deprecated `javaee-api` dependencies to `jakarta.platform`
description: >-
Java EE has been rebranded to Jakarta EE, necessitating a package relocation.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax
oldArtifactId: javaee-api
newGroupId: jakarta.platform