-
Notifications
You must be signed in to change notification settings - Fork 73
/
jakarta-ee-9.yml
1054 lines (1045 loc) · 43.3 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.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
---
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.AddDependency:
groupId: jakarta.activation
artifactId: jakarta.activation-api
version: latest.release
onlyIfUsing: javax.activation.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.activation
artifactId: javax.activation-api
---
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.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.Generated
newFullyQualifiedTypeName: jakarta.annotation.Generated
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.ManagedBean
newFullyQualifiedTypeName: jakarta.annotation.ManagedBean
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.Nonnull
newFullyQualifiedTypeName: jakarta.annotation.Nonnull
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.Nullable
newFullyQualifiedTypeName: jakarta.annotation.Nullable
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.PostConstruct
newFullyQualifiedTypeName: jakarta.annotation.PostConstruct
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.PreDestroy
newFullyQualifiedTypeName: jakarta.annotation.PreDestroy
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.Priority
newFullyQualifiedTypeName: jakarta.annotation.Priority
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.Resource
newFullyQualifiedTypeName: jakarta.annotation.Resource
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.Resources
newFullyQualifiedTypeName: jakarta.annotation.Resources
- org.openrewrite.java.migrate.jakarta.JavaxAnnotationSecurityPackageToJakarta
- org.openrewrite.java.migrate.jakarta.JavaxAnnotationSqlPackageToJakarta
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxAnnotationSecurityPackageToJakarta
displayName: Migrate deprecated `javax.annotation.security` packages to `jakarta.annotation.security`
description: Change type of classes in the `javax.annotation.security` package to jakarta.
tags:
- javax
- jakarta
recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.security.DeclareRoles
newFullyQualifiedTypeName: jakarta.annotation.security.DeclareRoles
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.security.DenyAll
newFullyQualifiedTypeName: jakarta.annotation.security.DenyAll
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.security.PermitAll
newFullyQualifiedTypeName: jakarta.annotation.security.PermitAll
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.security.RolesAllowed
newFullyQualifiedTypeName: jakarta.annotation.security.RolesAllowed
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.security.RunAs
newFullyQualifiedTypeName: jakarta.annotation.security.RunAs
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxAnnotationSqlPackageToJakarta
displayName: Migrate deprecated `javax.annotation.sql` packages to `jakarta.annotation.sql`
description: Change type of classes in the `javax.annotation.sql` package to jakarta.
tags:
- javax
- jakarta
recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.sql.DataSourceDefinition
newFullyQualifiedTypeName: jakarta.annotation.sql.DataSourceDefinition
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.annotation.sql.DataSourceDefinitions
newFullyQualifiedTypeName: jakarta.annotation.sql.DataSourceDefinitions
---
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.AddDependency:
groupId: jakarta.authentication
artifactId: jakarta.authentication-api
version: latest.release
onlyIfUsing: javax.security.auth.message..*
acceptTransitive: true
- org.openrewrite.java.dependencies.AddDependency:
groupId: jakarta.authentication
artifactId: jakarta.authentication-api
version: latest.release
onlyIfUsing: javax.authentication.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.security.auth.message
artifactId: javax.security.auth.message-api
---
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.AddDependency:
groupId: jakarta.authorization
artifactId: jakarta.authorization-api
version: latest.release
onlyIfUsing: javax.security.jacc..*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.security.jacc
artifactId: javax.security.jacc-api
---
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.AddDependency:
groupId: jakarta.batch
artifactId: jakarta.batch-api
version: latest.release
onlyIfUsing: javax.batch..*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.batch
artifactId: javax.batch-api
---
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.AddDependency:
groupId: jakarta.validation
artifactId: jakarta.validation-api
version: latest.release
onlyIfUsing: javax.validation..*
acceptTransitive: true
- 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.java.dependencies.RemoveDependency:
groupId: javax.validation
artifactId: validation-api
---
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.AddDependency:
groupId: jakarta.enterprise
artifactId: jakarta.enterprise.cdi-api
version: latest.release
onlyIfUsing: javax.decorator.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.enterprise
artifactId: cdi-api
---
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.AddDependency:
groupId: jakarta.ejb
artifactId: jakarta.ejb-api
version: latest.release
onlyIfUsing: javax.ejb.*
acceptTransitive: true
- org.openrewrite.java.dependencies.AddDependency:
groupId: jakarta.inject
artifactId: jakarta.ejb-api
version: latest.release
onlyIfUsing: javax.ejb.*
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.ejb
artifactId: javax.ejb-api
---
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.AddDependency:
groupId: jakarta.el
artifactId: jakarta.el-api
version: latest.release
onlyIfUsing: javax.el.*
acceptTransitive: true
- org.openrewrite.java.dependencies.AddDependency:
groupId: jakarta.inject
artifactId: jakarta.el-api
version: latest.release
onlyIfUsing: javax.el.*
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.el
artifactId: javax.el-api
---
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.AddDependency:
groupId: jakarta.enterprise
artifactId: jakarta.enterprise.cdi-api
version: 3.0.1
onlyIfUsing: javax.enterprise.*
acceptTransitive: true
- org.openrewrite.java.dependencies.AddDependency:
groupId: jakarta.inject
artifactId: jakarta.enterprise.cdi-api
version: 3.0.1
onlyIfUsing: javax.enterprise.*
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.enterprise
artifactId: cdi-api
---
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.AddDependency:
groupId: jakarta.faces
artifactId: jakarta.faces-api
version: latest.release
onlyIfUsing: javax.faces.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.faces
artifactId: javax.faces-api
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: org.glassfish
artifactId: javax.faces
---
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.AddDependency:
groupId: jakarta.inject
artifactId: jakarta.inject-api
version: latest.release
onlyIfUsing: javax.inject.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.inject
artifactId: javax.inject-api
---
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.AddDependency:
groupId: jakarta.interceptor
artifactId: jakarta.interceptor-api
version: latest.release
onlyIfUsing: javax.interceptor.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.interceptor
artifactId: javax.interceptor-api
---
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.AddDependency:
groupId: jakarta.jms
artifactId: jakarta.jms-api
version: latest.release
onlyIfUsing: javax.jms.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.jms
artifactId: javax.jms-api
---
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.AddDependency:
groupId: jakarta.json
artifactId: jakarta.json-api
version: latest.release
onlyIfUsing: javax.json.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.json
artifactId: javax.json-api
---
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.AddDependency:
groupId: jakarta.jws
artifactId: jakarta.jws-api
version: latest.release
onlyIfUsing: javax.jws.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.jws
artifactId: javax.jws-api
---
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.AddDependency:
groupId: jakarta.mail
artifactId: jakarta.mail-api
version: latest.release
onlyIfUsing: javax.mail.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.mail
artifactId: javax.mail-api
---
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.AddDependency:
groupId: jakarta.persistence
artifactId: jakarta.persistence-api
version: latest.release
onlyIfUsing: javax.persistence.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.persistence
artifactId: javax.persistence-api
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: org.eclipse.persistence
artifactId: javax.persistence
---
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.AddDependency:
groupId: jakarta.resource
artifactId: jakarta.resource-api
version: latest.release
onlyIfUsing: javax.resource.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.resource
artifactId: javax.resource-api
---
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.AddDependency:
groupId: jakarta.security.enterprise
artifactId: jakarta.security.enterprise-api
version: latest.release
onlyIfUsing: javax.security.enterprise..*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.security.enterprise
artifactId: javax.security.enterprise-api
---
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.migrate.jakarta.MaybeAddJakartaServletApi
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.servlet
artifactId: javax.servlet-api
---
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.AddDependency:
groupId: jakarta.transaction
artifactId: jakarta.transaction-api
version: latest.release
onlyIfUsing: javax.transaction.*
acceptTransitive: true
- 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: true
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.transaction
artifactId: javax.transaction-api
---
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.AddDependency:
groupId: jakarta.websocket
artifactId: jakarta.websocket-api
version: latest.release
onlyIfUsing: javax.websocket.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.websocket
artifactId: javax.websocket-api
---
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.AddDependency:
groupId: jakarta.ws.rs
artifactId: jakarta.ws.rs-api
version: latest.release
onlyIfUsing: javax.ws.rs.*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.ws.rs
artifactId: javax.ws.rs-api
---
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.AddDependency:
groupId: jakarta.xml.bind
artifactId: jakarta.xml.bind-api
version: latest.release
onlyIfUsing: javax.xml.bind..*
acceptTransitive: true
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.xml.bind
artifactId: jakarta.xml.bind-api
newVersion: latest.release
- org.openrewrite.java.dependencies.AddDependency:
groupId: org.glassfish.jaxb
artifactId: jaxb-runtime
version: latest.release
scope: runtime
onlyIfUsing: javax.xml.bind..*
acceptTransitive: true
- 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.java.dependencies.RemoveDependency:
groupId: javax.xml.bind
artifactId: jaxb-api
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: com.sun.xml.bind
artifactId: jaxb-impl
- 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.AddDependency:
groupId: jakarta.xml.soap
artifactId: jakarta.xml.soap-api
version: latest.release
onlyIfUsing: javax.xml.soap..*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.xml.soap
artifactId: javax.xml.soap-api
---
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.AddDependency:
groupId: jakarta.xml.ws
artifactId: jakarta.xml.ws-api
version: latest.release
onlyIfUsing: javax.xml.ws..*
acceptTransitive: true
- 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
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: javax.xml.ws
artifactId: jaxws-api
---
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.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.