mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2024-11-25 16:42:55 +01:00
Compare commits
770 Commits
8e162bce95
...
2e8f0da0e4
Author | SHA1 | Date | |
---|---|---|---|
2e8f0da0e4 | |||
3659aabb70 | |||
7490c270d4 | |||
e2f6f0d5bc | |||
15124fd7dd | |||
4de683db34 | |||
5a9c8345cc | |||
69229fca8c | |||
03bcceb09b | |||
|
7d4981639a | ||
|
967538767a | ||
|
4731eb9db8 | ||
|
337f5ade59 | ||
|
fe8bbcb11a | ||
|
b1b6b0bf80 | ||
|
1c28c138e0 | ||
|
cb73111779 | ||
|
6250678f61 | ||
|
1821f01ef1 | ||
|
350f084156 | ||
|
a6c2babafb | ||
|
f566aed1fe | ||
|
10fb54224c | ||
|
585b815472 | ||
|
c37e2f4176 | ||
|
626d59d3fc | ||
|
ddd058a26f | ||
|
32b8d03c5e | ||
|
71f3e1b4f1 | ||
|
aa6f53fa68 | ||
|
1335e9f7f2 | ||
|
c75599b6a0 | ||
|
2efdfbd988 | ||
|
700198d8bc | ||
|
3efab5928e | ||
|
93037b6866 | ||
|
0f19e50c69 | ||
|
66ea6ad3d4 | ||
|
b6dc1f0e61 | ||
|
0c1dc51db4 | ||
|
74a710c5e8 | ||
|
c4a773e72d | ||
|
ad43fc37ab | ||
|
8011c048a2 | ||
|
c4ee9987bf | ||
|
f70decddd1 | ||
|
79a0aea065 | ||
|
fe87e86721 | ||
|
456055bcf0 | ||
|
5ebe290424 | ||
|
4532d68743 | ||
|
1903e18397 | ||
|
a705bf7053 | ||
|
26e9bf5197 | ||
|
64007b3634 | ||
|
80f099220c | ||
|
08615f2295 | ||
|
5c02bb4f91 | ||
|
ad6aee55f9 | ||
|
aac4fd8e5e | ||
|
c013ae7dab | ||
|
57ab4b0849 | ||
|
24a762504f | ||
|
838bcc07a4 | ||
|
0f0c996b54 | ||
|
b1ad67a354 | ||
|
c7a64c0c7c | ||
|
5da87dbe0a | ||
|
38e1a62f19 | ||
|
5174a26719 | ||
|
98886cb269 | ||
|
e7a8b45c10 | ||
|
2e0ec73d77 | ||
|
b8b324cdf3 | ||
|
12600d8404 | ||
|
d9dfdb7e68 | ||
|
07f8b2c47b | ||
|
b9c4ae2fbb | ||
|
2b2d78edc0 | ||
|
2ad78c722a | ||
|
99771babba | ||
|
1b0ba48b9d | ||
|
95cf32c70a | ||
|
14469d1a2e | ||
|
336f1c3b80 | ||
|
055fd4379a | ||
|
f6b5cfe1d4 | ||
|
df744fe48b | ||
|
9f10a4a0b7 | ||
|
22ca74a1a3 | ||
|
3093c9212c | ||
|
6b8a4e6e63 | ||
|
d256870953 | ||
|
8fd8cceadb | ||
|
402b532311 | ||
|
8e85d35d8f | ||
|
6b6794a367 | ||
|
14a726b5af | ||
|
3e937d234b | ||
|
bf6a8a713b | ||
|
b8c5e7aaba | ||
|
068d610e3a | ||
|
41177b91be | ||
|
c2ebacdfb3 | ||
|
5d4996c085 | ||
|
dbafbbf66d | ||
|
a46200ca17 | ||
|
1fe64e69ca | ||
|
a017ec9bfd | ||
|
cb8385a092 | ||
|
d4aa1f87e0 | ||
|
41df06a48b | ||
|
4188e636f3 | ||
|
e2c0d59e3a | ||
|
6a8c210a23 | ||
|
a62cc3618c | ||
|
a703afbef9 | ||
|
5ce8445d5c | ||
|
d112030a8e | ||
|
98ca4080dd | ||
|
3b9c63e781 | ||
|
dd24ebf184 | ||
|
7ef2be625f | ||
|
e3957d2207 | ||
|
8ce1307d51 | ||
|
e1141dcd1c | ||
|
4e33b5f351 | ||
|
54dc184dd0 | ||
|
1977ce3ea5 | ||
|
c8c9d1729e | ||
|
e6e4b81f3b | ||
|
1c465f028e | ||
|
12824c22c4 | ||
|
64c5ad72a3 | ||
|
080c2059ee | ||
|
a288850010 | ||
|
16811602d2 | ||
|
6d94d719e3 | ||
|
749d111e89 | ||
|
365d8d34ce | ||
|
ced25bbf28 | ||
|
7e1ce5a203 | ||
|
aeec754f7e | ||
|
9a3fcb56a1 | ||
|
aff956f4c8 | ||
|
0f49fd6406 | ||
|
1111770033 | ||
|
6d313fc456 | ||
|
0201acb5f7 | ||
|
dfbefe96da | ||
|
a71b35097f | ||
|
acd0cf5245 | ||
|
393b9b2f3d | ||
|
f66bad1810 | ||
|
386a81454b | ||
|
deb2b7a36f | ||
|
a3901c7b1c | ||
|
631ee109f5 | ||
|
25570e2135 | ||
|
6d70044b15 | ||
|
b064f94172 | ||
|
721124e8c5 | ||
|
85333e03a4 | ||
|
bef928a20c | ||
|
6967416207 | ||
|
e968b3f26b | ||
|
be6d8e23c8 | ||
|
397effacd4 | ||
|
a35738d99b | ||
|
03aafdeae2 | ||
|
f5529b6cce | ||
|
0bd39c2826 | ||
|
d335745010 | ||
|
0d59843f40 | ||
|
011d0a15a9 | ||
|
c72b968f9b | ||
|
4e7cef9402 | ||
|
1868d5a202 | ||
|
423fcfbda3 | ||
|
be5d17457f | ||
|
5033b0332e | ||
|
a1cf4cc46d | ||
|
838f494a85 | ||
|
d55f5b1e39 | ||
|
c98768dd52 | ||
|
0058f81e76 | ||
|
b79c384c3f | ||
|
a11dae821e | ||
|
b08deb518c | ||
|
7ad0a8c400 | ||
|
4bb33ec101 | ||
|
856baec94d | ||
|
09600db5f2 | ||
|
810a1e252d | ||
|
10b3fcdfcc | ||
|
652e6eb9e8 | ||
|
eea2b5f6fb | ||
|
b4eb0df689 | ||
|
2b26c6a5b6 | ||
|
79e2134ca8 | ||
|
6efa30152f | ||
|
781fb476e7 | ||
|
f2ed4eba3b | ||
|
d2b1cd511d | ||
|
1c9df39afe | ||
|
f124f45604 | ||
|
d3660892ae | ||
|
78ea4e4e30 | ||
|
5ab985a7cc | ||
|
6bd1782c4b | ||
|
2f5d402c61 | ||
|
8fb2ea5845 | ||
|
a78e21a167 | ||
|
2e9b626523 | ||
|
4487b8904c | ||
|
1f01f915dc | ||
|
4222c71a69 | ||
|
1d463cde90 | ||
|
834d1476ce | ||
|
a769a8d1a4 | ||
|
ece8c3821d | ||
|
2bc0c4c41b | ||
|
9e203898b6 | ||
|
58ad8417e5 | ||
|
9c00927089 | ||
|
7c6964c6ef | ||
|
31a5104205 | ||
|
7bcf3858e8 | ||
|
fb3eb0da8a | ||
|
0e6d92dea7 | ||
|
c00ffe7fc3 | ||
|
02b3f8bf02 | ||
|
fe7afb0141 | ||
|
1ec810b981 | ||
|
3a2187ebad | ||
|
fef6a1b090 | ||
|
2f5b39af54 | ||
|
d3f942aebc | ||
|
5df0db8845 | ||
|
28887c1da2 | ||
|
7053a225b8 | ||
|
54422801c3 | ||
|
56c464ba79 | ||
|
2582f1e907 | ||
|
13139966ea | ||
|
011bb78f69 | ||
|
2446ed20a6 | ||
|
c376feb4d8 | ||
|
fa0bcfa37a | ||
|
6b70b11ffc | ||
|
e474075778 | ||
|
1205bb67f2 | ||
|
10bcd20cd8 | ||
|
3a2e6e018d | ||
|
1b1680f7b0 | ||
|
6cc52570ac | ||
|
6425791ed9 | ||
|
4c7a720447 | ||
|
23ac9f3faf | ||
|
0192009482 | ||
|
2468c359a4 | ||
|
ae1ad9fd2e | ||
|
3596748059 | ||
|
407806e84c | ||
|
b83909da9c | ||
|
dd490967d3 | ||
|
391202877a | ||
|
c48acd8fb7 | ||
|
c8428258fe | ||
|
fc4feaa78c | ||
|
1855f3b43f | ||
|
50b848027c | ||
|
7b71af9e1d | ||
|
4814f0c895 | ||
|
192307ad52 | ||
|
e28c57432d | ||
|
911915266a | ||
|
51c464f8d2 | ||
|
30069564a7 | ||
|
460553d8ae | ||
|
cc2de42415 | ||
|
b31aa57d81 | ||
|
c9b9bb6cf8 | ||
|
89e74b2011 | ||
|
434d882314 | ||
|
617d9d90ed | ||
|
f456e0a8dd | ||
|
2716255e22 | ||
|
4d907213c3 | ||
|
ee704f53c7 | ||
|
74237365f1 | ||
|
8aeab29303 | ||
|
ff945e7b8a | ||
|
9707704f57 | ||
|
7491d19309 | ||
|
fb74e5e731 | ||
|
627c8a6eca | ||
|
8094758a82 | ||
|
f143b6ee9f | ||
|
77cef909fb | ||
|
063d3949cf | ||
|
c1b87eba03 | ||
|
bae52964cd | ||
|
06021c1b79 | ||
|
437932cd57 | ||
|
6cc16aa72b | ||
|
b48950ff3a | ||
|
c397c77809 | ||
|
e8f31bc2bd | ||
|
4e7149c945 | ||
|
064379b9e0 | ||
|
48b18da953 | ||
|
904ca5d529 | ||
|
05986d017d | ||
|
aabe56e8b3 | ||
|
fc07ec3db3 | ||
|
2e8454907d | ||
|
72ed659833 | ||
|
94ef9692f2 | ||
|
798750bf95 | ||
|
e8d9bd551f | ||
|
d08ea2ee9b | ||
|
52dcb2d290 | ||
|
4cc883f174 | ||
|
5a3c5bd761 | ||
|
66830b7cb3 | ||
|
b742865e8a | ||
|
fd314a3288 | ||
|
87a52d9592 | ||
|
527b321ee0 | ||
|
5122a33f30 | ||
|
d89fbeea62 | ||
|
e4f7700044 | ||
|
a1d0c3ebf4 | ||
|
2088c1ce00 | ||
|
ec164daf0e | ||
|
94c38cefac | ||
|
2a5d218a94 | ||
|
bcf10a0b8e | ||
|
546137c0f5 | ||
|
92bc691e1f | ||
|
d834d0fdd9 | ||
|
74b88d07a0 | ||
|
57f5d3310a | ||
|
a5495b1d92 | ||
|
fb623be741 | ||
|
30e69e13fd | ||
|
17346c255e | ||
|
6fc83b8245 | ||
|
b9fb6cacbe | ||
|
29bd7cbe6e | ||
|
a51fc9c612 | ||
|
77ad9deeba | ||
|
ffa6c45b62 | ||
|
957874ce2b | ||
|
330d92116c | ||
|
899adfc1b0 | ||
|
23535a6ad5 | ||
|
e8b7f00370 | ||
|
3f2c5070ee | ||
|
a2352525c5 | ||
|
50384a526b | ||
|
9ade3365ff | ||
|
a6932cd5be | ||
|
81d5c06ca3 | ||
|
95d2adb8b8 | ||
|
c91355a1e4 | ||
|
a9b16ca2c0 | ||
|
0fc04c3ff6 | ||
|
6473ad02a0 | ||
|
8107f669cd | ||
|
2f55d92d83 | ||
|
722ec7f8fb | ||
|
63442a93e7 | ||
|
1ce594fa64 | ||
|
197b8d7850 | ||
|
d51aec080b | ||
|
0239f78889 | ||
|
651cefca30 | ||
|
f4be162aea | ||
|
85636d91dc | ||
|
7b643430d1 | ||
|
499033947c | ||
|
7489abc56d | ||
|
c64810509f | ||
|
32ccaabaa7 | ||
|
a8f0145333 | ||
|
6e6fc8d998 | ||
|
646e34a5c7 | ||
|
8d43329b6e | ||
|
38aca96472 | ||
|
4cd06076c7 | ||
|
b485a1406e | ||
|
cc0aa08d91 | ||
|
4dd958a538 | ||
|
83d2d1da4f | ||
|
24e69bec2b | ||
|
ca337dcca2 | ||
|
2944c48744 | ||
|
278e7d1a4d | ||
|
22e090a0f4 | ||
|
ac918eff16 | ||
|
e8aaeac7dc | ||
|
1769c1006c | ||
|
920a6fe74c | ||
|
bc41ce46a7 | ||
|
8c2b5671f1 | ||
|
d0d53d7d20 | ||
|
902272f08c | ||
|
a8b8b56a7e | ||
|
d628db1dcc | ||
|
26ed6670d5 | ||
|
0aa4ea7bc8 | ||
|
34fdd71f37 | ||
|
4a134783b4 | ||
|
bf5ce1f6a5 | ||
|
00193891fa | ||
|
4640c347c7 | ||
|
260bb47434 | ||
|
9d7872e64e | ||
|
31bdc23b3c | ||
|
f803c0aa72 | ||
|
531b0e3537 | ||
|
cbf6c30be6 | ||
|
a6f62dd837 | ||
|
18d52c2459 | ||
|
ee55cfd2dd | ||
|
3ab5fc1120 | ||
|
f7f60f5079 | ||
|
b7dcff79ae | ||
|
c857b9d6dd | ||
|
8f8c05e451 | ||
|
af3ebe60f4 | ||
|
be64d24c00 | ||
|
8f04575efd | ||
|
4e1b8f3ec4 | ||
|
c8ca6671ab | ||
|
88f0d2e532 | ||
|
76a4499c9f | ||
|
e1bd790294 | ||
|
6d193ca1f8 | ||
|
d932172e70 | ||
|
9bbf5824fe | ||
|
d042ee3058 | ||
|
fe598b14a1 | ||
|
24df3be8f1 | ||
|
2cce67bc27 | ||
|
ae6003d000 | ||
|
fe8b03dc1c | ||
|
977b27de90 | ||
|
570cf14fe8 | ||
|
7c369900ce | ||
|
8464711b89 | ||
|
0f07e4bdc3 | ||
|
de7736ec76 | ||
|
4568db387a | ||
|
3661cfd4c9 | ||
|
f9ac515d3d | ||
|
b7f1394357 | ||
|
25872ccf84 | ||
|
0efd81142d | ||
|
1699e8521d | ||
|
f4068301ff | ||
|
2a6b6f89f4 | ||
|
ca459bef0d | ||
|
9980ef7db9 | ||
|
d6b2cdb66a | ||
|
832c1c0be3 | ||
|
bf0fba9c58 | ||
|
ae5678128b | ||
|
6395a4cefc | ||
|
1a3491a50f | ||
|
0f8b67e6ce | ||
|
1e17db6d21 | ||
|
03bd4bbeed | ||
|
ff907893d0 | ||
|
d104eef064 | ||
|
f0505b8919 | ||
|
db12fbe725 | ||
|
f88580eb88 | ||
|
dbfce696b9 | ||
|
bca5af9c23 | ||
|
381abf7c40 | ||
|
1a2112daf9 | ||
|
e30e194b91 | ||
|
edf9962abf | ||
|
fd896c4af6 | ||
|
0ae57af270 | ||
|
123c8ded11 | ||
|
0510fe8530 | ||
|
3ebaf38486 | ||
|
84fc962bb0 | ||
|
814bc20cf7 | ||
|
6b76270d51 | ||
|
35142e5204 | ||
|
d313845c84 | ||
|
21162ba34e | ||
|
e162dc44d1 | ||
|
153a36d4e9 | ||
|
9271ca082c | ||
|
0389ea803d | ||
|
0fea44f735 | ||
|
c01cad1c9d | ||
|
b383706bfb | ||
|
a78f66fd36 | ||
|
bef57f75c0 | ||
|
48ec19d9bf | ||
|
f4198a0409 | ||
|
9454ebcb35 | ||
|
441721b63f | ||
|
0eda85c95e | ||
|
01e4c80adb | ||
|
0e8ec4d445 | ||
|
ae18ccb8cd | ||
|
ad63afc242 | ||
|
f48f8a9643 | ||
|
eae65b6512 | ||
|
02ff5cb24b | ||
|
8210b122bc | ||
|
a0d3cf561b | ||
|
d7c1c77861 | ||
|
f385c3fa21 | ||
|
e07a077da9 | ||
|
7768c9147d | ||
|
c5c9877b40 | ||
|
3ddd4a1a58 | ||
|
3c85215011 | ||
|
2369814092 | ||
|
6970a764c4 | ||
|
4c7c3dba00 | ||
|
aebad12bbe | ||
|
8593e7a6ac | ||
|
119975c313 | ||
|
27c3a95ec6 | ||
|
d5eaf85473 | ||
|
7f4c967a20 | ||
|
8066ac2819 | ||
|
66172c843d | ||
|
88b3373e5c | ||
|
320d91d639 | ||
|
24d118e225 | ||
|
c192f319d1 | ||
|
097dfa06a6 | ||
|
90ca544d0a | ||
|
2bc9640b88 | ||
|
40ffddf5ef | ||
|
bd28c9da23 | ||
|
11ef024779 | ||
|
40d9a201ea | ||
|
6e2ac21fab | ||
|
7858cf57c6 | ||
|
91c8e7ebda | ||
|
6332ee6955 | ||
|
3c3014fdc6 | ||
|
d97e4c44ee | ||
|
1b88c514da | ||
|
96c1094a61 | ||
|
b3551b4ee5 | ||
|
4232d3d8a2 | ||
|
73b64c19ff | ||
|
15ccdb2055 | ||
|
418067b077 | ||
|
88b29d1a14 | ||
|
b831aa8eca | ||
|
4540d216cb | ||
|
b345ebb366 | ||
|
7a8ed2db32 | ||
|
9f5ed99b79 | ||
|
1bd6defc84 | ||
|
181d76ae7b | ||
|
31d37c218a | ||
|
72be9845fa | ||
|
a6a4e50479 | ||
|
1f88ead837 | ||
|
8303cafbc9 | ||
|
00901f60dc | ||
|
21aaf06a63 | ||
|
d81774c9a7 | ||
|
2cb6fb041e | ||
|
b7d5ee9a75 | ||
|
24dd84b31c | ||
|
0e96819e86 | ||
|
897d393342 | ||
|
fc7efd5484 | ||
|
834695420d | ||
|
c4025c0cc1 | ||
|
c80ef82f2a | ||
|
b94b4eea04 | ||
|
116c813988 | ||
|
2c9aa8e30e | ||
|
376c84c46e | ||
|
a3039e05d4 | ||
|
bed078213b | ||
|
b413c8e715 | ||
|
299890c737 | ||
|
e977bee8cc | ||
|
5b636b2b5e | ||
|
6db4874acd | ||
|
e788ea6d7f | ||
|
c5f8eaf1cf | ||
|
c9568b4301 | ||
|
e1c712abb7 | ||
|
81e8a28cc3 | ||
|
e45a2b4517 | ||
|
dd69d0fad2 | ||
|
4f680c881c | ||
|
1932d7102b | ||
|
58ba9ed4be | ||
|
8fe6c8bde7 | ||
|
ec4684c336 | ||
|
ec05ca11ba | ||
|
164e3cedd6 | ||
|
0d4d610b3a | ||
|
7ebd604390 | ||
|
7bc50df300 | ||
|
3f3eb0f878 | ||
|
6e854eb889 | ||
|
d009ece391 | ||
|
ffa7909f9f | ||
|
266d164a34 | ||
|
aaf957a3c2 | ||
|
dd35c4907e | ||
|
993986c1cf | ||
|
8d47d9c015 | ||
|
b4764a230a | ||
|
2c703a7468 | ||
|
87083e03a8 | ||
|
1d22fbfae0 | ||
|
cfee63d716 | ||
|
d49052660f | ||
|
f5299d4b75 | ||
|
35b366640f | ||
|
1dc3809a34 | ||
|
82c883acdb | ||
|
8333751482 | ||
|
933070fc32 | ||
|
ec80a20146 | ||
|
cd46497829 | ||
|
cb51a78509 | ||
|
6a52d0c83a | ||
|
138dc7082e | ||
|
944c66c366 | ||
|
0accfbd65f | ||
|
86498ba317 | ||
|
6016aac675 | ||
|
80f8c88532 | ||
|
e112d87e28 | ||
|
718d73f7cc | ||
|
d01e804b24 | ||
|
72ca9a2297 | ||
|
007a1694d7 | ||
|
74dd307318 | ||
|
4bf5f6dcc1 | ||
|
cbf450425e | ||
|
9b56fbc3ed | ||
|
bdcdfda8c4 | ||
|
53b2108252 | ||
|
ab87a86e9d | ||
|
17c248eda0 | ||
|
bee82a1941 | ||
|
772c574149 | ||
|
d577411e72 | ||
|
f901d9d3b0 | ||
|
da75da6791 | ||
|
052fe75183 | ||
|
d50daad918 | ||
|
2834e25945 | ||
|
5c7190710b | ||
|
dd76de2066 | ||
|
1a7e3ed658 | ||
|
956339115c | ||
|
484a1f264b | ||
|
0f739ffb50 | ||
|
e79821385d | ||
|
e742d089d6 | ||
|
44336460c5 | ||
|
46f0309171 | ||
|
1ed38ec92b | ||
|
04dca831e3 | ||
|
308e8bfbc3 | ||
|
62ecddb719 | ||
|
a852b0efbc | ||
|
3dd6a55727 | ||
|
3993e3b9c0 | ||
|
42b8b5814f | ||
|
60de6f57fd | ||
|
11fcb17c29 | ||
|
98246e23dd | ||
|
61e2e81719 | ||
|
62e600443e | ||
|
5bde4d75ce | ||
|
9c54fbe733 | ||
|
9cc206d548 | ||
|
a97cf8a3ec | ||
|
f0ea5f3968 | ||
|
8d44afc8e6 | ||
|
62ed3bd7f2 | ||
|
89889924fc | ||
|
dda592cb39 | ||
|
bb44044956 | ||
|
d95810f6e5 | ||
|
26c275b0f5 | ||
|
341dc6c58b | ||
|
a2364b7512 | ||
|
350e1c08d0 | ||
|
724dc42a59 | ||
|
79a62e9d37 | ||
|
f73ba63133 | ||
|
d2c849fceb | ||
|
c4e9d5d14f | ||
|
76a7d1ee69 | ||
|
a8d225f812 | ||
|
bdfb8c7ee4 | ||
|
9ab9d88eb5 | ||
|
75ff5feccd | ||
|
a4c7b38b7a | ||
|
ec86608aff | ||
|
4010854075 | ||
|
fe1ae29fa3 | ||
|
8c7d0b06d1 | ||
|
af497e6906 | ||
|
badb61aaea | ||
|
5884919350 | ||
|
ce77148a38 | ||
|
0ee6ce0a55 | ||
|
39f0e14fee | ||
|
dc09907f93 | ||
|
dcec97b9b4 | ||
|
0eb8615db4 | ||
|
e674d8ac3a | ||
|
141af4f097 | ||
|
35ef9c7e68 | ||
|
67e8b3e988 | ||
|
896508d1fd | ||
|
908c978242 | ||
|
6419279514 | ||
|
0ecfdc5cf3 | ||
|
a357f989ad | ||
|
831e335b5d | ||
|
5e4afd4a7b | ||
|
337c526e23 | ||
|
5f25db231f | ||
|
fb46993a05 | ||
|
ef2738838f | ||
|
b9669e452c | ||
|
6196417436 | ||
|
5d797f397d | ||
|
3be6acf5b5 | ||
|
b5619adf45 | ||
|
62540fe1b2 | ||
|
fd85fdf0ac | ||
|
e09208c757 | ||
|
753f2110c6 | ||
|
7917e8417b | ||
|
a0447b4840 | ||
|
2e561a2af4 | ||
|
a330a3e472 | ||
|
229d64fcf8 | ||
|
6df695f650 | ||
|
d77edaa056 | ||
|
4f78246c7f | ||
|
8d3ccdaf9c | ||
|
17e1061866 | ||
|
30d4b06393 | ||
|
893bf452fb | ||
|
bb67584cba | ||
|
e28ec93c80 | ||
|
ca37019427 | ||
|
3d452015ee | ||
|
57a3d82649 |
@ -7,3 +7,4 @@ indent_style = space
|
|||||||
[*.kt]
|
[*.kt]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
ktlint_standard_no-wildcard-imports = disabled
|
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
* text=auto eol=lf
|
23
.github/workflows/closeYoutrackOnCommit.yml
vendored
23
.github/workflows/closeYoutrackOnCommit.yml
vendored
@ -14,9 +14,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 300
|
fetch-depth: 300
|
||||||
|
- name: Get tags
|
||||||
|
run: git fetch --tags origin
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
@ -25,15 +27,20 @@ jobs:
|
|||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
- uses: nrwl/last-successful-commit-action@v1
|
# The last successful job was marked with a tag
|
||||||
id: last_successful_commit
|
- name: Get commit with last workflow
|
||||||
with:
|
run: |
|
||||||
branch: 'master'
|
echo "LAST_COMMIT=$(git rev-list -n 1 tags/workflow-close-youtrack)" >> $GITHUB_ENV
|
||||||
workflow_id: 'closeYoutrackOnCommit.yml'
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Update YouTrack
|
- name: Update YouTrack
|
||||||
run: ./gradlew updateYoutrackOnCommit
|
run: ./gradlew updateYoutrackOnCommit
|
||||||
env:
|
env:
|
||||||
SUCCESS_COMMIT: ${{ steps.last_successful_commit.outputs.commit_hash }}
|
SUCCESS_COMMIT: ${{ env.LAST_COMMIT }}
|
||||||
YOUTRACK_TOKEN: ${{ secrets.YOUTRACK_TOKEN }}
|
YOUTRACK_TOKEN: ${{ secrets.YOUTRACK_TOKEN }}
|
||||||
|
|
||||||
|
- name: Update tags
|
||||||
|
run: |
|
||||||
|
git tag --delete workflow-close-youtrack || true
|
||||||
|
git push origin :refs/tags/workflow-close-youtrack || true
|
||||||
|
git tag workflow-close-youtrack
|
||||||
|
git push origin workflow-close-youtrack
|
||||||
|
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
|||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v2
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
@ -50,7 +50,7 @@ jobs:
|
|||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
# If this step fails, then you should remove it and run the build manually (see below)
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v1
|
uses: github/codeql-action/autobuild@v2
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 📚 https://git.io/JvXDl
|
||||||
@ -64,4 +64,4 @@ jobs:
|
|||||||
# make release
|
# make release
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v2
|
||||||
|
2
.github/workflows/integrationsTest.yml
vendored
2
.github/workflows/integrationsTest.yml
vendored
@ -29,4 +29,4 @@ jobs:
|
|||||||
run: ./gradlew integrationsTest
|
run: ./gradlew integrationsTest
|
||||||
env:
|
env:
|
||||||
YOUTRACK_TOKEN: ${{ secrets.YOUTRACK_TOKEN }}
|
YOUTRACK_TOKEN: ${{ secrets.YOUTRACK_TOKEN }}
|
||||||
GITHUB_OAUTH: ${{ secrets.MERGE_PR }}
|
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
17
.github/workflows/mergeDependabotPR.yml
vendored
Normal file
17
.github/workflows/mergeDependabotPR.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: Dependabot auto-merge
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dependabot:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
||||||
|
steps:
|
||||||
|
- name: Auto-merge Dependabot PR
|
||||||
|
run: gh pr merge --auto --rebase "$PR_URL"
|
||||||
|
env:
|
||||||
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
21
.github/workflows/mergePr.yml
vendored
21
.github/workflows/mergePr.yml
vendored
@ -18,6 +18,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 50
|
fetch-depth: 50
|
||||||
|
# See end of file updateChangeslog.yml for explanation of this secret
|
||||||
|
ssh-key: ${{ secrets.PUSH_TO_PROTECTED_BRANCH_SECRET }}
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
@ -32,25 +34,12 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# Reuse from update changelog
|
|
||||||
- uses: nrwl/last-successful-commit-action@v1
|
|
||||||
id: last_successful_commit
|
|
||||||
with:
|
|
||||||
branch: 'master'
|
|
||||||
workflow_id: 'updateChangelog.yml'
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Update changelog
|
|
||||||
run: ./gradlew updateChangelog
|
|
||||||
env:
|
|
||||||
SUCCESS_COMMIT: ${{ steps.last_successful_commit.outputs.commit_hash }}
|
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
branch: master
|
branch: master
|
||||||
commit_message: Update changelog after merging PR
|
commit_message: Update changelog after merging PR
|
||||||
commit_user_name: Alex Plate
|
commit_user_name: IdeaVim Bot
|
||||||
commit_user_email: aleksei.plate@jetbrains.com
|
commit_user_email: maintainers@ideavim.dev
|
||||||
commit_author: Alex Plate <aleksei.plate@jetbrains.com>
|
commit_author: IdeaVim Bot <maintainers@ideavim.dev>
|
||||||
file_pattern: CHANGES.md
|
file_pattern: CHANGES.md
|
||||||
|
8
.github/workflows/syncDoc.yml
vendored
8
.github/workflows/syncDoc.yml
vendored
@ -20,6 +20,8 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: origin
|
path: origin
|
||||||
|
# See end of file updateChangeslog.yml for explanation of this secret
|
||||||
|
ssh-key: ${{ secrets.PUSH_TO_PROTECTED_BRANCH_SECRET }}
|
||||||
|
|
||||||
- name: Fetch docs repo
|
- name: Fetch docs repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -37,6 +39,6 @@ jobs:
|
|||||||
branch: master
|
branch: master
|
||||||
repository: docs
|
repository: docs
|
||||||
commit_message: Update docs
|
commit_message: Update docs
|
||||||
commit_user_name: Alex Plate
|
commit_user_name: IdeaVim Bot
|
||||||
commit_user_email: aleksei.plate@jetbrains.com
|
commit_user_email: maintainers@ideavim.dev
|
||||||
commit_author: Alex Plate <aleksei.plate@jetbrains.com>
|
commit_author: IdeaVim Bot <maintainers@ideavim.dev>
|
||||||
|
33
.github/workflows/updateAffectedRate.yml
vendored
Normal file
33
.github/workflows/updateAffectedRate.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
|
||||||
|
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
|
||||||
|
|
||||||
|
# This workflow syncs changes from the docs folder of IdeaVim to the IdeaVim.wiki repository
|
||||||
|
|
||||||
|
name: Update Affected Rate field on YouTrack
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 8 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Fetch origin repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
java-version: '17'
|
||||||
|
distribution: 'adopt'
|
||||||
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
|
- name: Update YouTrack
|
||||||
|
run: ./gradlew scripts:updateAffectedRates
|
||||||
|
env:
|
||||||
|
YOUTRACK_TOKEN: ${{ secrets.YOUTRACK_TOKEN }}
|
38
.github/workflows/updateAuthors.yml
vendored
38
.github/workflows/updateAuthors.yml
vendored
@ -5,8 +5,11 @@ name: Update Authors
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
schedule:
|
||||||
branches: [ master ]
|
- cron: '0 9 * * *'
|
||||||
|
# Workflow run on push is disabled to avoid conflicts when merging PR
|
||||||
|
# push:
|
||||||
|
# branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -14,9 +17,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 300
|
fetch-depth: 300
|
||||||
|
# See end of file updateChangeslog.yml for explanation of this secret
|
||||||
|
ssh-key: ${{ secrets.PUSH_TO_PROTECTED_BRANCH_SECRET }}
|
||||||
|
- name: Get tags
|
||||||
|
run: git fetch --tags origin
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
@ -25,25 +32,30 @@ jobs:
|
|||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
- uses: nrwl/last-successful-commit-action@v1
|
# The last successful job was marked with a tag
|
||||||
id: last_successful_commit
|
- name: Get commit with last workflow
|
||||||
with:
|
run: |
|
||||||
branch: 'master'
|
echo "LAST_COMMIT=$(git rev-list -n 1 tags/workflow-authors)" >> $GITHUB_ENV
|
||||||
workflow_id: 'updateAuthors.yml'
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Update authors
|
- name: Update authors
|
||||||
id: update_authors
|
id: update_authors
|
||||||
run: ./gradlew updateAuthors --stacktrace
|
run: ./gradlew updateAuthors --stacktrace
|
||||||
env:
|
env:
|
||||||
SUCCESS_COMMIT: ${{ steps.last_successful_commit.outputs.commit_hash }}
|
SUCCESS_COMMIT: ${{ env.LAST_COMMIT }}
|
||||||
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
commit_message: Add ${{ steps.update_authors.outputs.authors }} to contributors list
|
commit_message: Add ${{ steps.update_authors.outputs.authors }} to contributors list
|
||||||
commit_user_name: Alex Plate
|
commit_user_name: IdeaVim Bot
|
||||||
commit_user_email: aleksei.plate@jetbrains.com
|
commit_user_email: maintainers@ideavim.dev
|
||||||
commit_author: Alex Plate <aleksei.plate@jetbrains.com>
|
commit_author: IdeaVim Bot <maintainers@ideavim.dev>
|
||||||
file_pattern: AUTHORS.md
|
file_pattern: AUTHORS.md
|
||||||
|
|
||||||
|
- name: Update tags
|
||||||
|
run: |
|
||||||
|
git tag --delete workflow-authors || true
|
||||||
|
git push origin :refs/tags/workflow-authors || true
|
||||||
|
git tag workflow-authors
|
||||||
|
git push origin workflow-authors
|
||||||
|
48
.github/workflows/updateChangelog.yml
vendored
48
.github/workflows/updateChangelog.yml
vendored
@ -5,19 +5,25 @@ name: Update Changelog
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
schedule:
|
||||||
branches: [ master ]
|
- cron: '0 10 * * *'
|
||||||
|
# Workflow run on push is disabled to avoid conflicts when merging PR
|
||||||
|
# push:
|
||||||
|
# branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
if: github.event.pull_request.merged != true
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 300
|
fetch-depth: 300
|
||||||
|
# See end of file updateChangeslog.yml for explanation of this secret
|
||||||
|
ssh-key: ${{ secrets.PUSH_TO_PROTECTED_BRANCH_SECRET }}
|
||||||
|
- name: Get tags
|
||||||
|
run: git fetch --tags origin
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
@ -26,24 +32,34 @@ jobs:
|
|||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
- uses: nrwl/last-successful-commit-action@v1
|
# The last successful job was marked with a tag
|
||||||
id: last_successful_commit
|
- name: Get commit with last workflow
|
||||||
with:
|
run: |
|
||||||
branch: 'master'
|
echo "LAST_COMMIT=$(git rev-list -n 1 tags/workflow-changelog)" >> $GITHUB_ENV
|
||||||
workflow_id: 'updateChangelog.yml'
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Update changelog
|
- name: Update changelog
|
||||||
run: ./gradlew updateChangelog
|
run: ./gradlew updateChangelog
|
||||||
env:
|
env:
|
||||||
SUCCESS_COMMIT: ${{ steps.last_successful_commit.outputs.commit_hash }}
|
SUCCESS_COMMIT: ${{ env.LAST_COMMIT }}
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
commit_message: Update changelog
|
commit_message: Update changelog. Action id - ${{ github.run_id }}
|
||||||
commit_user_name: Alex Plate
|
commit_user_name: IdeaVim Bot
|
||||||
commit_user_email: aleksei.plate@jetbrains.com
|
commit_user_email: maintainers@ideavim.dev
|
||||||
commit_author: Alex Plate <aleksei.plate@jetbrains.com>
|
commit_author: IdeaVim Bot <maintainers@ideavim.dev>
|
||||||
file_pattern: CHANGES.md
|
file_pattern: CHANGES.md
|
||||||
skip_fetch: false
|
|
||||||
|
- name: Update tags
|
||||||
|
run: |
|
||||||
|
git tag --delete workflow-changelog || true
|
||||||
|
git push origin :refs/tags/workflow-changelog || true
|
||||||
|
git tag workflow-changelog
|
||||||
|
git push origin workflow-changelog
|
||||||
|
|
||||||
|
# Regarding secrets.PUSH_TO_PROTECTED_BRANCH_SECRET - we use branch protection rules to automate merges of the
|
||||||
|
# dependabot updates. See mergeDependatobPR.yml file.
|
||||||
|
# However, it turned out that GitHub accepts pushes from the actions as a PR and requires checks, that are always
|
||||||
|
# false for pushing from actions.
|
||||||
|
# This secret is created to implement the workaround described in https://stackoverflow.com/a/76135647/3124227
|
14
.github/workflows/updateFormatting.yml
vendored
14
.github/workflows/updateFormatting.yml
vendored
@ -17,6 +17,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 50
|
fetch-depth: 50
|
||||||
|
# See end of file updateChangeslog.yml for explanation of this secret
|
||||||
|
ssh-key: ${{ secrets.PUSH_TO_PROTECTED_BRANCH_SECRET }}
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
@ -25,13 +27,15 @@ jobs:
|
|||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
- name: Format files
|
- uses: findologic/intellij-format-action@1.0.1
|
||||||
run: ./gradlew ktlintFormat
|
with:
|
||||||
|
include-glob: '*.kt,*.java'
|
||||||
|
path: .
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
commit_message: Update formatting
|
commit_message: Update formatting
|
||||||
commit_user_name: Alex Plate
|
commit_user_name: IdeaVim Bot
|
||||||
commit_user_email: aleksei.plate@jetbrains.com
|
commit_user_email: maintainers@ideavim.dev
|
||||||
commit_author: Alex Plate <aleksei.plate@jetbrains.com>
|
commit_author: IdeaVim Bot <maintainers@ideavim.dev>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
|
<option name="LINE_SEPARATOR" value=" " />
|
||||||
<JavaCodeStyleSettings>
|
<JavaCodeStyleSettings>
|
||||||
<option name="FIELD_NAME_PREFIX" value="my" />
|
<option name="FIELD_NAME_PREFIX" value="my" />
|
||||||
<option name="STATIC_FIELD_NAME_PREFIX" value="our" />
|
<option name="STATIC_FIELD_NAME_PREFIX" value="our" />
|
||||||
@ -191,6 +192,10 @@
|
|||||||
</codeStyleSettings>
|
</codeStyleSettings>
|
||||||
<codeStyleSettings language="kotlin">
|
<codeStyleSettings language="kotlin">
|
||||||
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
|
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
|
||||||
|
<indentOptions>
|
||||||
|
<option name="INDENT_SIZE" value="2" />
|
||||||
|
<option name="TAB_SIZE" value="2" />
|
||||||
|
</indentOptions>
|
||||||
</codeStyleSettings>
|
</codeStyleSettings>
|
||||||
</code_scheme>
|
</code_scheme>
|
||||||
</component>
|
</component>
|
@ -1,6 +1,6 @@
|
|||||||
<component name="CopyrightManager">
|
<component name="CopyrightManager">
|
||||||
<copyright>
|
<copyright>
|
||||||
<option name="notice" value="Copyright 2003-2022 The IdeaVim authors Use of this source code is governed by an MIT-style license that can be found in the LICENSE.txt file or at https://opensource.org/licenses/MIT." />
|
<option name="notice" value="Copyright 2003-2023 The IdeaVim authors Use of this source code is governed by an MIT-style license that can be found in the LICENSE.txt file or at https://opensource.org/licenses/MIT." />
|
||||||
<option name="myName" value="IdeaVim" />
|
<option name="myName" value="IdeaVim" />
|
||||||
</copyright>
|
</copyright>
|
||||||
</component>
|
</component>
|
@ -1,3 +1,3 @@
|
|||||||
<component name="DependencyValidationManager">
|
<component name="DependencyValidationManager">
|
||||||
<scope name="Copyright" pattern="file:*/&&!file:.github//*&&!file:.idea//*&&!file:.teamcity//*&&!file:assets//*&&!file:config//*&&!file:doc//*&&!file:gradle//*&&!file:gradlew&&!file:gradlew.bat&&!file:src/main/resources//*&&!file:antlr//*&&!file:java/com/maddyhome/idea/vim/regexp/RegExp.kt" />
|
<scope name="Copyright" pattern="file:*/&&!file:.github//*&&!file:.idea//*&&!file:.teamcity//*&&!file:assets//*&&!file:config//*&&!file:doc//*&&!file:gradle//*&&!file:gradlew&&!file:gradlew.bat&&!file:src/main/resources//*&&!file:antlr//*&&!file:java/com/maddyhome/idea/vim/regexp/RegExp.kt&&!file:java/com/maddyhome/idea/vim/ui/Tutor.kt&&!file:java/com/maddyhome/idea/vim/helper/ScrollViewHelper.kt" />
|
||||||
</component>
|
</component>
|
9
.teamcity/_Self/Constants.kt
vendored
9
.teamcity/_Self/Constants.kt
vendored
@ -5,16 +5,15 @@ object Constants {
|
|||||||
const val EAP_CHANNEL = "eap"
|
const val EAP_CHANNEL = "eap"
|
||||||
const val DEV_CHANNEL = "Dev"
|
const val DEV_CHANNEL = "Dev"
|
||||||
|
|
||||||
const val VERSION = "2.0.0"
|
const val VERSION = "2.4.0"
|
||||||
const val DEV_VERSION = "2.1.0"
|
|
||||||
|
|
||||||
const val GITHUB_TESTS = "LATEST-EAP-SNAPSHOT"
|
const val GITHUB_TESTS = "LATEST-EAP-SNAPSHOT"
|
||||||
const val NVIM_TESTS = "LATEST-EAP-SNAPSHOT"
|
const val NVIM_TESTS = "LATEST-EAP-SNAPSHOT"
|
||||||
const val PROPERTY_TESTS = "LATEST-EAP-SNAPSHOT"
|
const val PROPERTY_TESTS = "LATEST-EAP-SNAPSHOT"
|
||||||
const val LONG_RUNNING_TESTS = "LATEST-EAP-SNAPSHOT"
|
const val LONG_RUNNING_TESTS = "LATEST-EAP-SNAPSHOT"
|
||||||
const val QODANA_TESTS = "LATEST-EAP-SNAPSHOT"
|
const val QODANA_TESTS = "LATEST-EAP-SNAPSHOT"
|
||||||
const val RELEASE = "LATEST-EAP-SNAPSHOT"
|
const val RELEASE = "2023.1.2"
|
||||||
|
|
||||||
const val RELEASE_DEV = "LATEST-EAP-SNAPSHOT"
|
const val RELEASE_DEV = "2023.1.2"
|
||||||
const val RELEASE_EAP = "LATEST-EAP-SNAPSHOT"
|
const val RELEASE_EAP = "2023.1.2"
|
||||||
}
|
}
|
||||||
|
88
.teamcity/_Self/Project.kt
vendored
88
.teamcity/_Self/Project.kt
vendored
@ -6,33 +6,25 @@ import _Self.buildTypes.Nvim
|
|||||||
import _Self.buildTypes.PluginVerifier
|
import _Self.buildTypes.PluginVerifier
|
||||||
import _Self.buildTypes.PropertyBased
|
import _Self.buildTypes.PropertyBased
|
||||||
import _Self.buildTypes.Qodana
|
import _Self.buildTypes.Qodana
|
||||||
import _Self.buildTypes.TestsForIntelliJ20222
|
import _Self.buildTypes.TestingBuildType
|
||||||
import _Self.buildTypes.TestsForIntelliJEAP
|
|
||||||
import _Self.subprojects.GitHub
|
import _Self.subprojects.GitHub
|
||||||
import _Self.subprojects.OldTests
|
import _Self.subprojects.OldTests
|
||||||
import _Self.subprojects.Releases
|
import _Self.subprojects.Releases
|
||||||
import _Self.vcsRoots.*
|
import _Self.vcsRoots.GitHubPullRequest
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
||||||
|
|
||||||
object Project : Project({
|
object Project : Project({
|
||||||
description = "Vim emulation plugin for the IntelliJ platform products"
|
description = "Vim engine for IDEs based on the IntelliJ platform"
|
||||||
|
|
||||||
subProjects(Releases, OldTests, GitHub)
|
subProjects(Releases, OldTests, GitHub)
|
||||||
|
|
||||||
// VCS roots
|
// VCS roots
|
||||||
vcsRoot(Branch_183)
|
|
||||||
vcsRoot(Branch_181)
|
|
||||||
vcsRoot(Branch_191_193)
|
|
||||||
vcsRoot(Branch_201)
|
|
||||||
vcsRoot(Branch_202)
|
|
||||||
vcsRoot(Branch_203_212)
|
|
||||||
vcsRoot(Branch_213_221)
|
|
||||||
vcsRoot(Branch_222)
|
|
||||||
vcsRoot(Branch_Release)
|
|
||||||
vcsRoot(GitHubPullRequest)
|
vcsRoot(GitHubPullRequest)
|
||||||
|
|
||||||
// Builds
|
// Active tests
|
||||||
buildType(TestsForIntelliJEAP)
|
buildType(TestingBuildType("Latest EAP", "<default>", version = "LATEST-EAP-SNAPSHOT"))
|
||||||
|
buildType(TestingBuildType("Latest EAP With Xorg", "<default>", version = "LATEST-EAP-SNAPSHOT"))
|
||||||
|
|
||||||
buildType(PropertyBased)
|
buildType(PropertyBased)
|
||||||
buildType(LongRunning)
|
buildType(LongRunning)
|
||||||
@ -42,52 +34,22 @@ object Project : Project({
|
|||||||
buildType(Compatibility)
|
buildType(Compatibility)
|
||||||
|
|
||||||
buildType(Qodana)
|
buildType(Qodana)
|
||||||
|
|
||||||
// Unknown staff generated by TeamCity
|
|
||||||
features {
|
|
||||||
feature {
|
|
||||||
type = "CloudImage"
|
|
||||||
id = "PROJECT_EXT_768"
|
|
||||||
param("agent_pool_id", "41")
|
|
||||||
param("amazon-id", "ami-0fa17ce8238eb8868")
|
|
||||||
param("ebs-optimized", "false")
|
|
||||||
param("image-instances-limit", "")
|
|
||||||
param("image-name-prefix", "BuildAgentsIdeaVim")
|
|
||||||
param("instance-type", "c5d.xlarge")
|
|
||||||
param("key-pair-name", "teamcity-prod-pub")
|
|
||||||
param("profileId", "amazon-48")
|
|
||||||
param("security-group-ids", "sg-eda08696,sg-7332cf0f,")
|
|
||||||
param("source-id", "BuildAgentsIdeaVim")
|
|
||||||
param("spot-instance-price", "0.12")
|
|
||||||
param("subnet-id", "subnet-58839511")
|
|
||||||
param("use-spot-instances", "true")
|
|
||||||
param("user-tags", "project=idea-vim")
|
|
||||||
param("key-pair-name", "")
|
|
||||||
param("spot-instance-price", "")
|
|
||||||
}
|
|
||||||
feature {
|
|
||||||
type = "CloudProfile"
|
|
||||||
id = "amazon-48"
|
|
||||||
param("agentPushPreset", "")
|
|
||||||
param("cloud-code", "amazon")
|
|
||||||
param("description", "")
|
|
||||||
param("enabled", "true")
|
|
||||||
param("max-running-instances", "10")
|
|
||||||
param("name", "Cloud Agents")
|
|
||||||
param("next-hour", "")
|
|
||||||
param("not-checked", "")
|
|
||||||
param("profileId", "amazon-48")
|
|
||||||
param("profileServerUrl", "")
|
|
||||||
param("region", "eu-west-1")
|
|
||||||
param("secure:access-id", "credentialsJSON:dbcdb2a2-de5f-4bc9-9421-292b19e83947")
|
|
||||||
param("secure:secret-key", "credentialsJSON:65a87fe7-0977-4af9-96f1-344f2b82d269")
|
|
||||||
param("system.cloud.profile_id", "amazon-48")
|
|
||||||
param("terminate-idle-time", "15")
|
|
||||||
param("total-work-time", "")
|
|
||||||
param("user-script", "")
|
|
||||||
param("spot-fleet-config", "")
|
|
||||||
param("terminate-after-build", "true")
|
|
||||||
param("name", "Cloud Agents - Single Build")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Common build type for all configurations
|
||||||
|
abstract class IdeaVimBuildType(init: BuildType.() -> Unit) : BuildType({
|
||||||
|
init()
|
||||||
|
|
||||||
|
requirements {
|
||||||
|
// These requirements define Linux-Medium configuration.
|
||||||
|
// Unfortunately, requirement by name (teamcity.agent.name) doesn't work
|
||||||
|
// IDK the reason for it, but on our agents this property is empty
|
||||||
|
equals("teamcity.agent.hardware.cpuCount", "4")
|
||||||
|
equals("teamcity.agent.os.family", "Linux")
|
||||||
|
}
|
||||||
|
|
||||||
|
failureConditions {
|
||||||
|
// Disable detection of the java OOM
|
||||||
|
javaCrash = false
|
||||||
|
}
|
||||||
|
})
|
35
.teamcity/_Self/buildTypes/Compatibility.kt
vendored
35
.teamcity/_Self/buildTypes/Compatibility.kt
vendored
@ -1,31 +1,46 @@
|
|||||||
package _Self.buildTypes
|
package _Self.buildTypes
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
import _Self.IdeaVimBuildType
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.golang
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.golang
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule
|
||||||
|
|
||||||
object Compatibility : BuildType({
|
object Compatibility : IdeaVimBuildType({
|
||||||
id("IdeaVimCompatibility")
|
id("IdeaVimCompatibility")
|
||||||
name = "IdeaVim compatibility with external plugins"
|
name = "IdeaVim compatibility with external plugins"
|
||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(DslContext.settingsRoot)
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:<default>"
|
||||||
}
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
|
name = "Load Verifier"
|
||||||
|
scriptContent = """
|
||||||
|
mkdir verifier1
|
||||||
|
curl -f -L -o verifier1/verifier-cli-dev-all-1.jar "https://packages.jetbrains.team/files/p/ideavim/plugin-verifier/verifier-cli-dev-all-1.jar"
|
||||||
|
""".trimIndent()
|
||||||
|
}
|
||||||
script {
|
script {
|
||||||
name = "Check"
|
name = "Check"
|
||||||
scriptContent = """
|
scriptContent = """
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}org.jetbrains.IdeaVim-EasyMotion' [latest-IU] -team-city
|
# We use a custom build of verifier that downloads IdeaVim from dev channel
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}io.github.mishkun.ideavimsneak' [latest-IU] -team-city
|
# To create a custom build: Download plugin verifier repo, add an if that switches to dev channel for IdeaVim repo
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}eu.theblob42.idea.whichkey' [latest-IU] -team-city
|
# At the moment it's com.jetbrains.pluginverifier.repository.repositories.marketplace.MarketplaceRepository#getLastCompatibleVersionOfPlugin
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}IdeaVimExtension' [latest-IU] -team-city
|
# Build using gradlew :intellij-plugin-verifier:verifier-cli:shadowJar
|
||||||
# Outdated java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}github.zgqq.intellij-enhance' [latest-IU] -team-city
|
# Upload verifier-cli-dev-all.jar artifact to the repo in IdeaVim space repo
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}com.github.copilot' [latest-IU] -team-city
|
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}com.github.dankinsoid.multicursor' [latest-IU] -team-city
|
java --version
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}com.joshestein.ideavim-quickscope' [latest-IU] -team-city
|
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}org.jetbrains.IdeaVim-EasyMotion' [latest-IU] -team-city
|
||||||
|
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}io.github.mishkun.ideavimsneak' [latest-IU] -team-city
|
||||||
|
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}eu.theblob42.idea.whichkey' [latest-IU] -team-city
|
||||||
|
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}IdeaVimExtension' [latest-IU] -team-city
|
||||||
|
# Outdated java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}github.zgqq.intellij-enhance' [latest-IU] -team-city
|
||||||
|
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}com.github.copilot' [latest-IU] -team-city
|
||||||
|
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}com.github.dankinsoid.multicursor' [latest-IU] -team-city
|
||||||
|
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}com.joshestein.ideavim-quickscope' [latest-IU] -team-city
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
77
.teamcity/_Self/buildTypes/GithubTests.kt
vendored
77
.teamcity/_Self/buildTypes/GithubTests.kt
vendored
@ -1,77 +0,0 @@
|
|||||||
package _Self.buildTypes
|
|
||||||
|
|
||||||
import _Self.Constants.GITHUB_TESTS
|
|
||||||
import _Self.vcsRoots.GitHubPullRequest
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.PullRequests
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.commitStatusPublisher
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.pullRequests
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.VcsTrigger
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
|
||||||
|
|
||||||
object GithubTests : Github("clean test", "Tests")
|
|
||||||
|
|
||||||
sealed class Github(command: String, desc: String) : BuildType({
|
|
||||||
name = "GitHub Pull Requests $desc"
|
|
||||||
description = "Test GitHub pull requests $desc"
|
|
||||||
|
|
||||||
params {
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", GITHUB_TESTS)
|
|
||||||
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs {
|
|
||||||
root(GitHubPullRequest)
|
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
|
||||||
branchFilter = """
|
|
||||||
+:*
|
|
||||||
-:<default>
|
|
||||||
""".trimIndent()
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
gradle {
|
|
||||||
tasks = command
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
vcs {
|
|
||||||
quietPeriodMode = VcsTrigger.QuietPeriodMode.USE_DEFAULT
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
features {
|
|
||||||
pullRequests {
|
|
||||||
provider = github {
|
|
||||||
authType = token {
|
|
||||||
token = "credentialsJSON:43afd6e5-6ad5-4d12-a218-cf1547717a7f"
|
|
||||||
}
|
|
||||||
filterTargetBranch = "refs/heads/master"
|
|
||||||
filterAuthorRole = PullRequests.GitHubRoleFilter.EVERYBODY
|
|
||||||
}
|
|
||||||
}
|
|
||||||
commitStatusPublisher {
|
|
||||||
vcsRootExtId = "${GitHubPullRequest.id}"
|
|
||||||
publisher = github {
|
|
||||||
githubUrl = "https://api.github.com"
|
|
||||||
authType = personalToken {
|
|
||||||
token = "credentialsJSON:43afd6e5-6ad5-4d12-a218-cf1547717a7f"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
param("github_oauth_user", "AlexPl292")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
})
|
|
20
.teamcity/_Self/buildTypes/LongRunning.kt
vendored
20
.teamcity/_Self/buildTypes/LongRunning.kt
vendored
@ -1,13 +1,14 @@
|
|||||||
package _Self.buildTypes
|
package _Self.buildTypes
|
||||||
|
|
||||||
import _Self.Constants.LONG_RUNNING_TESTS
|
import _Self.Constants.LONG_RUNNING_TESTS
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
import _Self.IdeaVimBuildType
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
||||||
|
|
||||||
object LongRunning : BuildType({
|
object LongRunning : IdeaVimBuildType({
|
||||||
name = "Long running tests"
|
name = "Long running tests"
|
||||||
params {
|
params {
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
||||||
@ -17,6 +18,7 @@ object LongRunning : BuildType({
|
|||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(DslContext.settingsRoot)
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:<default>"
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
checkoutMode = CheckoutMode.AUTO
|
||||||
}
|
}
|
||||||
@ -26,17 +28,19 @@ object LongRunning : BuildType({
|
|||||||
tasks = "clean testLongRunning"
|
tasks = "clean testLongRunning"
|
||||||
buildFile = ""
|
buildFile = ""
|
||||||
enableStacktrace = true
|
enableStacktrace = true
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
vcs {
|
vcs {
|
||||||
branchFilter = ""
|
enabled = false
|
||||||
|
branchFilter = "+:<default>"
|
||||||
|
}
|
||||||
|
schedule {
|
||||||
|
enabled = true
|
||||||
|
schedulingPolicy = daily {
|
||||||
|
hour = 5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
})
|
})
|
12
.teamcity/_Self/buildTypes/Nvim.kt
vendored
12
.teamcity/_Self/buildTypes/Nvim.kt
vendored
@ -1,7 +1,7 @@
|
|||||||
package _Self.buildTypes
|
package _Self.buildTypes
|
||||||
|
|
||||||
import _Self.Constants.NVIM_TESTS
|
import _Self.Constants.NVIM_TESTS
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
import _Self.IdeaVimBuildType
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
@ -10,7 +10,7 @@ import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailu
|
|||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
||||||
|
|
||||||
object Nvim : BuildType({
|
object Nvim : IdeaVimBuildType({
|
||||||
name = "Tests with nvim"
|
name = "Tests with nvim"
|
||||||
description = "Running tests with nvim integration"
|
description = "Running tests with nvim integration"
|
||||||
|
|
||||||
@ -23,6 +23,7 @@ object Nvim : BuildType({
|
|||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(DslContext.settingsRoot)
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:<default>"
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
checkoutMode = CheckoutMode.AUTO
|
||||||
}
|
}
|
||||||
@ -41,20 +42,15 @@ object Nvim : BuildType({
|
|||||||
tasks = "clean testWithNeovim"
|
tasks = "clean testWithNeovim"
|
||||||
buildFile = ""
|
buildFile = ""
|
||||||
enableStacktrace = true
|
enableStacktrace = true
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
vcs {
|
vcs {
|
||||||
branchFilter = ""
|
branchFilter = "+:<default>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
failureConditions {
|
||||||
failOnMetricChange {
|
failOnMetricChange {
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
||||||
|
12
.teamcity/_Self/buildTypes/PluginVerifier.kt
vendored
12
.teamcity/_Self/buildTypes/PluginVerifier.kt
vendored
@ -1,12 +1,12 @@
|
|||||||
package _Self.buildTypes
|
package _Self.buildTypes
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
import _Self.IdeaVimBuildType
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
||||||
|
|
||||||
object PluginVerifier : BuildType({
|
object PluginVerifier : IdeaVimBuildType({
|
||||||
name = "Plugin verification"
|
name = "Plugin verification"
|
||||||
params {
|
params {
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
||||||
@ -15,6 +15,7 @@ object PluginVerifier : BuildType({
|
|||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(DslContext.settingsRoot)
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:<default>"
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
checkoutMode = CheckoutMode.AUTO
|
||||||
}
|
}
|
||||||
@ -24,17 +25,12 @@ object PluginVerifier : BuildType({
|
|||||||
tasks = "clean runPluginVerifier"
|
tasks = "clean runPluginVerifier"
|
||||||
buildFile = ""
|
buildFile = ""
|
||||||
enableStacktrace = true
|
enableStacktrace = true
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
vcs {
|
vcs {
|
||||||
branchFilter = ""
|
branchFilter = "+:<default>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
12
.teamcity/_Self/buildTypes/PropertyBased.kt
vendored
12
.teamcity/_Self/buildTypes/PropertyBased.kt
vendored
@ -1,13 +1,13 @@
|
|||||||
package _Self.buildTypes
|
package _Self.buildTypes
|
||||||
|
|
||||||
import _Self.Constants.PROPERTY_TESTS
|
import _Self.Constants.PROPERTY_TESTS
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
import _Self.IdeaVimBuildType
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
||||||
|
|
||||||
object PropertyBased : BuildType({
|
object PropertyBased : IdeaVimBuildType({
|
||||||
name = "Property based tests"
|
name = "Property based tests"
|
||||||
params {
|
params {
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
||||||
@ -17,6 +17,7 @@ object PropertyBased : BuildType({
|
|||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(DslContext.settingsRoot)
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:<default>"
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
checkoutMode = CheckoutMode.AUTO
|
||||||
}
|
}
|
||||||
@ -26,17 +27,12 @@ object PropertyBased : BuildType({
|
|||||||
tasks = "clean testPropertyBased"
|
tasks = "clean testPropertyBased"
|
||||||
buildFile = ""
|
buildFile = ""
|
||||||
enableStacktrace = true
|
enableStacktrace = true
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
vcs {
|
vcs {
|
||||||
branchFilter = ""
|
branchFilter = "+:<default>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
63
.teamcity/_Self/buildTypes/PublishVimEngine.kt
vendored
Normal file
63
.teamcity/_Self/buildTypes/PublishVimEngine.kt
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
package _Self.buildTypes
|
||||||
|
|
||||||
|
import _Self.IdeaVimBuildType
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.ParameterDisplay
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.ScheduleTrigger
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule
|
||||||
|
|
||||||
|
object PublishVimEngine : IdeaVimBuildType({
|
||||||
|
name = "Publish vim-engine"
|
||||||
|
description = "Build and publish vim-engine library"
|
||||||
|
|
||||||
|
artifactRules = "build/distributions/*"
|
||||||
|
buildNumberPattern = "0.0.%build.counter%"
|
||||||
|
|
||||||
|
params {
|
||||||
|
param("env.ORG_GRADLE_PROJECT_engineVersion", "%build.number%")
|
||||||
|
param("env.ORG_GRADLE_PROJECT_uploadUrl", "https://packages.jetbrains.team/maven/p/ij/intellij-dependencies")
|
||||||
|
password("env.ORG_GRADLE_PROJECT_spacePassword", "credentialsJSON:790b4e43-ee83-4184-b81b-678afab60409", display = ParameterDisplay.HIDDEN)
|
||||||
|
param("env.ORG_GRADLE_PROJECT_spaceUsername", "Aleksei.Plate")
|
||||||
|
}
|
||||||
|
|
||||||
|
vcs {
|
||||||
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:<default>"
|
||||||
|
|
||||||
|
checkoutMode = CheckoutMode.AUTO
|
||||||
|
}
|
||||||
|
|
||||||
|
steps {
|
||||||
|
gradle {
|
||||||
|
tasks = ":vim-engine:publish"
|
||||||
|
buildFile = ""
|
||||||
|
enableStacktrace = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
triggers {
|
||||||
|
schedule {
|
||||||
|
enabled = true
|
||||||
|
schedulingPolicy = weekly {
|
||||||
|
dayOfWeek = ScheduleTrigger.DAY.Sunday
|
||||||
|
}
|
||||||
|
branchFilter = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
failureConditions {
|
||||||
|
failOnMetricChange {
|
||||||
|
metric = BuildFailureOnMetric.MetricType.ARTIFACT_SIZE
|
||||||
|
threshold = 5
|
||||||
|
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
||||||
|
comparison = BuildFailureOnMetric.MetricComparison.DIFF
|
||||||
|
compareTo = build {
|
||||||
|
buildRule = lastSuccessful()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
61
.teamcity/_Self/buildTypes/Qodana.kt
vendored
61
.teamcity/_Self/buildTypes/Qodana.kt
vendored
@ -1,18 +1,18 @@
|
|||||||
package _Self.buildTypes
|
package _Self.buildTypes
|
||||||
|
|
||||||
import _Self.Constants.QODANA_TESTS
|
import _Self.Constants.QODANA_TESTS
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
import _Self.IdeaVimBuildType
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.Qodana
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.Qodana
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.qodana
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.qodana
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.ScheduleTrigger
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
||||||
|
|
||||||
object Qodana : BuildType({
|
object Qodana : IdeaVimBuildType({
|
||||||
name = "Qodana checks"
|
name = "Qodana checks"
|
||||||
params {
|
params {
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
||||||
@ -22,48 +22,48 @@ object Qodana : BuildType({
|
|||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(DslContext.settingsRoot)
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:<default>"
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
checkoutMode = CheckoutMode.AUTO
|
||||||
}
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
|
gradle {
|
||||||
|
name = "Generate grammar"
|
||||||
|
tasks = "generateGrammarSource"
|
||||||
|
}
|
||||||
qodana {
|
qodana {
|
||||||
name = "Qodana"
|
name = "Qodana"
|
||||||
/*
|
param("clonefinder-languages", "")
|
||||||
reportAsTestsEnable = ""
|
param("collect-anonymous-statistics", "")
|
||||||
failBuildOnErrors = ""
|
param("licenseaudit-enable", "")
|
||||||
codeInspectionXmlConfig = "Custom"
|
param("clonefinder-languages-container", "")
|
||||||
codeInspectionCustomXmlConfigPath = ".idea/inspectionProfiles/Qodana.xml"
|
param("linterVersion", "")
|
||||||
reportAsTestsEnable = "true"
|
param("clonefinder-queried-project", "")
|
||||||
*/
|
param("clonefinder-enable", "")
|
||||||
clearConditions()
|
param("clonefinder-reference-projects", "")
|
||||||
param("licenseaudit-enable", "true")
|
|
||||||
param("clonefinder-languages", "Java")
|
|
||||||
param("clonefinder-mode", "")
|
|
||||||
param("report-version", "")
|
|
||||||
param("clonefinder-languages-container", "Java Kotlin")
|
|
||||||
param("namesAndTagsCustom", "repo.labs.intellij.net/static-analyser/qodana")
|
|
||||||
param("clonefinder-queried-project", "src")
|
|
||||||
param("clonefinder-enable", "true")
|
|
||||||
param("clonefinder-reference-projects", "src")
|
|
||||||
param("yaml-configuration", "")
|
|
||||||
linter = jvm {
|
linter = jvm {
|
||||||
version = Qodana.JVMVersion.LATEST
|
version = Qodana.JVMVersion.LATEST
|
||||||
}
|
}
|
||||||
|
reportAsTests = true
|
||||||
|
additionalDockerArguments = "-e QODANA_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb24iOiIzUFZrQSIsInByb2plY3QiOiIzN1FlQSIsInRva2VuIjoiM0t2bXoifQ.uohp81tM7iAfvvB6k8faarfpV-OjusAaEbWQ8iNrOgs"
|
||||||
|
additionalQodanaArguments = "--baseline qodana.sarif.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
vcs {
|
vcs {
|
||||||
enabled = true
|
enabled = false
|
||||||
branchFilter = ""
|
branchFilter = "+:<default>"
|
||||||
}
|
}
|
||||||
schedule {
|
schedule {
|
||||||
schedulingPolicy = weekly {
|
schedulingPolicy = daily {
|
||||||
dayOfWeek = ScheduleTrigger.DAY.Tuesday
|
hour = 12
|
||||||
|
minute = 0
|
||||||
|
timezone = "SERVER"
|
||||||
}
|
}
|
||||||
branchFilter = ""
|
param("dayOfWeek", "Sunday")
|
||||||
triggerBuild = always()
|
enabled = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,11 +74,8 @@ object Qodana : BuildType({
|
|||||||
comparison = BuildFailureOnMetric.MetricComparison.MORE
|
comparison = BuildFailureOnMetric.MetricComparison.MORE
|
||||||
compareTo = value()
|
compareTo = value()
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_FAILED_COUNT
|
metric = BuildFailureOnMetric.MetricType.TEST_FAILED_COUNT
|
||||||
param("metricKey", "QodanaProblemsTotal")
|
param("metricKey", "QodanaProblemsNew")
|
||||||
|
enabled = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
76
.teamcity/_Self/buildTypes/Release.kt
vendored
76
.teamcity/_Self/buildTypes/Release.kt
vendored
@ -1,76 +0,0 @@
|
|||||||
package _Self.buildTypes
|
|
||||||
|
|
||||||
import _Self.Constants.DEFAULT_CHANNEL
|
|
||||||
import _Self.Constants.DEV_CHANNEL
|
|
||||||
import _Self.Constants.EAP_CHANNEL
|
|
||||||
import _Self.Constants.RELEASE
|
|
||||||
import _Self.Constants.VERSION
|
|
||||||
import _Self.vcsRoots.Branch_Release
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.vcsLabeling
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
|
||||||
|
|
||||||
object Release : BuildType({
|
|
||||||
name = "Publish Release"
|
|
||||||
description = "Build and publish IdeaVim plugin"
|
|
||||||
|
|
||||||
artifactRules = "build/distributions/*"
|
|
||||||
buildNumberPattern = VERSION
|
|
||||||
|
|
||||||
params {
|
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", RELEASE)
|
|
||||||
password(
|
|
||||||
"env.ORG_GRADLE_PROJECT_publishToken",
|
|
||||||
"credentialsJSON:61a36031-4da1-4226-a876-b8148bf32bde",
|
|
||||||
label = "Password"
|
|
||||||
)
|
|
||||||
param("env.ORG_GRADLE_PROJECT_version", "%build.number%")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_publishChannels", "$DEFAULT_CHANNEL,$EAP_CHANNEL,$DEV_CHANNEL")
|
|
||||||
password(
|
|
||||||
"env.ORG_GRADLE_PROJECT_slackUrl",
|
|
||||||
"credentialsJSON:a8ab8150-e6f8-4eaf-987c-bcd65eac50b5",
|
|
||||||
label = "Slack Token"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs {
|
|
||||||
root(Branch_Release)
|
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
gradle {
|
|
||||||
tasks = "clean publishPlugin slackNotification"
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
features {
|
|
||||||
vcsLabeling {
|
|
||||||
vcsRootId = "${DslContext.settingsRoot.id}"
|
|
||||||
labelingPattern = "%system.build.number%"
|
|
||||||
successfulOnly = true
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
|
||||||
failOnMetricChange {
|
|
||||||
metric = BuildFailureOnMetric.MetricType.ARTIFACT_SIZE
|
|
||||||
threshold = 5
|
|
||||||
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
|
||||||
comparison = BuildFailureOnMetric.MetricComparison.DIFF
|
|
||||||
compareTo = build {
|
|
||||||
buildRule = lastSuccessful()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
38
.teamcity/_Self/buildTypes/ReleaseDev.kt
vendored
38
.teamcity/_Self/buildTypes/ReleaseDev.kt
vendored
@ -1,22 +1,22 @@
|
|||||||
package _Self.buildTypes
|
package _Self.buildTypes
|
||||||
|
|
||||||
import _Self.Constants.DEV_CHANNEL
|
import _Self.Constants.DEV_CHANNEL
|
||||||
import _Self.Constants.DEV_VERSION
|
|
||||||
import _Self.Constants.RELEASE_DEV
|
import _Self.Constants.RELEASE_DEV
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
import _Self.IdeaVimBuildType
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.sshAgent
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule
|
||||||
|
|
||||||
object ReleaseDev : BuildType({
|
object ReleaseDev : IdeaVimBuildType({
|
||||||
name = "Publish Dev Build"
|
name = "Publish Dev Build"
|
||||||
description = "Build and publish Dev of IdeaVim plugin"
|
description = "Build and publish Dev of IdeaVim plugin"
|
||||||
|
|
||||||
artifactRules = "build/distributions/*"
|
artifactRules = "build/distributions/*"
|
||||||
buildNumberPattern = "$DEV_VERSION-dev.%build.counter%"
|
|
||||||
|
|
||||||
params {
|
params {
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", RELEASE_DEV)
|
param("env.ORG_GRADLE_PROJECT_ideaVersion", RELEASE_DEV)
|
||||||
@ -25,23 +25,35 @@ object ReleaseDev : BuildType({
|
|||||||
"credentialsJSON:61a36031-4da1-4226-a876-b8148bf32bde",
|
"credentialsJSON:61a36031-4da1-4226-a876-b8148bf32bde",
|
||||||
label = "Password"
|
label = "Password"
|
||||||
)
|
)
|
||||||
param("env.ORG_GRADLE_PROJECT_version", "%build.number%")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_publishChannels", DEV_CHANNEL)
|
param("env.ORG_GRADLE_PROJECT_publishChannels", DEV_CHANNEL)
|
||||||
}
|
}
|
||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(DslContext.settingsRoot)
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:<default>"
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
checkoutMode = CheckoutMode.AUTO
|
||||||
}
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
|
name = "Pull git tags"
|
||||||
|
scriptContent = "git fetch --tags origin"
|
||||||
|
}
|
||||||
|
script {
|
||||||
|
name = "Pull git history"
|
||||||
|
scriptContent = "git fetch --unshallow"
|
||||||
|
}
|
||||||
gradle {
|
gradle {
|
||||||
tasks = "clean publishPlugin"
|
name = "Calculate new dev version"
|
||||||
buildFile = ""
|
tasks = "scripts:calculateNewDevVersion"
|
||||||
enableStacktrace = true
|
}
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
gradle {
|
||||||
|
name = "Set TeamCity build number"
|
||||||
|
tasks = "scripts:setTeamCityBuildNumber"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
tasks = "publishPlugin"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,6 +67,12 @@ object ReleaseDev : BuildType({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
features {
|
||||||
|
sshAgent {
|
||||||
|
teamcitySshKey = "IdeaVim ssh keys"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
failureConditions {
|
failureConditions {
|
||||||
failOnMetricChange {
|
failOnMetricChange {
|
||||||
metric = BuildFailureOnMetric.MetricType.ARTIFACT_SIZE
|
metric = BuildFailureOnMetric.MetricType.ARTIFACT_SIZE
|
||||||
|
70
.teamcity/_Self/buildTypes/ReleaseEap.kt
vendored
70
.teamcity/_Self/buildTypes/ReleaseEap.kt
vendored
@ -1,22 +1,21 @@
|
|||||||
package _Self.buildTypes
|
package _Self.buildTypes
|
||||||
|
|
||||||
import _Self.Constants.DEV_VERSION
|
|
||||||
import _Self.Constants.EAP_CHANNEL
|
import _Self.Constants.EAP_CHANNEL
|
||||||
import _Self.Constants.RELEASE_EAP
|
import _Self.Constants.RELEASE_EAP
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
import _Self.IdeaVimBuildType
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.vcsLabeling
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.sshAgent
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
||||||
|
|
||||||
object ReleaseEap : BuildType({
|
object ReleaseEap : IdeaVimBuildType({
|
||||||
name = "Publish EAP Build"
|
name = "Publish EAP Build"
|
||||||
description = "Build and publish EAP of IdeaVim plugin"
|
description = "Build and publish EAP of IdeaVim plugin"
|
||||||
|
|
||||||
artifactRules = "build/distributions/*"
|
artifactRules = "build/distributions/*"
|
||||||
buildNumberPattern = "$DEV_VERSION-eap.%build.counter%"
|
|
||||||
|
|
||||||
params {
|
params {
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", RELEASE_EAP)
|
param("env.ORG_GRADLE_PROJECT_ideaVersion", RELEASE_EAP)
|
||||||
@ -25,8 +24,6 @@ object ReleaseEap : BuildType({
|
|||||||
"credentialsJSON:61a36031-4da1-4226-a876-b8148bf32bde",
|
"credentialsJSON:61a36031-4da1-4226-a876-b8148bf32bde",
|
||||||
label = "Password"
|
label = "Password"
|
||||||
)
|
)
|
||||||
param("env.ORG_GRADLE_PROJECT_version", "%build.number%")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_publishChannels", EAP_CHANNEL)
|
param("env.ORG_GRADLE_PROJECT_publishChannels", EAP_CHANNEL)
|
||||||
password(
|
password(
|
||||||
"env.ORG_GRADLE_PROJECT_slackUrl",
|
"env.ORG_GRADLE_PROJECT_slackUrl",
|
||||||
@ -37,25 +34,58 @@ object ReleaseEap : BuildType({
|
|||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(DslContext.settingsRoot)
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:<default>"
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
checkoutMode = CheckoutMode.AUTO
|
||||||
}
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
|
name = "Pull git tags"
|
||||||
|
scriptContent = "git fetch --tags origin"
|
||||||
|
}
|
||||||
|
script {
|
||||||
|
name = "Pull git history"
|
||||||
|
scriptContent = "git fetch --unshallow"
|
||||||
|
}
|
||||||
gradle {
|
gradle {
|
||||||
tasks = "clean publishPlugin"
|
name = "Calculate new eap version"
|
||||||
buildFile = ""
|
tasks = "scripts:calculateNewEapVersion"
|
||||||
enableStacktrace = true
|
}
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
gradle {
|
||||||
|
name = "Set TeamCity build number"
|
||||||
|
tasks = "scripts:setTeamCityBuildNumber"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Add release tag"
|
||||||
|
tasks = "scripts:addReleaseTag"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
tasks = "publishPlugin"
|
||||||
|
}
|
||||||
|
// Same as the script below. However, jgit can't find ssh keys on TeamCity
|
||||||
|
// gradle {
|
||||||
|
// name = "Push changes to the repo"
|
||||||
|
// tasks = "scripts:pushChanges"
|
||||||
|
// }
|
||||||
|
script {
|
||||||
|
name = "Push changes to the repo"
|
||||||
|
scriptContent = """
|
||||||
|
branch=$(git branch --show-current)
|
||||||
|
echo current branch is ${'$'}branch
|
||||||
|
if [ "master" != "${'$'}branch" ];
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
git push origin %build.number%
|
||||||
|
""".trimIndent()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
features {
|
features {
|
||||||
vcsLabeling {
|
sshAgent {
|
||||||
vcsRootId = "${DslContext.settingsRoot.id}"
|
teamcitySshKey = "IdeaVim ssh keys"
|
||||||
labelingPattern = "%system.build.number%"
|
|
||||||
successfulOnly = true
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,4 +100,12 @@ object ReleaseEap : BuildType({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
requirements {
|
||||||
|
// These requirements define Linux-XLarge configuration.
|
||||||
|
// Unfortunately, requirement by name (teamcity.agent.name) doesn't work
|
||||||
|
// IDK the reason for it, but on our agents this property is empty
|
||||||
|
// equals("teamcity.agent.hardware.cpuCount", "16")
|
||||||
|
// equals("teamcity.agent.os.family", "Linux")
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
155
.teamcity/_Self/buildTypes/ReleasePlugin.kt
vendored
Normal file
155
.teamcity/_Self/buildTypes/ReleasePlugin.kt
vendored
Normal file
@ -0,0 +1,155 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package _Self.buildTypes
|
||||||
|
|
||||||
|
import _Self.Constants.DEFAULT_CHANNEL
|
||||||
|
import _Self.Constants.DEV_CHANNEL
|
||||||
|
import _Self.Constants.EAP_CHANNEL
|
||||||
|
import _Self.Constants.RELEASE
|
||||||
|
import _Self.IdeaVimBuildType
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.ParameterDisplay
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.sshAgent
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
||||||
|
|
||||||
|
object ReleaseMajor : ReleasePlugin("major")
|
||||||
|
object ReleaseMinor : ReleasePlugin("minor")
|
||||||
|
object ReleasePatch : ReleasePlugin("patch")
|
||||||
|
|
||||||
|
sealed class ReleasePlugin(private val releaseType: String) : IdeaVimBuildType({
|
||||||
|
name = "Publish $releaseType release"
|
||||||
|
description = "Build and publish IdeaVim plugin"
|
||||||
|
|
||||||
|
artifactRules = "build/distributions/*"
|
||||||
|
|
||||||
|
params {
|
||||||
|
param("env.ORG_GRADLE_PROJECT_ideaVersion", RELEASE)
|
||||||
|
password(
|
||||||
|
"env.ORG_GRADLE_PROJECT_publishToken",
|
||||||
|
"credentialsJSON:61a36031-4da1-4226-a876-b8148bf32bde",
|
||||||
|
label = "Password"
|
||||||
|
)
|
||||||
|
param("env.ORG_GRADLE_PROJECT_publishChannels", "$DEFAULT_CHANNEL,$EAP_CHANNEL,$DEV_CHANNEL")
|
||||||
|
password(
|
||||||
|
"env.ORG_GRADLE_PROJECT_slackUrl",
|
||||||
|
"credentialsJSON:a8ab8150-e6f8-4eaf-987c-bcd65eac50b5",
|
||||||
|
label = "Slack Token"
|
||||||
|
)
|
||||||
|
password("env.ORG_GRADLE_PROJECT_youtrackToken", "credentialsJSON:3cd3e867-282c-451f-b958-bc95d56a8450", display = ParameterDisplay.HIDDEN)
|
||||||
|
param("env.ORG_GRADLE_PROJECT_releaseType", releaseType)
|
||||||
|
}
|
||||||
|
|
||||||
|
vcs {
|
||||||
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:<default>"
|
||||||
|
|
||||||
|
checkoutMode = CheckoutMode.AUTO
|
||||||
|
}
|
||||||
|
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
name = "Pull git tags"
|
||||||
|
scriptContent = "git fetch --tags origin"
|
||||||
|
}
|
||||||
|
script {
|
||||||
|
name = "Pull git history"
|
||||||
|
scriptContent = "git fetch --unshallow"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Select branch"
|
||||||
|
tasks = "scripts:selectBranch"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Calculate new version"
|
||||||
|
tasks = "scripts:calculateNewVersion"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Set TeamCity build number"
|
||||||
|
tasks = "scripts:setTeamCityBuildNumber"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Update change log"
|
||||||
|
tasks = "scripts:changelogUpdateUnreleased"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Commit preparation changes"
|
||||||
|
tasks = "scripts:commitChanges"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Add release tag"
|
||||||
|
tasks = "scripts:addReleaseTag"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Reset release branch"
|
||||||
|
tasks = "scripts:resetReleaseBranch"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Publish release"
|
||||||
|
tasks = "publishPlugin"
|
||||||
|
}
|
||||||
|
// gradle {
|
||||||
|
// name = "Push changes to the repo"
|
||||||
|
// tasks = "scripts:pushChangesWithReleaseBranch"
|
||||||
|
// }
|
||||||
|
script {
|
||||||
|
name = "Push changes to the repo"
|
||||||
|
scriptContent = """
|
||||||
|
branch=$(git branch --show-current)
|
||||||
|
echo current branch is ${'$'}branch
|
||||||
|
if [ "master" != "${'$'}branch" ];
|
||||||
|
then
|
||||||
|
git checkout master
|
||||||
|
fi
|
||||||
|
|
||||||
|
git push origin --tags
|
||||||
|
git push origin
|
||||||
|
|
||||||
|
if [ "patch" != $releaseType ];
|
||||||
|
then
|
||||||
|
git checkout release
|
||||||
|
echo checkout release branch
|
||||||
|
git push --tags
|
||||||
|
git push origin --force
|
||||||
|
fi
|
||||||
|
|
||||||
|
git checkout ${'$'}branch
|
||||||
|
""".trimIndent()
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Run Integrations"
|
||||||
|
tasks = "releaseActions"
|
||||||
|
}
|
||||||
|
gradle {
|
||||||
|
name = "Slack Notification"
|
||||||
|
tasks = "slackNotification"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
features {
|
||||||
|
sshAgent {
|
||||||
|
teamcitySshKey = "IdeaVim ssh keys"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
failureConditions {
|
||||||
|
failOnMetricChange {
|
||||||
|
metric = BuildFailureOnMetric.MetricType.ARTIFACT_SIZE
|
||||||
|
threshold = 5
|
||||||
|
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
||||||
|
comparison = BuildFailureOnMetric.MetricComparison.DIFF
|
||||||
|
compareTo = build {
|
||||||
|
buildRule = lastSuccessful()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
@ -1,6 +1,8 @@
|
|||||||
|
@file:Suppress("ClassName")
|
||||||
|
|
||||||
package _Self.buildTypes
|
package _Self.buildTypes
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
import _Self.IdeaVimBuildType
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
@ -8,39 +10,47 @@ import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailu
|
|||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
||||||
|
|
||||||
sealed class ActiveTests(buildName: String, ijVersion: String) : BuildType({
|
open class TestingBuildType(
|
||||||
name = buildName
|
private val testName: String,
|
||||||
|
private val branch: String,
|
||||||
|
private val version: String = testName,
|
||||||
|
private val javaVersion: String? = null,
|
||||||
|
private val javaPlugin: Boolean = true,
|
||||||
|
) : IdeaVimBuildType({
|
||||||
|
id("IdeaVimTests_${testName.vanish()}")
|
||||||
|
name = "Tests for IntelliJ $testName"
|
||||||
|
|
||||||
params {
|
params {
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", ijVersion)
|
param("env.ORG_GRADLE_PROJECT_legacyNoJavaPlugin", javaPlugin.not().toString())
|
||||||
|
param("env.ORG_GRADLE_PROJECT_ideaVersion", version)
|
||||||
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
||||||
|
if (javaVersion != null) {
|
||||||
|
param("env.ORG_GRADLE_PROJECT_javaVersion", javaVersion)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(DslContext.settingsRoot)
|
root(DslContext.settingsRoot)
|
||||||
|
branchFilter = "+:$branch"
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
checkoutMode = CheckoutMode.AUTO
|
||||||
}
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
gradle {
|
gradle {
|
||||||
tasks = "clean check -x ktlintMainSourceSetCheck -x ktlintTestSourceSetCheck"
|
tasks = "clean test"
|
||||||
buildFile = ""
|
buildFile = ""
|
||||||
enableStacktrace = true
|
enableStacktrace = true
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
vcs {
|
vcs {
|
||||||
branchFilter = ""
|
branchFilter = "+:$branch"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
failureConditions {
|
||||||
failOnMetricChange {
|
failOnMetricChange {
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
||||||
@ -54,4 +64,9 @@ sealed class ActiveTests(buildName: String, ijVersion: String) : BuildType({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
object TestsForIntelliJEAP : ActiveTests("Tests for IntelliJ Latest EAP", "LATEST-EAP-SNAPSHOT")
|
private fun String.vanish(): String {
|
||||||
|
return this
|
||||||
|
.replace(' ', '_')
|
||||||
|
.replace('.', '_')
|
||||||
|
.replace('-', '_')
|
||||||
|
}
|
@ -1,58 +0,0 @@
|
|||||||
package _Self.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
|
||||||
|
|
||||||
object TestsForIntelliJ20183 : BuildType({
|
|
||||||
name = "Tests for IntelliJ 2018.3"
|
|
||||||
description = "branch 183"
|
|
||||||
|
|
||||||
params {
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_legacyNoJavaPlugin", "true")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", "IC-2018.3")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_javaVersion", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs {
|
|
||||||
root(_Self.vcsRoots.Branch_183)
|
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
gradle {
|
|
||||||
tasks = "clean test"
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
vcs {
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
|
||||||
failOnMetricChange {
|
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
|
||||||
threshold = 20
|
|
||||||
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
|
||||||
comparison = BuildFailureOnMetric.MetricComparison.LESS
|
|
||||||
compareTo = build {
|
|
||||||
buildRule = lastSuccessful()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,61 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
|
||||||
|
|
||||||
sealed class TestsForIntelliJ_181_branch(private val version: String) : BuildType({
|
|
||||||
name = "Tests for IntelliJ $version"
|
|
||||||
|
|
||||||
params {
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", "IC-$version")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_javaVersion", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs {
|
|
||||||
root(_Self.vcsRoots.Branch_181)
|
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
gradle {
|
|
||||||
tasks = "clean test"
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
vcs {
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
|
||||||
failOnMetricChange {
|
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
|
||||||
threshold = 20
|
|
||||||
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
|
||||||
comparison = BuildFailureOnMetric.MetricComparison.LESS
|
|
||||||
compareTo = build {
|
|
||||||
buildRule = lastSuccessful()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
object TestsForIntelliJ20181 : TestsForIntelliJ_181_branch("2018.1")
|
|
||||||
object TestsForIntelliJ20182 : TestsForIntelliJ_181_branch("2018.2")
|
|
@ -1,63 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
|
||||||
|
|
||||||
sealed class TestsForIntelliJ_191_193_branch(private val version: String) : BuildType({
|
|
||||||
name = "Tests for IntelliJ $version"
|
|
||||||
|
|
||||||
params {
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_legacyNoJavaPlugin", "true")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", "IC-$version")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_javaVersion", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs {
|
|
||||||
root(_Self.vcsRoots.Branch_191_193)
|
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
gradle {
|
|
||||||
tasks = "clean test"
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
vcs {
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
|
||||||
failOnMetricChange {
|
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
|
||||||
threshold = 20
|
|
||||||
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
|
||||||
comparison = BuildFailureOnMetric.MetricComparison.LESS
|
|
||||||
compareTo = build {
|
|
||||||
buildRule = lastSuccessful()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
object TestsForIntelliJ20191 : TestsForIntelliJ_191_193_branch("2019.1")
|
|
||||||
object TestsForIntelliJ20192 : TestsForIntelliJ_191_193_branch("2019.2")
|
|
||||||
object TestsForIntelliJ20193 : TestsForIntelliJ_191_193_branch("2019.3")
|
|
@ -1,60 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
|
||||||
|
|
||||||
sealed class TestsForIntelliJ_201_branch(private val version: String) : BuildType({
|
|
||||||
name = "Tests for IntelliJ $version"
|
|
||||||
|
|
||||||
params {
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", "IC-$version")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_javaVersion", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs {
|
|
||||||
root(_Self.vcsRoots.Branch_201)
|
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
gradle {
|
|
||||||
tasks = "clean test"
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
vcs {
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
|
||||||
failOnMetricChange {
|
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
|
||||||
threshold = 20
|
|
||||||
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
|
||||||
comparison = BuildFailureOnMetric.MetricComparison.LESS
|
|
||||||
compareTo = build {
|
|
||||||
buildRule = lastSuccessful()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
object TestsForIntelliJ20201 : TestsForIntelliJ_201_branch("2020.1")
|
|
@ -1,60 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
|
||||||
|
|
||||||
sealed class TestsForIntelliJ_202_branch(private val version: String) : BuildType({
|
|
||||||
name = "Tests for IntelliJ $version"
|
|
||||||
|
|
||||||
params {
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", "IC-$version")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_javaVersion", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs {
|
|
||||||
root(_Self.vcsRoots.Branch_202)
|
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
gradle {
|
|
||||||
tasks = "clean test"
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
vcs {
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
|
||||||
failOnMetricChange {
|
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
|
||||||
threshold = 20
|
|
||||||
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
|
||||||
comparison = BuildFailureOnMetric.MetricComparison.LESS
|
|
||||||
compareTo = build {
|
|
||||||
buildRule = lastSuccessful()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
object TestsForIntelliJ20202 : TestsForIntelliJ_202_branch("2020.2")
|
|
@ -1,64 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
|
||||||
|
|
||||||
sealed class TestsForIntelliJ_203_212_branch(private val version: String) : BuildType({
|
|
||||||
name = "Tests for IntelliJ $version"
|
|
||||||
|
|
||||||
params {
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_legacyNoJavaPlugin", "true")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", "IC-$version")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_javaVersion", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs {
|
|
||||||
root(_Self.vcsRoots.Branch_203_212)
|
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
gradle {
|
|
||||||
tasks = "clean test"
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
vcs {
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
|
||||||
failOnMetricChange {
|
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
|
||||||
threshold = 20
|
|
||||||
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
|
||||||
comparison = BuildFailureOnMetric.MetricComparison.LESS
|
|
||||||
compareTo = build {
|
|
||||||
buildRule = lastSuccessful()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
object TestsForIntelliJ20212 : TestsForIntelliJ_203_212_branch("2021.2.2")
|
|
||||||
object TestsForIntelliJ20211 : TestsForIntelliJ_203_212_branch("2021.1")
|
|
||||||
object TestsForIntelliJ20203 : TestsForIntelliJ_203_212_branch("2020.3")
|
|
@ -1,62 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
|
||||||
|
|
||||||
sealed class TestsForIntelliJ_213_221_branch(private val version: String) : BuildType({
|
|
||||||
name = "Tests for IntelliJ $version"
|
|
||||||
|
|
||||||
params {
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_legacyNoJavaPlugin", "true")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", "IC-$version")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_javaVersion", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs {
|
|
||||||
root(_Self.vcsRoots.Branch_213_221)
|
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
gradle {
|
|
||||||
tasks = "clean test"
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
vcs {
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
requirements {
|
|
||||||
noLessThanVer("teamcity.agent.jvm.version", "1.8")
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
|
||||||
failOnMetricChange {
|
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
|
||||||
threshold = 20
|
|
||||||
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
|
||||||
comparison = BuildFailureOnMetric.MetricComparison.LESS
|
|
||||||
compareTo = build {
|
|
||||||
buildRule = lastSuccessful()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
object TestsForIntelliJ20213 : TestsForIntelliJ_213_221_branch("2021.3.2")
|
|
@ -1,57 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
|
||||||
|
|
||||||
sealed class TestsForIntelliJ_222_branch(private val version: String) : BuildType({
|
|
||||||
name = "Tests for IntelliJ $version"
|
|
||||||
|
|
||||||
params {
|
|
||||||
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_legacyNoJavaPlugin", "true")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_ideaVersion", "IC-$version")
|
|
||||||
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs {
|
|
||||||
root(_Self.vcsRoots.Branch_222)
|
|
||||||
|
|
||||||
checkoutMode = CheckoutMode.AUTO
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
gradle {
|
|
||||||
tasks = "clean test"
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
vcs {
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
|
||||||
failOnMetricChange {
|
|
||||||
metric = BuildFailureOnMetric.MetricType.TEST_COUNT
|
|
||||||
threshold = 20
|
|
||||||
units = BuildFailureOnMetric.MetricUnit.PERCENTS
|
|
||||||
comparison = BuildFailureOnMetric.MetricComparison.LESS
|
|
||||||
compareTo = build {
|
|
||||||
buildRule = lastSuccessful()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
object TestsForIntelliJ20222 : TestsForIntelliJ_222_branch("2022.2.3")
|
|
71
.teamcity/_Self/subprojects/GitHub.kt
vendored
71
.teamcity/_Self/subprojects/GitHub.kt
vendored
@ -1,11 +1,78 @@
|
|||||||
package _Self.subprojects
|
package _Self.subprojects
|
||||||
|
|
||||||
import _Self.buildTypes.GithubTests
|
import _Self.Constants
|
||||||
|
import _Self.IdeaVimBuildType
|
||||||
|
import _Self.vcsRoots.GitHubPullRequest
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.PullRequests
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.commitStatusPublisher
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.pullRequests
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.VcsTrigger
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
||||||
|
|
||||||
object GitHub : Project({
|
object GitHub : Project({
|
||||||
name = "Pull Requests checks"
|
name = "Pull Requests checks"
|
||||||
description = "Automatic checking of GitHub Pull Requests"
|
description = "Automatic checking of GitHub Pull Requests"
|
||||||
|
|
||||||
buildType(GithubTests)
|
buildType(Github("clean test", "Tests"))
|
||||||
|
})
|
||||||
|
|
||||||
|
class Github(command: String, desc: String) : IdeaVimBuildType({
|
||||||
|
name = "GitHub Pull Requests $desc"
|
||||||
|
description = "Test GitHub pull requests $desc"
|
||||||
|
|
||||||
|
params {
|
||||||
|
param("env.ORG_GRADLE_PROJECT_downloadIdeaSources", "false")
|
||||||
|
param("env.ORG_GRADLE_PROJECT_ideaVersion", Constants.GITHUB_TESTS)
|
||||||
|
param("env.ORG_GRADLE_PROJECT_instrumentPluginCode", "false")
|
||||||
|
}
|
||||||
|
|
||||||
|
vcs {
|
||||||
|
root(GitHubPullRequest)
|
||||||
|
|
||||||
|
checkoutMode = CheckoutMode.AUTO
|
||||||
|
branchFilter = """
|
||||||
|
+:*
|
||||||
|
-:<default>
|
||||||
|
""".trimIndent()
|
||||||
|
}
|
||||||
|
|
||||||
|
steps {
|
||||||
|
gradle {
|
||||||
|
tasks = command
|
||||||
|
buildFile = ""
|
||||||
|
enableStacktrace = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
triggers {
|
||||||
|
vcs {
|
||||||
|
quietPeriodMode = VcsTrigger.QuietPeriodMode.USE_DEFAULT
|
||||||
|
branchFilter = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
features {
|
||||||
|
pullRequests {
|
||||||
|
provider = github {
|
||||||
|
authType = token {
|
||||||
|
token = "credentialsJSON:90f3b439-6e91-40f7-a086-d4dd8e0ea9b8"
|
||||||
|
}
|
||||||
|
filterTargetBranch = "refs/heads/master"
|
||||||
|
filterAuthorRole = PullRequests.GitHubRoleFilter.EVERYBODY
|
||||||
|
}
|
||||||
|
}
|
||||||
|
commitStatusPublisher {
|
||||||
|
vcsRootExtId = "${GitHubPullRequest.id}"
|
||||||
|
publisher = github {
|
||||||
|
githubUrl = "https://api.github.com"
|
||||||
|
authType = personalToken {
|
||||||
|
token = "credentialsJSON:90f3b439-6e91-40f7-a086-d4dd8e0ea9b8"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
param("github_oauth_user", "AlexPl292")
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
40
.teamcity/_Self/subprojects/OldTests.kt
vendored
40
.teamcity/_Self/subprojects/OldTests.kt
vendored
@ -1,35 +1,23 @@
|
|||||||
package _Self.subprojects
|
package _Self.subprojects
|
||||||
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20181
|
import _Self.buildTypes.TestingBuildType
|
||||||
import _Self.buildTypes.TestsForIntelliJ20182
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20183
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20191
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20192
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20193
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20201
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20202
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20203
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20211
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20212
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20213
|
|
||||||
import _Self.buildTypes.TestsForIntelliJ20222
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
||||||
|
|
||||||
object OldTests : Project({
|
object OldTests : Project({
|
||||||
name = "Old IdeaVim tests"
|
name = "Old IdeaVim tests"
|
||||||
description = "Tests for older versions of IJ"
|
description = "Tests for older versions of IJ"
|
||||||
|
|
||||||
buildType(TestsForIntelliJ20181)
|
buildType(TestingBuildType("IC-2018.1", "181-182", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20182)
|
buildType(TestingBuildType("IC-2018.2", "181-182", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20183)
|
buildType(TestingBuildType("IC-2018.3", "183", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20191)
|
buildType(TestingBuildType("IC-2019.1", "191-193", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20192)
|
buildType(TestingBuildType("IC-2019.2", "191-193", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20193)
|
buildType(TestingBuildType("IC-2019.3", "191-193", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20201)
|
buildType(TestingBuildType("IC-2020.1", "201", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20202)
|
buildType(TestingBuildType("IC-2020.2", "202", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20203)
|
buildType(TestingBuildType("IC-2020.3", "203-212", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20211)
|
buildType(TestingBuildType("IC-2021.1", "203-212", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20212)
|
buildType(TestingBuildType("IC-2021.2.2", "203-212", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20213)
|
buildType(TestingBuildType("IC-2021.3.2", "213-221", javaVersion = "1.8", javaPlugin = false))
|
||||||
buildType(TestsForIntelliJ20222)
|
buildType(TestingBuildType("IC-2022.2.3", branch = "222", javaPlugin = false))
|
||||||
})
|
})
|
||||||
|
30
.teamcity/_Self/subprojects/Releases.kt
vendored
30
.teamcity/_Self/subprojects/Releases.kt
vendored
@ -1,15 +1,41 @@
|
|||||||
package _Self.subprojects
|
package _Self.subprojects
|
||||||
|
|
||||||
import _Self.buildTypes.Release
|
import _Self.buildTypes.PublishVimEngine
|
||||||
import _Self.buildTypes.ReleaseDev
|
import _Self.buildTypes.ReleaseDev
|
||||||
import _Self.buildTypes.ReleaseEap
|
import _Self.buildTypes.ReleaseEap
|
||||||
|
import _Self.buildTypes.ReleaseMajor
|
||||||
|
import _Self.buildTypes.ReleaseMinor
|
||||||
|
import _Self.buildTypes.ReleasePatch
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.ParameterDisplay
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
||||||
|
|
||||||
object Releases : Project({
|
object Releases : Project({
|
||||||
name = "IdeaVim releases"
|
name = "IdeaVim releases"
|
||||||
description = "Stable and EAP releases for IdeaVim"
|
description = "Stable and EAP releases for IdeaVim"
|
||||||
|
|
||||||
buildType(Release)
|
params {
|
||||||
|
password(
|
||||||
|
"env.CERTIFICATE_CHAIN",
|
||||||
|
"credentialsJSON:1bab4a88-10e7-4bf9-856c-e6253499dc95",
|
||||||
|
display = ParameterDisplay.HIDDEN
|
||||||
|
)
|
||||||
|
password(
|
||||||
|
"env.PRIVATE_KEY_PASSWORD",
|
||||||
|
"credentialsJSON:7c12c867-fe09-4a2f-884d-6fd0ec0a1e79",
|
||||||
|
display = ParameterDisplay.HIDDEN
|
||||||
|
)
|
||||||
|
password(
|
||||||
|
"env.PRIVATE_KEY",
|
||||||
|
"credentialsJSON:5d8b553d-fd7e-4347-abd2-51d8d0f2b3f7",
|
||||||
|
display = ParameterDisplay.HIDDEN
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildType(Release)
|
||||||
|
buildType(ReleaseMajor)
|
||||||
|
buildType(ReleaseMinor)
|
||||||
|
buildType(ReleasePatch)
|
||||||
buildType(ReleaseEap)
|
buildType(ReleaseEap)
|
||||||
buildType(ReleaseDev)
|
buildType(ReleaseDev)
|
||||||
|
buildType(PublishVimEngine)
|
||||||
})
|
})
|
||||||
|
12
.teamcity/_Self/vcsRoots/Branch_181.kt
vendored
12
.teamcity/_Self/vcsRoots/Branch_181.kt
vendored
@ -1,12 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.vcsRoots
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
|
|
||||||
|
|
||||||
object Branch_181 : GitVcsRoot({
|
|
||||||
name = "https://github.com/JetBrains/ideavim (branch 181)"
|
|
||||||
url = "https://github.com/JetBrains/ideavim.git"
|
|
||||||
branch = "181"
|
|
||||||
useMirrors = false
|
|
||||||
})
|
|
12
.teamcity/_Self/vcsRoots/Branch_183.kt
vendored
12
.teamcity/_Self/vcsRoots/Branch_183.kt
vendored
@ -1,12 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.vcsRoots
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
|
|
||||||
|
|
||||||
object Branch_183 : GitVcsRoot({
|
|
||||||
name = "https://github.com/JetBrains/ideavim (branch 183)"
|
|
||||||
url = "https://github.com/JetBrains/ideavim.git"
|
|
||||||
branch = "183"
|
|
||||||
useMirrors = false
|
|
||||||
})
|
|
12
.teamcity/_Self/vcsRoots/Branch_191_193.kt
vendored
12
.teamcity/_Self/vcsRoots/Branch_191_193.kt
vendored
@ -1,12 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.vcsRoots
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
|
|
||||||
|
|
||||||
object Branch_191_193 : GitVcsRoot({
|
|
||||||
name = "https://github.com/JetBrains/ideavim (branch 191-193)"
|
|
||||||
url = "https://github.com/JetBrains/ideavim.git"
|
|
||||||
branch = "191-193"
|
|
||||||
useMirrors = false
|
|
||||||
})
|
|
12
.teamcity/_Self/vcsRoots/Branch_201.kt
vendored
12
.teamcity/_Self/vcsRoots/Branch_201.kt
vendored
@ -1,12 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.vcsRoots
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
|
|
||||||
|
|
||||||
object Branch_201 : GitVcsRoot({
|
|
||||||
name = "https://github.com/JetBrains/ideavim (branch 201)"
|
|
||||||
url = "https://github.com/JetBrains/ideavim.git"
|
|
||||||
branch = "201"
|
|
||||||
useMirrors = false
|
|
||||||
})
|
|
12
.teamcity/_Self/vcsRoots/Branch_202.kt
vendored
12
.teamcity/_Self/vcsRoots/Branch_202.kt
vendored
@ -1,12 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.vcsRoots
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
|
|
||||||
|
|
||||||
object Branch_202 : GitVcsRoot({
|
|
||||||
name = "https://github.com/JetBrains/ideavim (branch 202)"
|
|
||||||
url = "https://github.com/JetBrains/ideavim.git"
|
|
||||||
branch = "202"
|
|
||||||
useMirrors = false
|
|
||||||
})
|
|
12
.teamcity/_Self/vcsRoots/Branch_203_212.kt
vendored
12
.teamcity/_Self/vcsRoots/Branch_203_212.kt
vendored
@ -1,12 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.vcsRoots
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
|
|
||||||
|
|
||||||
object Branch_203_212 : GitVcsRoot({
|
|
||||||
name = "https://github.com/JetBrains/ideavim (branch 203-212)"
|
|
||||||
url = "https://github.com/JetBrains/ideavim.git"
|
|
||||||
branch = "203-212"
|
|
||||||
useMirrors = false
|
|
||||||
})
|
|
12
.teamcity/_Self/vcsRoots/Branch_213_221.kt
vendored
12
.teamcity/_Self/vcsRoots/Branch_213_221.kt
vendored
@ -1,12 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.vcsRoots
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
|
|
||||||
|
|
||||||
object Branch_213_221 : GitVcsRoot({
|
|
||||||
id("HttpsGithubComJetBrainsIdeavimBranch213221")
|
|
||||||
name = "https://github.com/JetBrains/ideavim (branch 213-221)"
|
|
||||||
url = "https://github.com/JetBrains/ideavim.git"
|
|
||||||
branch = "213-221"
|
|
||||||
})
|
|
12
.teamcity/_Self/vcsRoots/Branch_222.kt
vendored
12
.teamcity/_Self/vcsRoots/Branch_222.kt
vendored
@ -1,12 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.vcsRoots
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
|
|
||||||
|
|
||||||
object Branch_222 : GitVcsRoot({
|
|
||||||
id("HttpsGithubComJetBrainsIdeavimBranch222")
|
|
||||||
name = "https://github.com/JetBrains/ideavim (branch 222)"
|
|
||||||
url = "https://github.com/JetBrains/ideavim.git"
|
|
||||||
branch = "222"
|
|
||||||
})
|
|
11
.teamcity/_Self/vcsRoots/Branch_Release.kt
vendored
11
.teamcity/_Self/vcsRoots/Branch_Release.kt
vendored
@ -1,11 +0,0 @@
|
|||||||
@file:Suppress("ClassName")
|
|
||||||
|
|
||||||
package _Self.vcsRoots
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
|
|
||||||
|
|
||||||
object Branch_Release : GitVcsRoot({
|
|
||||||
name = "https://github.com/JetBrains/ideavim (branch release)"
|
|
||||||
url = "https://github.com/JetBrains/ideavim.git"
|
|
||||||
branch = "release"
|
|
||||||
})
|
|
@ -7,6 +7,6 @@ object GitHubPullRequest : GitVcsRoot({
|
|||||||
url = "git@github.com:JetBrains/ideavim.git"
|
url = "git@github.com:JetBrains/ideavim.git"
|
||||||
branchSpec = "+:refs/(pull/*)/head"
|
branchSpec = "+:refs/(pull/*)/head"
|
||||||
authMethod = uploadedKey {
|
authMethod = uploadedKey {
|
||||||
uploadedKey = "Alex Plate TeamCity key"
|
uploadedKey = "IdeaVim ssh keys"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1,65 +0,0 @@
|
|||||||
package patches.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.ScriptBuildStep
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
|
|
||||||
|
|
||||||
/*
|
|
||||||
This patch script was generated by TeamCity on settings change in UI.
|
|
||||||
To apply the patch, change the buildType with id = 'IdeaVimCompatibility'
|
|
||||||
accordingly, and delete the patch script.
|
|
||||||
*/
|
|
||||||
changeBuildType(RelativeId("IdeaVimCompatibility")) {
|
|
||||||
vcs {
|
|
||||||
remove(DslContext.settingsRoot.id!!)
|
|
||||||
}
|
|
||||||
|
|
||||||
expectSteps {
|
|
||||||
script {
|
|
||||||
name = "Check"
|
|
||||||
scriptContent = """
|
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}org.jetbrains.IdeaVim-EasyMotion' [latest-IU] -team-city
|
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}io.github.mishkun.ideavimsneak' [latest-IU] -team-city
|
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}eu.theblob42.idea.whichkey' [latest-IU] -team-city
|
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}IdeaVimExtension' [latest-IU] -team-city
|
|
||||||
# Outdated java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}github.zgqq.intellij-enhance' [latest-IU] -team-city
|
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}com.github.copilot' [latest-IU] -team-city
|
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}com.github.dankinsoid.multicursor' [latest-IU] -team-city
|
|
||||||
java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}com.joshestein.ideavim-quickscope' [latest-IU] -team-city
|
|
||||||
""".trimIndent()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
update<ScriptBuildStep>(0) {
|
|
||||||
name = "Load Verifier"
|
|
||||||
clearConditions()
|
|
||||||
scriptContent = """
|
|
||||||
mkdir verifier1
|
|
||||||
curl -f -L -o verifier1/verifier-cli-dev-all-1.jar "https://packages.jetbrains.team/files/p/ideavim/plugin-verifier/verifier-cli-dev-all-1.jar"
|
|
||||||
""".trimIndent()
|
|
||||||
}
|
|
||||||
insert(1) {
|
|
||||||
script {
|
|
||||||
name = "Check"
|
|
||||||
scriptContent = """
|
|
||||||
# We use a custom build of verifier that downloads IdeaVim from dev channel
|
|
||||||
# To create a custom build: Download plugin verifier repo, add an if that switches to dev channel for IdeaVim repo
|
|
||||||
# At the moment it's com.jetbrains.pluginverifier.repository.repositories.marketplace.MarketplaceRepository#getLastCompatibleVersionOfPlugin
|
|
||||||
# Build using gradlew :intellij-plugin-verifier:verifier-cli:shadowJar
|
|
||||||
# Upload verifier-cli-dev-all.jar artifact to the repo in IdeaVim space repo
|
|
||||||
|
|
||||||
java --version
|
|
||||||
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}org.jetbrains.IdeaVim-EasyMotion' [latest-IU] -team-city
|
|
||||||
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}io.github.mishkun.ideavimsneak' [latest-IU] -team-city
|
|
||||||
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}eu.theblob42.idea.whichkey' [latest-IU] -team-city
|
|
||||||
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}IdeaVimExtension' [latest-IU] -team-city
|
|
||||||
# Outdated java -jar verifier/verifier-cli-dev-all.jar check-plugin '${'$'}github.zgqq.intellij-enhance' [latest-IU] -team-city
|
|
||||||
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}com.github.copilot' [latest-IU] -team-city
|
|
||||||
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}com.github.dankinsoid.multicursor' [latest-IU] -team-city
|
|
||||||
java -jar verifier1/verifier-cli-dev-all-1.jar check-plugin '${'$'}com.joshestein.ideavim-quickscope' [latest-IU] -team-city
|
|
||||||
""".trimIndent()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
20
.teamcity/patches/buildTypes/IdeaVimTests_Latest_EAP_With_Xorg.kts
vendored
Normal file
20
.teamcity/patches/buildTypes/IdeaVimTests_Latest_EAP_With_Xorg.kts
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package patches.buildTypes
|
||||||
|
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
|
||||||
|
|
||||||
|
/*
|
||||||
|
This patch script was generated by TeamCity on settings change in UI.
|
||||||
|
To apply the patch, change the buildType with id = 'IdeaVimTests_Latest_EAP_With_Xorg'
|
||||||
|
accordingly, and delete the patch script.
|
||||||
|
*/
|
||||||
|
changeBuildType(RelativeId("IdeaVimTests_Latest_EAP_With_Xorg")) {
|
||||||
|
requirements {
|
||||||
|
add {
|
||||||
|
matches("teamcity.agent.jvm.os.family", "Linux")
|
||||||
|
}
|
||||||
|
add {
|
||||||
|
exists("env.DISPLAY")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
101
.teamcity/patches/buildTypes/Qodana.kts
vendored
101
.teamcity/patches/buildTypes/Qodana.kts
vendored
@ -1,101 +0,0 @@
|
|||||||
package patches.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.Qodana
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.qodana
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnMetric
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnMetricChange
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.ScheduleTrigger
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.VcsTrigger
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
|
|
||||||
|
|
||||||
/*
|
|
||||||
This patch script was generated by TeamCity on settings change in UI.
|
|
||||||
To apply the patch, change the buildType with id = 'Qodana'
|
|
||||||
accordingly, and delete the patch script.
|
|
||||||
*/
|
|
||||||
changeBuildType(RelativeId("Qodana")) {
|
|
||||||
expectSteps {
|
|
||||||
qodana {
|
|
||||||
name = "Qodana"
|
|
||||||
linter = jvm {
|
|
||||||
version = Qodana.JVMVersion.LATEST
|
|
||||||
}
|
|
||||||
param("clonefinder-enable", "true")
|
|
||||||
param("clonefinder-languages", "Java")
|
|
||||||
param("clonefinder-languages-container", "Java Kotlin")
|
|
||||||
param("clonefinder-mode", "")
|
|
||||||
param("clonefinder-queried-project", "src")
|
|
||||||
param("clonefinder-reference-projects", "src")
|
|
||||||
param("licenseaudit-enable", "true")
|
|
||||||
param("namesAndTagsCustom", "repo.labs.intellij.net/static-analyser/qodana")
|
|
||||||
param("report-version", "")
|
|
||||||
param("yaml-configuration", "")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
insert(0) {
|
|
||||||
gradle {
|
|
||||||
name = "Generate grammar"
|
|
||||||
tasks = "generateGrammarSource"
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
update<Qodana>(1) {
|
|
||||||
clearConditions()
|
|
||||||
reportAsTests = true
|
|
||||||
additionalDockerArguments = "-e QODANA_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb24iOiIzUFZrQSIsInByb2plY3QiOiIzN1FlQSIsInRva2VuIjoiM0t2bXoifQ.uohp81tM7iAfvvB6k8faarfpV-OjusAaEbWQ8iNrOgs"
|
|
||||||
additionalQodanaArguments = "--baseline qodana.sarif.json"
|
|
||||||
param("clonefinder-languages", "")
|
|
||||||
param("collect-anonymous-statistics", "")
|
|
||||||
param("licenseaudit-enable", "")
|
|
||||||
param("clonefinder-languages-container", "")
|
|
||||||
param("clonefinder-queried-project", "")
|
|
||||||
param("clonefinder-enable", "")
|
|
||||||
param("clonefinder-reference-projects", "")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
val trigger1 = find<VcsTrigger> {
|
|
||||||
vcs {
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
trigger1.apply {
|
|
||||||
enabled = false
|
|
||||||
|
|
||||||
}
|
|
||||||
val trigger2 = find<ScheduleTrigger> {
|
|
||||||
schedule {
|
|
||||||
schedulingPolicy = weekly {
|
|
||||||
dayOfWeek = ScheduleTrigger.DAY.Tuesday
|
|
||||||
}
|
|
||||||
branchFilter = ""
|
|
||||||
triggerBuild = always()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
trigger2.apply {
|
|
||||||
enabled = false
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
failureConditions {
|
|
||||||
val feature1 = find<BuildFailureOnMetric> {
|
|
||||||
failOnMetricChange {
|
|
||||||
metric = BuildFailureOnMetric.MetricType.QODANA_TOTAL_PROBLEMS_COUNT
|
|
||||||
threshold = 0
|
|
||||||
units = BuildFailureOnMetric.MetricUnit.DEFAULT_UNIT
|
|
||||||
comparison = BuildFailureOnMetric.MetricComparison.MORE
|
|
||||||
compareTo = value()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
feature1.apply {
|
|
||||||
param("metricKey", "QodanaProblemsNew")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
48
.teamcity/patches/buildTypes/Release.kts
vendored
48
.teamcity/patches/buildTypes/Release.kts
vendored
@ -1,48 +0,0 @@
|
|||||||
package patches.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.GradleBuildStep
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
|
|
||||||
|
|
||||||
/*
|
|
||||||
This patch script was generated by TeamCity on settings change in UI.
|
|
||||||
To apply the patch, change the buildType with id = 'Release'
|
|
||||||
accordingly, and delete the patch script.
|
|
||||||
*/
|
|
||||||
changeBuildType(RelativeId("Release")) {
|
|
||||||
params {
|
|
||||||
add {
|
|
||||||
password("env.ORG_GRADLE_PROJECT_youtrackToken", "credentialsJSON:3cd3e867-282c-451f-b958-bc95d56a8450", display = ParameterDisplay.HIDDEN)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
expectSteps {
|
|
||||||
gradle {
|
|
||||||
tasks = "clean publishPlugin slackNotification"
|
|
||||||
buildFile = ""
|
|
||||||
enableStacktrace = true
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
update<GradleBuildStep>(0) {
|
|
||||||
clearConditions()
|
|
||||||
tasks = "clean publishPlugin"
|
|
||||||
}
|
|
||||||
insert(1) {
|
|
||||||
gradle {
|
|
||||||
name = "Run Integrations"
|
|
||||||
tasks = "releaseActions"
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
insert(2) {
|
|
||||||
gradle {
|
|
||||||
name = "Slack Notification"
|
|
||||||
tasks = "slackNotification"
|
|
||||||
param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
27
.teamcity/patches/buildTypes/ReleaseEap.kts
vendored
27
.teamcity/patches/buildTypes/ReleaseEap.kts
vendored
@ -1,27 +0,0 @@
|
|||||||
package patches.buildTypes
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.VcsLabeling
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.vcsLabeling
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
|
|
||||||
|
|
||||||
/*
|
|
||||||
This patch script was generated by TeamCity on settings change in UI.
|
|
||||||
To apply the patch, change the buildType with id = 'ReleaseEap'
|
|
||||||
accordingly, and delete the patch script.
|
|
||||||
*/
|
|
||||||
changeBuildType(RelativeId("ReleaseEap")) {
|
|
||||||
features {
|
|
||||||
val feature1 = find<VcsLabeling> {
|
|
||||||
vcsLabeling {
|
|
||||||
vcsRootId = "${DslContext.settingsRoot.id}"
|
|
||||||
labelingPattern = "%system.build.number%"
|
|
||||||
successfulOnly = true
|
|
||||||
branchFilter = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
feature1.apply {
|
|
||||||
successfulOnly = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
20
.teamcity/patches/buildTypes/ReleasePatch.kts
vendored
Normal file
20
.teamcity/patches/buildTypes/ReleasePatch.kts
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package patches.buildTypes
|
||||||
|
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
|
||||||
|
|
||||||
|
/*
|
||||||
|
This patch script was generated by TeamCity on settings change in UI.
|
||||||
|
To apply the patch, change the buildType with id = 'ReleasePatch'
|
||||||
|
accordingly, and delete the patch script.
|
||||||
|
*/
|
||||||
|
changeBuildType(RelativeId("ReleasePatch")) {
|
||||||
|
params {
|
||||||
|
expect {
|
||||||
|
password("env.ORG_GRADLE_PROJECT_youtrackToken", "credentialsJSON:3cd3e867-282c-451f-b958-bc95d56a8450", display = ParameterDisplay.HIDDEN)
|
||||||
|
}
|
||||||
|
update {
|
||||||
|
password("env.ORG_GRADLE_PROJECT_youtrackToken", "credentialsJSON:7bc0eb3a-b86a-4ebd-b622-d4ef12d7e1d3", display = ParameterDisplay.HIDDEN)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
50
.teamcity/patches/projects/_Self.kts
vendored
50
.teamcity/patches/projects/_Self.kts
vendored
@ -1,50 +0,0 @@
|
|||||||
package patches.projects
|
|
||||||
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.AmazonEC2CloudImage
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.amazonEC2CloudImage
|
|
||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
|
|
||||||
|
|
||||||
/*
|
|
||||||
This patch script was generated by TeamCity on settings change in UI.
|
|
||||||
To apply the patch, change the root project
|
|
||||||
accordingly, and delete the patch script.
|
|
||||||
*/
|
|
||||||
changeProject(DslContext.projectId) {
|
|
||||||
features {
|
|
||||||
val feature1 = find<AmazonEC2CloudImage> {
|
|
||||||
amazonEC2CloudImage {
|
|
||||||
id = "PROJECT_EXT_768"
|
|
||||||
profileId = "amazon-48"
|
|
||||||
agentPoolId = "41"
|
|
||||||
name = "BuildAgentsIdeaVim"
|
|
||||||
vpcSubnetId = "subnet-58839511"
|
|
||||||
keyPairName = ""
|
|
||||||
instanceType = "c5d.xlarge"
|
|
||||||
securityGroups = listOf("sg-eda08696", "sg-7332cf0f")
|
|
||||||
useSpotInstances = true
|
|
||||||
instanceTags = mapOf(
|
|
||||||
"project" to "idea-vim"
|
|
||||||
)
|
|
||||||
source = Source("ami-0fa17ce8238eb8868")
|
|
||||||
param("image-instances-limit", "")
|
|
||||||
param("spot-instance-price", "")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
feature1.apply {
|
|
||||||
profileId = "amazon-48"
|
|
||||||
agentPoolId = "41"
|
|
||||||
name = "BuildAgentsIdeaVim"
|
|
||||||
vpcSubnetId = "subnet-58839511"
|
|
||||||
keyPairName = ""
|
|
||||||
instanceType = "c5d.xlarge"
|
|
||||||
securityGroups = listOf("sg-eda08696", "sg-7332cf0f")
|
|
||||||
useSpotInstances = true
|
|
||||||
instanceTags = mapOf(
|
|
||||||
"project" to "idea-vim"
|
|
||||||
)
|
|
||||||
source = Source("ami-07c529efaddafcf86")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
2
.teamcity/pom.xml
vendored
2
.teamcity/pom.xml
vendored
@ -22,7 +22,7 @@
|
|||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>teamcity-server</id>
|
<id>teamcity-server</id>
|
||||||
<url>https://teamcity.jetbrains.com/app/dsl-plugins-repository</url>
|
<url>https://ideavim.teamcity.com/app/dsl-plugins-repository</url>
|
||||||
<snapshots>
|
<snapshots>
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
|
7
.teamcity/settings.kts
vendored
7
.teamcity/settings.kts
vendored
@ -1,4 +1,5 @@
|
|||||||
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
import jetbrains.buildServer.configs.kotlin.v2019_2.project
|
||||||
|
import jetbrains.buildServer.configs.kotlin.v2019_2.version
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The settings script is an entry point for defining a single
|
The settings script is an entry point for defining a single
|
||||||
@ -29,5 +30,5 @@ node (Plugins -> teamcity-configs -> teamcity-configs:generate),
|
|||||||
the 'Debug' option is available in the context menu for the task.
|
the 'Debug' option is available in the context menu for the task.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
version = "2020.2"
|
version = "2023.05"
|
||||||
project(_Self.Project)
|
project(_Self.Project)
|
||||||
|
28
AUTHORS.md
28
AUTHORS.md
@ -455,6 +455,34 @@ Contributors:
|
|||||||
[![icon][github]](https://github.com/adaext)
|
[![icon][github]](https://github.com/adaext)
|
||||||
|
|
||||||
Ada
|
Ada
|
||||||
|
* [![icon][mail]](mailto:dominic.palmer@outlook.com)
|
||||||
|
[![icon][github]](https://github.com/dominicpalmer)
|
||||||
|
|
||||||
|
Dominic Palmer
|
||||||
|
* [![icon][mail]](mailto:kawagh.dev@gmail.com)
|
||||||
|
[![icon][github]](https://github.com/kawagh)
|
||||||
|
|
||||||
|
kawagh
|
||||||
|
* [![icon][mail]](mailto:78074243+danisevas@users.noreply.github.com)
|
||||||
|
[![icon][github]](https://github.com/danisevas)
|
||||||
|
|
||||||
|
Dani Sevastianov
|
||||||
|
* [![icon][mail]](mailto:oskar.persson@polken.se)
|
||||||
|
[![icon][github]](https://github.com/oskarpersson/)
|
||||||
|
|
||||||
|
Oskar Persson
|
||||||
|
* [![icon][mail]](mailto:silence.m@hotmail.com)
|
||||||
|
[![icon][github]](https://github.com/Stzx)
|
||||||
|
|
||||||
|
Silence Tai
|
||||||
|
* [![icon][mail]](mailto:tszsumng90@gmail.com)
|
||||||
|
[![icon][github]](https://github.com/samabcde)
|
||||||
|
|
||||||
|
Sam Ng
|
||||||
|
* [![icon][mail]](mailto:ludwig.valda.vasquez@jetbrains.com)
|
||||||
|
[![icon][github]](https://github.com/ludwig-jb)
|
||||||
|
|
||||||
|
ludwig-jb
|
||||||
|
|
||||||
Previous contributors:
|
Previous contributors:
|
||||||
|
|
||||||
|
107
CHANGES.md
107
CHANGES.md
@ -25,6 +25,109 @@ usual beta standards.
|
|||||||
|
|
||||||
## To Be Released
|
## To Be Released
|
||||||
|
|
||||||
|
### Fixes:
|
||||||
|
* [VIM-3060](https://youtrack.jetbrains.com/issue/VIM-3060) Clipboard interaction stopped working
|
||||||
|
|
||||||
|
### Merged PRs:
|
||||||
|
* [697](https://github.com/JetBrains/ideavim/pull/697) by [Matt Ellis](https://github.com/citizenmatt): Support per-window "global" values for local-to-window options
|
||||||
|
|
||||||
|
## 2.5.0, 2023-09-01
|
||||||
|
|
||||||
|
### Fixes:
|
||||||
|
* [VIM-802](https://youtrack.jetbrains.com/issue/VIM-802) IdeaVim vs. Vim: discrepancies in using registers
|
||||||
|
* [VIM-2246](https://youtrack.jetbrains.com/issue/VIM-2246) X11/Xorg Primary selection register "* not supported
|
||||||
|
* [VIM-2313](https://youtrack.jetbrains.com/issue/VIM-2313)
|
||||||
|
[VIM-2318](https://youtrack.jetbrains.com/issue/VIM-2318)
|
||||||
|
[VIM-2666](https://youtrack.jetbrains.com/issue/VIM-2666)
|
||||||
|
[VIM-2951](https://youtrack.jetbrains.com/issue/VIM-2951)
|
||||||
|
IdeaVim works correctly in read-only editors like log or tests output.
|
||||||
|
|
||||||
|
### Merged PRs:
|
||||||
|
* [666](https://github.com/JetBrains/ideavim/pull/666) by [Matt Ellis](https://github.com/citizenmatt): Improve formatting of `:set` command output
|
||||||
|
* [667](https://github.com/JetBrains/ideavim/pull/667) by [Matt Ellis](https://github.com/citizenmatt): Eagerly initialise local options and introduce option scope
|
||||||
|
* [672](https://github.com/JetBrains/ideavim/pull/672) by [Matt Ellis](https://github.com/citizenmatt): Fix issue adding back hidden status bar widget
|
||||||
|
* [668](https://github.com/JetBrains/ideavim/pull/668) by [ludwig-jb](https://github.com/ludwig-jb): Handle unicode grapheme clusters
|
||||||
|
|
||||||
|
## 2.4.0, 2023-07-18
|
||||||
|
|
||||||
|
### Fixes:
|
||||||
|
* [VIM-2975](https://youtrack.jetbrains.com/issue/VIM-2975) Fix the offset after the rendered docs
|
||||||
|
* [VIM-2685](https://youtrack.jetbrains.com/issue/VIM-2685) Register command outputs different values for same registers
|
||||||
|
* [VIM-1294](https://youtrack.jetbrains.com/issue/VIM-1294) unvoluntary unfolding when using ideavim
|
||||||
|
* [VIM-2818](https://youtrack.jetbrains.com/issue/VIM-2818) Wrong caret position after multicaret paste
|
||||||
|
|
||||||
|
### Merged PRs:
|
||||||
|
* [662](https://github.com/JetBrains/ideavim/pull/662) by [ludwig-jb](https://github.com/ludwig-jb): Update VimMessages#updateStatusBar to accept VimEditor
|
||||||
|
* [659](https://github.com/JetBrains/ideavim/pull/659) by [Sam Ng](https://github.com/samabcde): VIM-2920 fix select block expansion when enclose boundary is line break
|
||||||
|
|
||||||
|
## 2.3.0, 2023-06-14
|
||||||
|
|
||||||
|
### Features:
|
||||||
|
* Matchit now supports PHP files | [VIM-2678](https://youtrack.jetbrains.com/issue/VIM-2678)
|
||||||
|
|
||||||
|
### Fixes:
|
||||||
|
* [VIM-2909](https://youtrack.jetbrains.com/issue/VIM-2909) Fix incorrect file detection while closing diff window
|
||||||
|
* [VIM-2912](https://youtrack.jetbrains.com/issue/VIM-2912) Fix focus after :q
|
||||||
|
* [VIM-2930](https://youtrack.jetbrains.com/issue/VIM-2930) vim-multiple-cursors + ReplaceWithRegister issue
|
||||||
|
* [VIM-2945](https://youtrack.jetbrains.com/issue/VIM-2945) %-movement mismatches braces
|
||||||
|
* [VIM-2953](https://youtrack.jetbrains.com/issue/VIM-2953) The previous fix for :q command caused weird behavior of tab closing
|
||||||
|
* [VIM-2964](https://youtrack.jetbrains.com/issue/VIM-2964) Fix an issue with leaking caret instance
|
||||||
|
|
||||||
|
### Merged PRs:
|
||||||
|
* [616](https://github.com/JetBrains/ideavim/pull/616) by [Matt Ellis](https://github.com/citizenmatt): Refactor/option delegated properties
|
||||||
|
* [626](https://github.com/JetBrains/ideavim/pull/626) by [Martin Yzeiri](https://github.com/myzeiri): Matchit bug fixes
|
||||||
|
* [619](https://github.com/JetBrains/ideavim/pull/619) by [Matt Ellis](https://github.com/citizenmatt): Fix some local options being used as global options
|
||||||
|
* [638](https://github.com/JetBrains/ideavim/pull/638) by [Sam Ng](https://github.com/samabcde): VIM-2615 add support to sort u command
|
||||||
|
* [646](https://github.com/JetBrains/ideavim/pull/646) by [Sam Ng](https://github.com/samabcde): VIM-1990 fix repeat delete find or till wrong MotionType
|
||||||
|
* [649](https://github.com/JetBrains/ideavim/pull/649) by [Martin Yzeiri](https://github.com/myzeiri): Add Matchit support for PHP
|
||||||
|
|
||||||
|
## 2.2.0, 2023-04-20
|
||||||
|
|
||||||
|
### Features:
|
||||||
|
* Now every secondary caret has its own marks. You can use marks and `gv` in multiple-caret mode now.
|
||||||
|
|
||||||
|
### Fixes:
|
||||||
|
* [VIM-1829](https://youtrack.jetbrains.com/issue/VIM-1829/key-combinations-are-not-working-in-visual-mode-IdeaVim) Fix marks when moving lines up/down
|
||||||
|
* [VIM-2130](https://youtrack.jetbrains.com/issue/VIM-2130/Vim-visual-mode-mapping-isnt-behaving-correctly-in-ideavim-it-leaves-visual-mode-after-its-executed) Fix marks when moving lines up/down
|
||||||
|
* [VIM-2428](https://youtrack.jetbrains.com/issue/VIM-2428/The-gv-command-doesnt-work) Fix marks when moving lines up/down
|
||||||
|
* [VIM-2686](https://youtrack.jetbrains.com/issue/VIM-2686/Multiple-caret-marks) Add individual mark storage for each secondary caret
|
||||||
|
* [VIM-2840](https://youtrack.jetbrains.com/issue/VIM-2840) Replace with register does not work with count
|
||||||
|
* [VIM-658](https://youtrack.jetbrains.com/issue/VIM-658) Stop macro on error
|
||||||
|
* [VIM-2787](https://youtrack.jetbrains.com/issue/VIM-2787) Save ideavimrc loading
|
||||||
|
* [VIM-2850](https://youtrack.jetbrains.com/issue/VIM-2850) Marks exception during IDE startup
|
||||||
|
* [VIM-2804](https://youtrack.jetbrains.com/issue/VIM-2804) IdeaVim multiple-cursors copy and paste issue when "set clipboard+=unnamed"
|
||||||
|
* [VIM-1768](https://youtrack.jetbrains.com/issue/VIM-1768) Delete surrounding character while in multiple cursors mode
|
||||||
|
* [VIM-282](https://youtrack.jetbrains.com/issue/VIM-282) Cursor line wrapping support (whichwrap)
|
||||||
|
* [VIM-2315](https://youtrack.jetbrains.com/issue/VIM-2315) Fix overlapping mappings execution
|
||||||
|
* [VIM-44](https://youtrack.jetbrains.com/issue/VIM-44) Unify navigation history between ideavim and idea
|
||||||
|
* [VIM-1735](https://youtrack.jetbrains.com/issue/VIM-1735) Fix enabling mulple carets after line selection
|
||||||
|
* [VIM-2881](https://youtrack.jetbrains.com/issue/VIM-2881) ReplaceRegister does no longer worker with MultiCursor
|
||||||
|
* [VIM-2244](https://youtrack.jetbrains.com/issue/VIM-2244) nnoremap mapping doesn't work correctly
|
||||||
|
* [VIM-2885](https://youtrack.jetbrains.com/issue/VIM-2885) "v:searchforward" does't work for IdeaVim
|
||||||
|
* [VIM-2733](https://youtrack.jetbrains.com/issue/VIM-2733) vim-surround emulation interacts incorrectly with unmatched quotes on previous lines
|
||||||
|
* [VIM-2884](https://youtrack.jetbrains.com/issue/VIM-2884) Moving multiple lines in visual mode is not working
|
||||||
|
* [VIM-2868](https://youtrack.jetbrains.com/issue/VIM-2868) Pasting in visual mode with P should not replace yank register like when pasting with p
|
||||||
|
* [VIM-2819](https://youtrack.jetbrains.com/issue/VIM-2819) Move command works incorrectly
|
||||||
|
* [VIM-795](https://youtrack.jetbrains.com/issue/VIM-795) Ctrl-w + h doesn't alway work (window navigation to the left window)
|
||||||
|
* [VIM-1551](https://youtrack.jetbrains.com/issue/VIM-1551) Surround: line surround not working
|
||||||
|
* [VIM-1746](https://youtrack.jetbrains.com/issue/VIM-1746) IdeaVim Surround removes unwanted characters
|
||||||
|
* [VIM-1750](https://youtrack.jetbrains.com/issue/VIM-1750) Surround with tag wrong position
|
||||||
|
* [VIM-2286](https://youtrack.jetbrains.com/issue/VIM-2286) Set surround not working for me as expected
|
||||||
|
* [VIM-2433](https://youtrack.jetbrains.com/issue/VIM-2433) Do not clear clipboard after inserting with ideaput
|
||||||
|
* [VIM-2896](https://youtrack.jetbrains.com/issue/VIM-2896) Correct ordering of handlers
|
||||||
|
* [VIM-2912](https://youtrack.jetbrains.com/issue/VIM-2912) Fix focus after :q
|
||||||
|
* [VIM-2909](https://youtrack.jetbrains.com/issue/VIM-2909) Fix incorrect file detection while closing diff window
|
||||||
|
|
||||||
|
### Merged PRs:
|
||||||
|
* [589](https://github.com/JetBrains/ideavim/pull/589) by [Matt Ellis](https://github.com/citizenmatt): Refactor option usage and introduce accessor API
|
||||||
|
* [604](https://github.com/JetBrains/ideavim/pull/604) by [Dominic Palmer](https://github.com/dominicpalmer): VIM-2773: Include empty lines in the selection when dragging backwards from EOL
|
||||||
|
* [603](https://github.com/JetBrains/ideavim/pull/603) by [Dominic Palmer](https://github.com/dominicpalmer): VIM-2773: Prevent viewport displacement on undo
|
||||||
|
* [602](https://github.com/JetBrains/ideavim/pull/602) by [Matt Ellis](https://github.com/citizenmatt): Refactor options service
|
||||||
|
* [612](https://github.com/JetBrains/ideavim/pull/612) by [Dani Sevastianov](https://github.com/danisevas): Fix quick-scope setup documentation
|
||||||
|
* [617](https://github.com/JetBrains/ideavim/pull/617) by [Silence Tai](https://github.com/Stzx): Fix dispose operation
|
||||||
|
|
||||||
|
## 2.1.0, 2023-01-10
|
||||||
|
|
||||||
### Features:
|
### Features:
|
||||||
* Add IdeaVim tutor. You can access it via the status bar icon.
|
* Add IdeaVim tutor. You can access it via the status bar icon.
|
||||||
|
|
||||||
@ -33,6 +136,7 @@ usual beta standards.
|
|||||||
* [VIM-758](https://youtrack.jetbrains.com/issue/VIM-758) Support d mappings
|
* [VIM-758](https://youtrack.jetbrains.com/issue/VIM-758) Support d mappings
|
||||||
* [VIM-2577](https://youtrack.jetbrains.com/issue/VIM-2577) Fix paste at the end of notebook cell
|
* [VIM-2577](https://youtrack.jetbrains.com/issue/VIM-2577) Fix paste at the end of notebook cell
|
||||||
* [VIM-2813](https://youtrack.jetbrains.com/issue/VIM-2813) Migrate update checker to VimStandalonePluginUpdateChecker
|
* [VIM-2813](https://youtrack.jetbrains.com/issue/VIM-2813) Migrate update checker to VimStandalonePluginUpdateChecker
|
||||||
|
* [VIM-2833](https://youtrack.jetbrains.com/issue/VIM-2833) Fix rare deadlock during put in insert mode from clipboard
|
||||||
|
|
||||||
### Merged PRs:
|
### Merged PRs:
|
||||||
* [558](https://github.com/JetBrains/ideavim/pull/558) by [Matt Ellis](https://github.com/citizenmatt): Fix incorrect normalising for trailing inlay
|
* [558](https://github.com/JetBrains/ideavim/pull/558) by [Matt Ellis](https://github.com/citizenmatt): Fix incorrect normalising for trailing inlay
|
||||||
@ -43,6 +147,9 @@ usual beta standards.
|
|||||||
* [561](https://github.com/JetBrains/ideavim/pull/561) by [Matt Ellis](https://github.com/citizenmatt): Fix incremental search not scrolling to current match
|
* [561](https://github.com/JetBrains/ideavim/pull/561) by [Matt Ellis](https://github.com/citizenmatt): Fix incremental search not scrolling to current match
|
||||||
* [559](https://github.com/JetBrains/ideavim/pull/559) by [Runinho](https://github.com/Runinho): Fix(VIM-2760) notebookCommandMode detection
|
* [559](https://github.com/JetBrains/ideavim/pull/559) by [Runinho](https://github.com/Runinho): Fix(VIM-2760) notebookCommandMode detection
|
||||||
* [579](https://github.com/JetBrains/ideavim/pull/579) by [Martin Yzeiri](https://github.com/myzeiri): VIM-2799: Add Matchit support for cshtml files
|
* [579](https://github.com/JetBrains/ideavim/pull/579) by [Martin Yzeiri](https://github.com/myzeiri): VIM-2799: Add Matchit support for cshtml files
|
||||||
|
* [580](https://github.com/JetBrains/ideavim/pull/580) by [Martin Yzeiri](https://github.com/myzeiri): Matchit: Add more Rider file types
|
||||||
|
* [583](https://github.com/JetBrains/ideavim/pull/583) by [Matt Ellis](https://github.com/citizenmatt): Introduce ScrollGroup
|
||||||
|
* [586](https://github.com/JetBrains/ideavim/pull/586) by [Patrick Elmquist](https://github.com/patrick-elmquist): Fixed number references in Tutor
|
||||||
|
|
||||||
## 2.0.0, 2022-11-01
|
## 2.0.0, 2022-11-01
|
||||||
|
|
||||||
|
@ -32,6 +32,10 @@ OK, ready to do some coding?
|
|||||||
Yoo hoo! You’re all set to begin contributing.
|
Yoo hoo! You’re all set to begin contributing.
|
||||||
We've prepared some useful configurations for you:
|
We've prepared some useful configurations for you:
|
||||||
|
|
||||||
|
- `Start IJ with IdeaVim`
|
||||||
|
- `IdeaVim tests`
|
||||||
|
- `IdeaVim full verification`
|
||||||
|
|
||||||
![Prepared configurations light](assets/contributing/configs-light.png#gh-light-mode-only)![Prepared configurations dark](assets/contributing/configs-dark.png#gh-dark-mode-only)
|
![Prepared configurations light](assets/contributing/configs-light.png#gh-light-mode-only)![Prepared configurations dark](assets/contributing/configs-dark.png#gh-dark-mode-only)
|
||||||
|
|
||||||
And here are useful gradle commands:
|
And here are useful gradle commands:
|
||||||
@ -87,9 +91,16 @@ Here are some guides for testing:
|
|||||||
|
|
||||||
1. Read the javadoc for the `@VimBehaviorDiffers` annotation in the source code.
|
1. Read the javadoc for the `@VimBehaviorDiffers` annotation in the source code.
|
||||||
|
|
||||||
2. Please avoid senseless text like "dhjkwaldjwa", "asdasdasd", "123 123 123 123", etc. Try to choose an example
|
2. Please avoid senseless text like "dhjkwaldjwa", "asdasdasd", "123 123 123 123", etc. Use a few lines of code or
|
||||||
text that is easy to read and understand what is wrong if the test fails. For example, take a few lines from your
|
the following template:
|
||||||
favorite poem, or use Vladimir Nabokov’s “A Discovery" if you don't have one.
|
```text
|
||||||
|
Lorem Ipsum
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet,
|
||||||
|
consectetur adipiscing elit
|
||||||
|
Sed in orci mauris.
|
||||||
|
Cras id tellus in ex imperdiet egestas.
|
||||||
|
```
|
||||||
|
|
||||||
3. Don't forget to test your functionality with line start, line end, file start, file end, empty line, multiple
|
3. Don't forget to test your functionality with line start, line end, file start, file end, empty line, multiple
|
||||||
carets, dollar motion, etc.
|
carets, dollar motion, etc.
|
||||||
@ -149,7 +160,7 @@ This is just terrible. [You know what to do](https://github.com/JetBrains/ideavi
|
|||||||
|
|
||||||
### Resources:
|
### Resources:
|
||||||
|
|
||||||
* [Continuous integration builds](https://teamcity.jetbrains.com/project.html?projectId=IdeaVim&guest=1)
|
* [Continuous integration builds](https://ideavim.teamcity.com/)
|
||||||
* [Bug tracker](https://youtrack.jetbrains.com/issues/VIM)
|
* [Bug tracker](https://youtrack.jetbrains.com/issues/VIM)
|
||||||
* [Chat on gitter](https://gitter.im/JetBrains/ideavim)
|
* [Chat on gitter](https://gitter.im/JetBrains/ideavim)
|
||||||
* [IdeaVim Channel](https://jb.gg/bi6zp7) on [JetBrains Server](https://discord.gg/jetbrains)
|
* [IdeaVim Channel](https://jb.gg/bi6zp7) on [JetBrains Server](https://discord.gg/jetbrains)
|
||||||
@ -157,5 +168,5 @@ This is just terrible. [You know what to do](https://github.com/JetBrains/ideavi
|
|||||||
* [Changelog](CHANGES.md)
|
* [Changelog](CHANGES.md)
|
||||||
* [Contributors listing](AUTHORS.md)
|
* [Contributors listing](AUTHORS.md)
|
||||||
|
|
||||||
[teamcity-build-status]: https://teamcity.jetbrains.com/viewType.html?buildTypeId=IdeaVim_TestsForIntelliJEAP&guest=1
|
[teamcity-build-status]: https://ideavim.teamcity.com/viewType.html?buildTypeId=Ideavim_IdeaVimTests_Latest_EAP&guest=1
|
||||||
[teamcity-build-status-svg]: https://teamcity.jetbrains.com/app/rest/builds/buildType:(id:IdeaVim_TestsForIntelliJEAP)/statusIcon.svg?guest=1
|
[teamcity-build-status-svg]: https://ideavim.teamcity.com/app/rest/builds/buildType:(id:Ideavim_IdeaVimTests_Latest_EAP)/statusIcon.svg?guest=1
|
||||||
|
23
README.md
23
README.md
@ -22,9 +22,10 @@ IdeaVim is a Vim engine for JetBrains IDEs.
|
|||||||
|
|
||||||
##### Resources:
|
##### Resources:
|
||||||
|
|
||||||
* [Plugin homepage](https://plugins.jetbrains.com/plugin/164-ideavim)
|
* [Plugin homepage](https://lp.jetbrains.com/ideavim/)
|
||||||
|
* [Plugin on Marketplace](https://plugins.jetbrains.com/plugin/164-ideavim)
|
||||||
* [Changelog](CHANGES.md)
|
* [Changelog](CHANGES.md)
|
||||||
* [Continuous integration builds](https://teamcity.jetbrains.com/project.html?projectId=IdeaVim&guest=1)
|
* [Continuous integration builds](https://ideavim.teamcity.com/)
|
||||||
|
|
||||||
#### Compatibility
|
#### Compatibility
|
||||||
|
|
||||||
@ -53,7 +54,7 @@ Would you like to try new features and fixes? Join the Early Access Program and
|
|||||||
receive EAP builds as updates!
|
receive EAP builds as updates!
|
||||||
|
|
||||||
1. Click the IdeaVim icon <img src="src/main/resources/META-INF/pluginIcon_noBorders.svg" width="16" height="16" alt="icon"/>
|
1. Click the IdeaVim icon <img src="src/main/resources/META-INF/pluginIcon_noBorders.svg" width="16" height="16" alt="icon"/>
|
||||||
in the status bar | `Early Access Program` | `Subscibe to EAP`
|
in the status bar | `Early Access Program` | `Subscribe to EAP`
|
||||||
|
|
||||||
|
|
||||||
Or subscribe to EAP updates manually:
|
Or subscribe to EAP updates manually:
|
||||||
@ -203,7 +204,7 @@ Put your settings to `$XDG_CONFIG_HOME/ideavim/ideavimrc` file.
|
|||||||
IdeaVim Plugins
|
IdeaVim Plugins
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
See [doc/emulated-plugins.md](https://github.com/JetBrains/ideavim/wiki/IdeaVim-Plugins)
|
See [doc/IdeaVim Plugins.md](https://github.com/JetBrains/ideavim/wiki/IdeaVim-Plugins)
|
||||||
|
|
||||||
Executing IDE Actions
|
Executing IDE Actions
|
||||||
---------------------
|
---------------------
|
||||||
@ -212,14 +213,14 @@ IdeaVim adds various commands for listing and executing arbitrary IDE actions as
|
|||||||
Ex commands or via `:map` command mappings:
|
Ex commands or via `:map` command mappings:
|
||||||
|
|
||||||
### Executing actions:
|
### Executing actions:
|
||||||
* `:action {action_id}`
|
|
||||||
* Execute an action by `{action_id}`. Works from Ex command line.
|
|
||||||
* Please don't use `:action` in mappings. Use `<Action>` instead.
|
|
||||||
* `<Action>({action_id})`
|
* `<Action>({action_id})`
|
||||||
* For the mappings you can use a special `<Action>` keyword. Don't forget the parentheses.
|
* For the mappings you can use a special `<Action>` keyword. Don't forget the parentheses.
|
||||||
* E.g. `map gh <Action>(ShowErrorDescription)` <- execute hover on `gh`.
|
* E.g. `map gh <Action>(ShowErrorDescription)` <- execute hover on `gh`.
|
||||||
* :warning: Mappings to `<Action>` don't work with `noremap`.
|
* :warning: Mappings to `<Action>` don't work with `noremap`.
|
||||||
If you know the case when it's needed, please [let us know](https://github.com/JetBrains/ideavim#contact-maintainers).
|
If you know the case when it's needed, please [let us know](https://github.com/JetBrains/ideavim#contact-maintainers).
|
||||||
|
* `:action {action_id}`
|
||||||
|
* Execute an action by `{action_id}`. Works from Ex command line.
|
||||||
|
* Please don't use `:action` in mappings. Use `<Action>` instead.
|
||||||
|
|
||||||
### Finding action ids:
|
### Finding action ids:
|
||||||
|
|
||||||
@ -352,9 +353,12 @@ is the source of this knowledge.
|
|||||||
[Here](https://github.com/vim/vim/blob/759d81549c1340185f0d92524c563bb37697ea88/src/normal.c#L5365)
|
[Here](https://github.com/vim/vim/blob/759d81549c1340185f0d92524c563bb37697ea88/src/normal.c#L5365)
|
||||||
is the full list of synonyms.
|
is the full list of synonyms.
|
||||||
|
|
||||||
|
- You can read a [post](https://github.com/JetBrains/ideavim/wiki/how-many-modes-does-vim-have) about how modes work in Vim and IdeaVim.
|
||||||
|
|
||||||
- Have you ever used `U` after `dd`? [Don't even try](https://github.com/vim/vim/blob/759d81549c1340185f0d92524c563bb37697ea88/src/ops.c#L874).
|
- Have you ever used `U` after `dd`? [Don't even try](https://github.com/vim/vim/blob/759d81549c1340185f0d92524c563bb37697ea88/src/ops.c#L874).
|
||||||
|
|
||||||
- A lot of variables that refers to visual mode start with two uppercase letters, e.g. `VIsual_active`. [Some examples](https://github.com/vim/vim/blob/master/src/normal.c#L17).
|
- A lot of variables that refer to visual mode start with two uppercase letters, e.g. `VIsual_active`. [Some examples](https://github.com/vim/vim/blob/master/src/normal.c#L17).
|
||||||
|
As mentioned [here](https://vi.stackexchange.com/a/42885/12441), this was done this way to avoid the clash with X11.
|
||||||
|
|
||||||
- Other [strange things](https://github.com/vim/vim/blob/759d81549c1340185f0d92524c563bb37697ea88/src/ex_docmd.c#L1845) from vi:
|
- Other [strange things](https://github.com/vim/vim/blob/759d81549c1340185f0d92524c563bb37697ea88/src/ex_docmd.c#L1845) from vi:
|
||||||
* ":3" jumps to line 3
|
* ":3" jumps to line 3
|
||||||
@ -363,6 +367,9 @@ is the full list of synonyms.
|
|||||||
|
|
||||||
- Vim script doesn't skip white space before comma. `F(a ,b)` => E475.
|
- Vim script doesn't skip white space before comma. `F(a ,b)` => E475.
|
||||||
|
|
||||||
|
- Fancy constants for [undolevels](https://vimhelp.org/options.txt.html#%27undolevels%27):
|
||||||
|
> The local value is set to -123456 when the global value is to be used.
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
IdeaVim project is licensed under MIT license except the following parts of it:
|
IdeaVim project is licensed under MIT license except the following parts of it:
|
||||||
|
|
||||||
File [RegExp.kt](src/main/java/com/maddyhome/idea/vim/regexp/RegExp.kt) is licensed under Vim License.
|
* File [RegExp.kt](src/main/java/com/maddyhome/idea/vim/regexp/RegExp.kt) is licensed under Vim License.
|
||||||
File [Tutor.kt](src/main/java/com/maddyhome/idea/vim/ui/Tutor.kt) is licensed under Vim License.
|
* File [ScrollViewHelper.kt](com/maddyhome/idea/vim/helper/ScrollViewHelper.kt) is licensed under Vim License.
|
||||||
|
* File [Tutor.kt](src/main/java/com/maddyhome/idea/vim/ui/Tutor.kt) is licensed under Vim License.
|
||||||
|
|
||||||
```
|
```
|
||||||
VIM LICENSE
|
VIM LICENSE
|
||||||
@ -27,8 +28,8 @@ II) It is allowed to distribute a modified (or extended) version of Vim,
|
|||||||
maintainer will do with your changes and under what license they
|
maintainer will do with your changes and under what license they
|
||||||
will be distributed is negotiable. If there has been no negotiation
|
will be distributed is negotiable. If there has been no negotiation
|
||||||
then this license, or a later version, also applies to your changes.
|
then this license, or a later version, also applies to your changes.
|
||||||
The current maintainer is Bram Moolenaar <Bram@vim.org>. If this
|
The current maintainers are listed here: https://github.com/orgs/vim/people.
|
||||||
changes it will be announced in appropriate places (most likely
|
If this changes it will be announced in appropriate places (most likely
|
||||||
vim.sf.net, www.vim.org and/or comp.editors). When it is completely
|
vim.sf.net, www.vim.org and/or comp.editors). When it is completely
|
||||||
impossible to contact the maintainer, the obligation to send him
|
impossible to contact the maintainer, the obligation to send him
|
||||||
your changes ceases. Once the maintainer has confirmed that he has
|
your changes ceases. Once the maintainer has confirmed that he has
|
||||||
|
42
annotation-processors/.gitignore
vendored
Normal file
42
annotation-processors/.gitignore
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
.gradle
|
||||||
|
build/
|
||||||
|
!gradle/wrapper/gradle-wrapper.jar
|
||||||
|
!**/src/main/**/build/
|
||||||
|
!**/src/test/**/build/
|
||||||
|
|
||||||
|
### IntelliJ IDEA ###
|
||||||
|
.idea/modules.xml
|
||||||
|
.idea/jarRepositories.xml
|
||||||
|
.idea/compiler.xml
|
||||||
|
.idea/libraries/
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
out/
|
||||||
|
!**/src/main/**/out/
|
||||||
|
!**/src/test/**/out/
|
||||||
|
|
||||||
|
### Eclipse ###
|
||||||
|
.apt_generated
|
||||||
|
.classpath
|
||||||
|
.factorypath
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
.springBeans
|
||||||
|
.sts4-cache
|
||||||
|
bin/
|
||||||
|
!**/src/main/**/bin/
|
||||||
|
!**/src/test/**/bin/
|
||||||
|
|
||||||
|
### NetBeans ###
|
||||||
|
/nbproject/private/
|
||||||
|
/nbbuild/
|
||||||
|
/dist/
|
||||||
|
/nbdist/
|
||||||
|
/.nb-gradle/
|
||||||
|
|
||||||
|
### VS Code ###
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
### Mac OS ###
|
||||||
|
.DS_Store
|
23
annotation-processors/build.gradle.kts
Normal file
23
annotation-processors/build.gradle.kts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
kotlin("jvm")
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "com.intellij"
|
||||||
|
version = "SNAPSHOT"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compileOnly("com.google.devtools.ksp:symbol-processing-api:1.9.10-1.0.13")
|
||||||
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.6.0")
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.intellij.vim.annotations
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [command] is formatted the same way it is formatted in Vim (with optional part in square brackets).
|
||||||
|
*/
|
||||||
|
@Target(AnnotationTarget.CLASS)
|
||||||
|
@Retention(AnnotationRetention.SOURCE)
|
||||||
|
annotation class ExCommand(val command: String)
|
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.intellij.vim.annotations
|
||||||
|
|
||||||
|
@Target(AnnotationTarget.CLASS)
|
||||||
|
@Retention(AnnotationRetention.SOURCE)
|
||||||
|
annotation class VimscriptFunction(val name: String)
|
@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.intellij.vim.processors
|
||||||
|
|
||||||
|
import com.google.devtools.ksp.KspExperimental
|
||||||
|
import com.google.devtools.ksp.getAnnotationsByType
|
||||||
|
import com.google.devtools.ksp.processing.Resolver
|
||||||
|
import com.google.devtools.ksp.processing.SymbolProcessor
|
||||||
|
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
|
||||||
|
import com.google.devtools.ksp.symbol.KSAnnotated
|
||||||
|
import com.google.devtools.ksp.symbol.KSClassDeclaration
|
||||||
|
import com.google.devtools.ksp.symbol.KSFile
|
||||||
|
import com.google.devtools.ksp.symbol.KSVisitorVoid
|
||||||
|
import com.intellij.vim.annotations.ExCommand
|
||||||
|
import kotlinx.serialization.encodeToString
|
||||||
|
import kotlinx.serialization.json.Json
|
||||||
|
import kotlin.io.path.Path
|
||||||
|
import kotlin.io.path.writeText
|
||||||
|
|
||||||
|
class ExCommandProcessor(private val environment: SymbolProcessorEnvironment): SymbolProcessor {
|
||||||
|
private val visitor = EXCommandVisitor()
|
||||||
|
private val commandToClass = mutableMapOf<String, String>()
|
||||||
|
|
||||||
|
private val json = Json { prettyPrint = true }
|
||||||
|
|
||||||
|
override fun process(resolver: Resolver): List<KSAnnotated> {
|
||||||
|
resolver.getAllFiles().forEach { it.accept(visitor, Unit) }
|
||||||
|
val filePath = Path(environment.options["generated_directory"]!!, environment.options["ex_commands_file"]!!)
|
||||||
|
val fileContent = json.encodeToString(commandToClass)
|
||||||
|
filePath.writeText(fileContent)
|
||||||
|
|
||||||
|
return emptyList()
|
||||||
|
}
|
||||||
|
|
||||||
|
private inner class EXCommandVisitor : KSVisitorVoid() {
|
||||||
|
@OptIn(KspExperimental::class)
|
||||||
|
override fun visitClassDeclaration(classDeclaration: KSClassDeclaration, data: Unit) {
|
||||||
|
val exCommandAnnotation = classDeclaration.getAnnotationsByType(ExCommand::class).firstOrNull() ?: return
|
||||||
|
val commands = exCommandAnnotation.command.split(",")
|
||||||
|
for (command in commands) {
|
||||||
|
commandToClass[command] = classDeclaration.qualifiedName!!.asString()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun visitFile(file: KSFile, data: Unit) {
|
||||||
|
file.declarations.forEach { it.accept(this, Unit) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.intellij.vim.processors
|
||||||
|
|
||||||
|
import com.google.devtools.ksp.KspExperimental
|
||||||
|
import com.google.devtools.ksp.getAnnotationsByType
|
||||||
|
import com.google.devtools.ksp.processing.Resolver
|
||||||
|
import com.google.devtools.ksp.processing.SymbolProcessor
|
||||||
|
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
|
||||||
|
import com.google.devtools.ksp.symbol.KSAnnotated
|
||||||
|
import com.google.devtools.ksp.symbol.KSClassDeclaration
|
||||||
|
import com.google.devtools.ksp.symbol.KSFile
|
||||||
|
import com.google.devtools.ksp.symbol.KSVisitorVoid
|
||||||
|
import com.intellij.vim.annotations.VimscriptFunction
|
||||||
|
import kotlinx.serialization.encodeToString
|
||||||
|
import kotlinx.serialization.json.Json
|
||||||
|
import kotlin.io.path.Path
|
||||||
|
import kotlin.io.path.writeText
|
||||||
|
|
||||||
|
class VimscriptFunctionProcessor(private val environment: SymbolProcessorEnvironment) : SymbolProcessor {
|
||||||
|
private val visitor = VimscriptFunctionVisitor()
|
||||||
|
private val nameToClass = mutableMapOf<String, String>()
|
||||||
|
|
||||||
|
private val json = Json { prettyPrint = true }
|
||||||
|
|
||||||
|
override fun process(resolver: Resolver): List<KSAnnotated> {
|
||||||
|
resolver.getAllFiles().forEach { it.accept(visitor, Unit) }
|
||||||
|
val filePath = Path(environment.options["generated_directory"]!!, environment.options["vimscript_functions_file"]!!)
|
||||||
|
val fileContent = json.encodeToString(nameToClass)
|
||||||
|
filePath.writeText(fileContent)
|
||||||
|
|
||||||
|
return emptyList()
|
||||||
|
}
|
||||||
|
|
||||||
|
// todo inspection that annotation is properly used on proper classes
|
||||||
|
private inner class VimscriptFunctionVisitor : KSVisitorVoid() {
|
||||||
|
@OptIn(KspExperimental::class)
|
||||||
|
override fun visitClassDeclaration(classDeclaration: KSClassDeclaration, data: Unit) {
|
||||||
|
val vimscriptFunctionAnnotation = classDeclaration.getAnnotationsByType(VimscriptFunction::class).firstOrNull() ?: return
|
||||||
|
val functionName = vimscriptFunctionAnnotation.name
|
||||||
|
nameToClass[functionName] = classDeclaration.qualifiedName!!.asString()
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun visitFile(file: KSFile, data: Unit) {
|
||||||
|
file.declarations.forEach { it.accept(this, Unit) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.intellij.vim.providers
|
||||||
|
|
||||||
|
import com.google.devtools.ksp.processing.SymbolProcessor
|
||||||
|
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
|
||||||
|
import com.google.devtools.ksp.processing.SymbolProcessorProvider
|
||||||
|
import com.intellij.vim.processors.ExCommandProcessor
|
||||||
|
|
||||||
|
class ExCommandProcessorProvider : SymbolProcessorProvider {
|
||||||
|
override fun create(environment: SymbolProcessorEnvironment): SymbolProcessor {
|
||||||
|
return ExCommandProcessor(environment)
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.intellij.vim.providers
|
||||||
|
|
||||||
|
import com.google.devtools.ksp.processing.SymbolProcessor
|
||||||
|
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
|
||||||
|
import com.google.devtools.ksp.processing.SymbolProcessorProvider
|
||||||
|
import com.intellij.vim.processors.VimscriptFunctionProcessor
|
||||||
|
|
||||||
|
public class VimscriptFunctionProcessorProvider : SymbolProcessorProvider {
|
||||||
|
override fun create(environment: SymbolProcessorEnvironment): SymbolProcessor {
|
||||||
|
return VimscriptFunctionProcessor(environment)
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
com.intellij.vim.providers.VimscriptFunctionProcessorProvider
|
||||||
|
com.intellij.vim.providers.ExCommandProcessorProvider
|
150
build.gradle.kts
150
build.gradle.kts
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2022 The IdeaVim authors
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by an MIT-style
|
* Use of this source code is governed by an MIT-style
|
||||||
* license that can be found in the LICENSE.txt file or at
|
* license that can be found in the LICENSE.txt file or at
|
||||||
@ -31,6 +31,9 @@ import kotlinx.serialization.json.putJsonObject
|
|||||||
import org.eclipse.jgit.api.Git
|
import org.eclipse.jgit.api.Git
|
||||||
import org.eclipse.jgit.lib.RepositoryBuilder
|
import org.eclipse.jgit.lib.RepositoryBuilder
|
||||||
import org.intellij.markdown.ast.getTextInNode
|
import org.intellij.markdown.ast.getTextInNode
|
||||||
|
import org.jetbrains.changelog.Changelog
|
||||||
|
import org.jetbrains.changelog.exceptions.MissingVersionException
|
||||||
|
import org.kohsuke.github.GHUser
|
||||||
import java.net.HttpURLConnection
|
import java.net.HttpURLConnection
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
|
|
||||||
@ -41,16 +44,19 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20")
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21")
|
||||||
classpath("com.github.AlexPl292:mark-down-to-slack:1.1.2")
|
classpath("com.github.AlexPl292:mark-down-to-slack:1.1.2")
|
||||||
classpath("org.eclipse.jgit:org.eclipse.jgit:6.1.0.202203080745-r")
|
classpath("org.eclipse.jgit:org.eclipse.jgit:6.6.0.202305301015-r")
|
||||||
|
|
||||||
|
// This is needed for jgit to connect to ssh
|
||||||
|
classpath("org.eclipse.jgit:org.eclipse.jgit.ssh.apache:6.7.0.202309050840-r")
|
||||||
classpath("org.kohsuke:github-api:1.305")
|
classpath("org.kohsuke:github-api:1.305")
|
||||||
|
|
||||||
classpath("io.ktor:ktor-client-core:2.1.3")
|
classpath("io.ktor:ktor-client-core:2.3.4")
|
||||||
classpath("io.ktor:ktor-client-cio:2.1.3")
|
classpath("io.ktor:ktor-client-cio:2.3.4")
|
||||||
classpath("io.ktor:ktor-client-auth:2.1.3")
|
classpath("io.ktor:ktor-client-auth:2.3.4")
|
||||||
classpath("io.ktor:ktor-client-content-negotiation:2.1.3")
|
classpath("io.ktor:ktor-client-content-negotiation:2.3.4")
|
||||||
classpath("io.ktor:ktor-serialization-kotlinx-json:2.1.3")
|
classpath("io.ktor:ktor-serialization-kotlinx-json:2.3.4")
|
||||||
|
|
||||||
// This comes from the changelog plugin
|
// This comes from the changelog plugin
|
||||||
// classpath("org.jetbrains:markdown:0.3.1")
|
// classpath("org.jetbrains:markdown:0.3.1")
|
||||||
@ -60,17 +66,31 @@ buildscript {
|
|||||||
plugins {
|
plugins {
|
||||||
antlr
|
antlr
|
||||||
java
|
java
|
||||||
kotlin("jvm") version "1.7.20"
|
kotlin("jvm") version "1.8.21"
|
||||||
application
|
application
|
||||||
|
|
||||||
id("org.jetbrains.intellij") version "1.11.1-SNAPSHOT"
|
id("org.jetbrains.intellij") version "1.15.0"
|
||||||
id("org.jetbrains.changelog") version "1.3.1"
|
id("org.jetbrains.changelog") version "2.2.0"
|
||||||
|
|
||||||
// ktlint linter - read more: https://github.com/JLLeitschuh/ktlint-gradle
|
// ktlint linter - read more: https://github.com/JLLeitschuh/ktlint-gradle
|
||||||
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
|
// id("org.jlleitschuh.gradle.ktlint") version "11.3.1"
|
||||||
|
|
||||||
id("org.jetbrains.kotlinx.kover") version "0.6.1"
|
id("org.jetbrains.kotlinx.kover") version "0.6.1"
|
||||||
id("com.dorongold.task-tree") version "2.1.0"
|
id("com.dorongold.task-tree") version "2.1.1"
|
||||||
|
|
||||||
|
id("com.google.devtools.ksp") version "1.8.21-1.0.11"
|
||||||
|
}
|
||||||
|
|
||||||
|
ksp {
|
||||||
|
arg("generated_directory", "$projectDir/src/main/resources")
|
||||||
|
arg("vimscript_functions_file", "intellij_vimscript_functions.json")
|
||||||
|
arg("ex_commands_file", "intellij_ex_commands.json")
|
||||||
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
// tasks.named("kspKotlin").configure { dependsOn("clean") }
|
||||||
|
tasks.named("kspKotlin").configure { dependsOn("generateGrammarSource") }
|
||||||
|
tasks.named("kspTestKotlin").configure { enabled = false }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Import variables from gradle.properties file
|
// Import variables from gradle.properties file
|
||||||
@ -94,8 +114,8 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
|
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
|
||||||
compileOnly("org.jetbrains:annotations:23.0.0")
|
compileOnly("org.jetbrains:annotations:24.0.1")
|
||||||
|
|
||||||
// https://mvnrepository.com/artifact/com.ensarsarajcic.neovim.java/neovim-api
|
// https://mvnrepository.com/artifact/com.ensarsarajcic.neovim.java/neovim-api
|
||||||
testImplementation("com.ensarsarajcic.neovim.java:neovim-api:0.2.3")
|
testImplementation("com.ensarsarajcic.neovim.java:neovim-api:0.2.3")
|
||||||
@ -105,7 +125,7 @@ dependencies {
|
|||||||
testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlinVersion")
|
testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlinVersion")
|
||||||
|
|
||||||
// https://mvnrepository.com/artifact/org.mockito.kotlin/mockito-kotlin
|
// https://mvnrepository.com/artifact/org.mockito.kotlin/mockito-kotlin
|
||||||
testImplementation("org.mockito.kotlin:mockito-kotlin:4.0.0")
|
testImplementation("org.mockito.kotlin:mockito-kotlin:5.1.0")
|
||||||
|
|
||||||
testImplementation("com.intellij.remoterobot:remote-robot:$remoteRobotVersion")
|
testImplementation("com.intellij.remoterobot:remote-robot:$remoteRobotVersion")
|
||||||
testImplementation("com.intellij.remoterobot:remote-fixtures:$remoteRobotVersion")
|
testImplementation("com.intellij.remoterobot:remote-fixtures:$remoteRobotVersion")
|
||||||
@ -115,7 +135,14 @@ dependencies {
|
|||||||
|
|
||||||
api(project(":vim-engine"))
|
api(project(":vim-engine"))
|
||||||
|
|
||||||
testApi("com.squareup.okhttp3:okhttp:4.10.0")
|
ksp(project(":annotation-processors"))
|
||||||
|
compileOnly(project(":annotation-processors"))
|
||||||
|
|
||||||
|
testApi("com.squareup.okhttp3:okhttp:4.11.0")
|
||||||
|
|
||||||
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
|
||||||
|
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.10.0")
|
||||||
|
testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
@ -132,16 +159,19 @@ tasks.register<Test>("testWithNeovim") {
|
|||||||
exclude("/ui/**")
|
exclude("/ui/**")
|
||||||
exclude("**/longrunning/**")
|
exclude("**/longrunning/**")
|
||||||
exclude("**/propertybased/**")
|
exclude("**/propertybased/**")
|
||||||
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<Test>("testPropertyBased") {
|
tasks.register<Test>("testPropertyBased") {
|
||||||
group = "verification"
|
group = "verification"
|
||||||
// include("**/propertybased/**")
|
// include("**/propertybased/**")
|
||||||
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<Test>("testLongRunning") {
|
tasks.register<Test>("testLongRunning") {
|
||||||
group = "verification"
|
group = "verification"
|
||||||
// include("**/longrunning/**")
|
// include("**/longrunning/**")
|
||||||
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
@ -214,6 +244,7 @@ java {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
explicitApi()
|
||||||
jvmToolchain {
|
jvmToolchain {
|
||||||
languageVersion.set(JavaLanguageVersion.of(javaVersion))
|
languageVersion.set(JavaLanguageVersion.of(javaVersion))
|
||||||
}
|
}
|
||||||
@ -238,7 +269,7 @@ intellij {
|
|||||||
instrumentCode.set(instrumentPluginCode.toBoolean())
|
instrumentCode.set(instrumentPluginCode.toBoolean())
|
||||||
intellijRepository.set("https://www.jetbrains.com/intellij-repository")
|
intellijRepository.set("https://www.jetbrains.com/intellij-repository")
|
||||||
// Yaml is only used for testing. It's part of the IdeaIC distribution, but needs to be included as a reference
|
// Yaml is only used for testing. It's part of the IdeaIC distribution, but needs to be included as a reference
|
||||||
plugins.set(listOf("java", "AceJump:3.8.4", "yaml"))
|
plugins.set(listOf("java", "AceJump:3.8.11", "yaml"/*, "Pythonid:231.8109.2", "com.intellij.clion-swift:231.8109.4"*/))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
@ -251,6 +282,12 @@ tasks {
|
|||||||
token.set(publishToken)
|
token.set(publishToken)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
signPlugin {
|
||||||
|
certificateChain.set(providers.environmentVariable("CERTIFICATE_CHAIN"))
|
||||||
|
privateKey.set(providers.environmentVariable("PRIVATE_KEY"))
|
||||||
|
password.set(providers.environmentVariable("PRIVATE_KEY_PASSWORD"))
|
||||||
|
}
|
||||||
|
|
||||||
runIdeForUiTests {
|
runIdeForUiTests {
|
||||||
systemProperty("robot-server.port", "8082")
|
systemProperty("robot-server.port", "8082")
|
||||||
systemProperty("ide.mac.message.dialogs.as.sheets", "false")
|
systemProperty("ide.mac.message.dialogs.as.sheets", "false")
|
||||||
@ -284,10 +321,16 @@ tasks {
|
|||||||
from(sourceSets.main.get().java) {
|
from(sourceSets.main.get().java) {
|
||||||
include("**/com/maddyhome/idea/vim/**/*.java")
|
include("**/com/maddyhome/idea/vim/**/*.java")
|
||||||
}
|
}
|
||||||
|
from(project(":vim-engine").sourceSets.main.get().java) {
|
||||||
|
include("**/com/maddyhome/idea/vim/**/*.java")
|
||||||
|
}
|
||||||
// Kotlin sources
|
// Kotlin sources
|
||||||
from(kotlin.sourceSets.main.get().kotlin) {
|
from(kotlin.sourceSets.main.get().kotlin) {
|
||||||
include("**/com/maddyhome/idea/vim/**/*.kt")
|
include("**/com/maddyhome/idea/vim/**/*.kt")
|
||||||
}
|
}
|
||||||
|
from(project(":vim-engine").kotlin.sourceSets.main.get().kotlin) {
|
||||||
|
include("**/com/maddyhome/idea/vim/**/*.kt")
|
||||||
|
}
|
||||||
destinationDirectory.set(layout.buildDirectory.dir("libs"))
|
destinationDirectory.set(layout.buildDirectory.dir("libs"))
|
||||||
archiveClassifier.set("src")
|
archiveClassifier.set("src")
|
||||||
}
|
}
|
||||||
@ -297,23 +340,41 @@ tasks {
|
|||||||
from(createOpenApiSourceJar) { into("lib/src") }
|
from(createOpenApiSourceJar) { into("lib/src") }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val pluginVersion = version
|
||||||
// Don't forget to update plugin.xml
|
// Don't forget to update plugin.xml
|
||||||
patchPluginXml {
|
patchPluginXml {
|
||||||
sinceBuild.set("223.7401.7")
|
sinceBuild.set("231.7515.13")
|
||||||
|
|
||||||
|
// Get the latest available change notes from the changelog file
|
||||||
|
changeNotes.set(
|
||||||
|
provider {
|
||||||
|
with(changelog) {
|
||||||
|
val log = try {
|
||||||
|
getUnreleased()
|
||||||
|
} catch (e: MissingVersionException) {
|
||||||
|
getOrNull(pluginVersion.toString()) ?: getLatest()
|
||||||
|
}
|
||||||
|
renderItem(
|
||||||
|
log,
|
||||||
|
org.jetbrains.changelog.Changelog.OutputType.HTML,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Linting
|
// --- Linting
|
||||||
|
|
||||||
ktlint {
|
//ktlint {
|
||||||
disabledRules.add("no-wildcard-imports")
|
// version.set("0.48.2")
|
||||||
version.set("0.43.0")
|
//}
|
||||||
}
|
|
||||||
|
|
||||||
// --- Tests
|
// --- Tests
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
test {
|
test {
|
||||||
|
useJUnitPlatform()
|
||||||
exclude("**/propertybased/**")
|
exclude("**/propertybased/**")
|
||||||
exclude("**/longrunning/**")
|
exclude("**/longrunning/**")
|
||||||
exclude("/ui/**")
|
exclude("/ui/**")
|
||||||
@ -322,6 +383,7 @@ tasks {
|
|||||||
|
|
||||||
tasks.register<Test>("testUi") {
|
tasks.register<Test>("testUi") {
|
||||||
group = "verification"
|
group = "verification"
|
||||||
|
useJUnitPlatform()
|
||||||
include("/ui/**")
|
include("/ui/**")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -337,14 +399,6 @@ changelog {
|
|||||||
// version = "0.60"
|
// version = "0.60"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("getUnreleasedChangelog") {
|
|
||||||
group = "changelog"
|
|
||||||
doLast {
|
|
||||||
val log = changelog.getUnreleased().toHTML()
|
|
||||||
println(log)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// --- Kover
|
// --- Kover
|
||||||
|
|
||||||
koverMerged {
|
koverMerged {
|
||||||
@ -369,7 +423,8 @@ tasks.register("slackNotification") {
|
|||||||
println("Slack Url is not defined")
|
println("Slack Url is not defined")
|
||||||
return@doLast
|
return@doLast
|
||||||
}
|
}
|
||||||
val changeLog = changelog.getLatest().toText()
|
|
||||||
|
val changeLog = changelog.renderItem(changelog.getLatest(), Changelog.OutputType.PLAIN_TEXT)
|
||||||
val slackDown = DownParser(changeLog, true).toSlack().toString()
|
val slackDown = DownParser(changeLog, true).toSlack().toString()
|
||||||
|
|
||||||
//language=JSON
|
//language=JSON
|
||||||
@ -468,7 +523,7 @@ tasks.register("releaseActions") {
|
|||||||
if (tickets.isNotEmpty()) {
|
if (tickets.isNotEmpty()) {
|
||||||
println("Updating statuses for tickets: $tickets")
|
println("Updating statuses for tickets: $tickets")
|
||||||
setYoutrackStatus(tickets, "Fixed")
|
setYoutrackStatus(tickets, "Fixed")
|
||||||
if (!checkReleaseVersionExists(version.toString())) {
|
if (getVersionIdByName(version.toString()) != null) {
|
||||||
addReleaseToYoutrack(version.toString())
|
addReleaseToYoutrack(version.toString())
|
||||||
} else {
|
} else {
|
||||||
println("Version $version is already exists in YouTrack")
|
println("Version $version is already exists in YouTrack")
|
||||||
@ -502,14 +557,17 @@ tasks.register("integrationsTest") {
|
|||||||
setYoutrackStatus(listOf(testTicketId), prevStatus)
|
setYoutrackStatus(listOf(testTicketId), prevStatus)
|
||||||
|
|
||||||
// Check adding and removing release
|
// Check adding and removing release
|
||||||
guard(!checkReleaseVersionExists("TEST_VERSION")) { "Test version already exists" }
|
val existingVersionId = getVersionIdByName("TEST_VERSION")
|
||||||
|
if (existingVersionId != null) {
|
||||||
|
deleteVersionById(existingVersionId)
|
||||||
|
}
|
||||||
val versionId = addReleaseToYoutrack("TEST_VERSION")
|
val versionId = addReleaseToYoutrack("TEST_VERSION")
|
||||||
guard(checkReleaseVersionExists("TEST_VERSION")) { "Test version isn't created" }
|
guard(getVersionIdByName("TEST_VERSION") != null) { "Test version isn't created" }
|
||||||
setYoutrackStatus(listOf(testTicketId), "Fixed")
|
setYoutrackStatus(listOf(testTicketId), "Fixed")
|
||||||
setYoutrackFixVersion(listOf(testTicketId), "TEST_VERSION")
|
setYoutrackFixVersion(listOf(testTicketId), "TEST_VERSION")
|
||||||
deleteVersionById(versionId)
|
deleteVersionById(versionId)
|
||||||
setYoutrackStatus(listOf(testTicketId), "Open")
|
setYoutrackStatus(listOf(testTicketId), "Open")
|
||||||
guard(!checkReleaseVersionExists("TEST_VERSION")) { "Test version isn't deleted" }
|
guard(getVersionIdByName("TEST_VERSION") == null) { "Test version isn't deleted" }
|
||||||
|
|
||||||
updateMergedPr(525)
|
updateMergedPr(525)
|
||||||
// TODO: test Ticket parsing
|
// TODO: test Ticket parsing
|
||||||
@ -560,12 +618,12 @@ fun addReleaseToYoutrack(name: String): String {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun checkReleaseVersionExists(name: String): Boolean {
|
fun getVersionIdByName(name: String): String? {
|
||||||
val client = httpClient()
|
val client = httpClient()
|
||||||
|
|
||||||
return runBlocking {
|
return runBlocking {
|
||||||
val response = client.get("https://youtrack.jetbrains.com/api/admin/projects/$vimProjectId/customFields/$fixVersionsFieldId/bundle/values?fields=id,name&query=$name")
|
val response = client.get("https://youtrack.jetbrains.com/api/admin/projects/$vimProjectId/customFields/$fixVersionsFieldId/bundle/values?fields=id,name&query=$name")
|
||||||
response.body<JsonArray>().isNotEmpty()
|
response.body<JsonArray>().singleOrNull()?.jsonObject?.get("id")?.jsonPrimitive?.content
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -739,7 +797,15 @@ fun updateAuthors(uncheckedEmails: Set<String>) {
|
|||||||
println("Email '$email' is from dependabot. Skip it")
|
println("Email '$email' is from dependabot. Skip it")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
val user = ghRepository.getCommit(hash).author
|
if ("tcuser" in email) {
|
||||||
|
println("Email '$email' is from teamcity. Skip it")
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
val user: GHUser? = ghRepository.getCommit(hash).author
|
||||||
|
if (user == null) {
|
||||||
|
println("Cant get the commit author. Email: $email. Commit: $hash")
|
||||||
|
continue
|
||||||
|
}
|
||||||
val htmlUrl = user.htmlUrl.toString()
|
val htmlUrl = user.htmlUrl.toString()
|
||||||
val name = user.name ?: user.login
|
val name = user.name ?: user.login
|
||||||
users.add(Author(name, htmlUrl, email))
|
users.add(Author(name, htmlUrl, email))
|
||||||
@ -757,7 +823,7 @@ fun updateAuthors(uncheckedEmails: Set<String>) {
|
|||||||
for (child in contributorsSection.children) {
|
for (child in contributorsSection.children) {
|
||||||
if (child.children.size > 1) {
|
if (child.children.size > 1) {
|
||||||
existingEmails.add(
|
existingEmails.add(
|
||||||
child.children[1].children[0].children[2].children[2].getTextInNode(authors).toString()
|
child.children[1].children[0].children[2].children[2].getTextInNode(authors).toString(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -902,7 +968,7 @@ fun changes(): List<Change> {
|
|||||||
val newFixes = mutableListOf<Change>()
|
val newFixes = mutableListOf<Change>()
|
||||||
println("Last successful commit: $lastSuccessfulCommit")
|
println("Last successful commit: $lastSuccessfulCommit")
|
||||||
println("Amount of commits: ${messages.size}")
|
println("Amount of commits: ${messages.size}")
|
||||||
println("Start emails processing")
|
println("Start changes processing")
|
||||||
for (message in messages) {
|
for (message in messages) {
|
||||||
println("Processing '$message'...")
|
println("Processing '$message'...")
|
||||||
val lowercaseMessage = message.toLowerCase()
|
val lowercaseMessage = message.toLowerCase()
|
||||||
@ -936,7 +1002,7 @@ fun httpClient(): HttpClient {
|
|||||||
Json {
|
Json {
|
||||||
prettyPrint = true
|
prettyPrint = true
|
||||||
isLenient = true
|
isLenient = true
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<baseline version="1.0">
|
|
||||||
<file name="src/main/java/com/maddyhome/idea/vim/listener/RiderSpecifics.kt">
|
|
||||||
<error line="1" column="1" source="filename" />
|
|
||||||
</file>
|
|
||||||
</baseline>
|
|
@ -1,7 +1,7 @@
|
|||||||
IdeaVim Plugins
|
IdeaVim Plugins
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
IdeaVim plugins work like the original Vim plugins. If you want to turn of any of them, you have to enable it via this command in your `~/.ideavimrc`:
|
IdeaVim plugins work like the original Vim plugins. If you want to turn any of them on, you have to enable it via this command in your `~/.ideavimrc`:
|
||||||
|
|
||||||
```
|
```
|
||||||
Plug '<plugin-github-reference>'
|
Plug '<plugin-github-reference>'
|
||||||
@ -388,7 +388,7 @@ https://github.com/adelarsq/vim-matchit/blob/master/doc/matchit.txt
|
|||||||
Original plugin: [quick-scope](https://github.com/unblevable/quick-scope).
|
Original plugin: [quick-scope](https://github.com/unblevable/quick-scope).
|
||||||
|
|
||||||
### Setup:
|
### Setup:
|
||||||
- Install [IdeaVim-sneak](https://plugins.jetbrains.com/plugin/15348-ideavim-sneak) plugin.
|
- Install [IdeaVim-Quickscope](https://plugins.jetbrains.com/plugin/19417-ideavim-quickscope) plugin.
|
||||||
- Add the following command to `~/.ideavimrc`: `set quickscope`
|
- Add the following command to `~/.ideavimrc`: `set quickscope`
|
||||||
|
|
||||||
### Instructions
|
### Instructions
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
IdeaVim supports the NERDTree plugin. Update your `~/.ideavimrc` to turn it on:
|
IdeaVim supports the NERDTree plugin. Update your `~/.ideavimrc` to turn it on:
|
||||||
```vim
|
```vim
|
||||||
Plug 'preservim/nerdtree`
|
Plug 'preservim/nerdtree'
|
||||||
```
|
```
|
||||||
or
|
or
|
||||||
```vim
|
```vim
|
||||||
@ -15,7 +15,7 @@ Use `set noNERDTree` to disable this extension.
|
|||||||
|
|
||||||
```vim
|
```vim
|
||||||
set NERDTree
|
set NERDTree
|
||||||
Plug 'preservim/nerdtree`
|
Plug 'preservim/nerdtree'
|
||||||
Plug 'https://github.com/preservim/nerdtree'
|
Plug 'https://github.com/preservim/nerdtree'
|
||||||
Plug 'https://github.com/scrooloose/nerdtree'
|
Plug 'https://github.com/scrooloose/nerdtree'
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
|
BIN
doc/images/action-id-notification.png
Normal file
BIN
doc/images/action-id-notification.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
13
doc/marketplace-plugin-example.md
Normal file
13
doc/marketplace-plugin-example.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Using actions from external plugins is the same, as tracking and reusing any IDE action. As an example, let's create a mapping that will toggle case of the word under caret using the CamelCase plugin when you press `<leader>t`.
|
||||||
|
|
||||||
|
**Steps to make this mapping**
|
||||||
|
|
||||||
|
1. Install the plugin via Marketplace
|
||||||
|
2. Enable action tracking. You can enable it by one of the following ways:
|
||||||
|
* Execute `:set trackactionids` ex command or just `:set tai`
|
||||||
|
* Open the "Find actions" window by pressing `Ctrl-Shift-A` and search for "Track Action Ids" to find the toggle that enables and disables action tracking
|
||||||
|
3. Execute the plugin action the way intended by plugin author "See Edit menu or use ⇧ + ⌥ + U / Shift + Alt + U" or just find the `Toggle Camel Case` action in the "Find actions" window (`Ctrl-Shift-A`). If you action tracking is on, you will see this notification in your right bottom corner:
|
||||||
|
|
||||||
|
<img alt="Notification" src="images/action-id-notification.png"/>
|
||||||
|
4. Copy the action id from the notification to create the following mapping in your .ideavimrc
|
||||||
|
```map <leader>t <Action>(de.netnexus.CamelCasePlugin.ToggleCamelCase)```
|
43
doc/posts/how-many-modes-does-vim-have.md
Normal file
43
doc/posts/how-many-modes-does-vim-have.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# How Many Modes Does Vim Have?
|
||||||
|
|
||||||
|
When asked this question, many people will say three: Normal, Visual, and Insert. Some will have heard about One-command mode, while others will know about the two types of modes that are available during selection: Visual and Select. The official documentation, however, identifies seven main modes and seven additional ones (search for `:h vim-mode` [here](https://vimhelp.org/intro.txt.html#vim-modes)). What’s more, the documentation for the built-in `mode()` function states that up to 35 different mode values may be returned (search for `:h mode()` [here](https://vimhelp.org/builtin.txt.html#mode%28%29)).
|
||||||
|
|
||||||
|
|
||||||
|
## Modes in Vim
|
||||||
|
|
||||||
|
The `mode()` function returns a string. Each character in this string represents a mode or its sub-mode. For example:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* n Normal
|
||||||
|
* i Insert
|
||||||
|
* no Operator-pending
|
||||||
|
* niI Normal using |i_CTRL-O| in |Insert-mode|
|
||||||
|
* niR Normal using |i_CTRL-O| in |Replace-mode|
|
||||||
|
|
||||||
|
The documentation for the function states that, if you check the mode, you should only compare by prefix rather than the whole string. Moreover, the list of modes can be extended.
|
||||||
|
|
||||||
|
During the development of IdeaVim, it turned out that even 35 modes were not enough to represent the full range of Vim states. For example, the `mode()` function does not cover the state when we enter Operator-pending mode after One-command mode. This information is important because we have to know that Vim should enter Insert mode after this particular Operator-pending command is finished.
|
||||||
|
|
||||||
|
All of the above shows that Vim itself doesn’t have a strictly bounded set of modes. Rather, the list can be extended with new ones, and the regular modes, like Visual or Normal, may have “submodes” that specify certain details of Vim’s state.
|
||||||
|
|
||||||
|
Inside the code, the state of Vim is defined by the `State` variable in the `globals.h` file ([source](https://github.com/neovim/neovim/blob/master/src/nvim/globals.h#L637)). This is an integer variable with a [list of possible values](https://github.com/neovim/neovim/blob/master/src/nvim/vim.h#L47). However, this list does not define the full range of modes, and other variables from the `globals.h `file store information about specifics. For example, <code>[restart_edit](https://github.com/neovim/neovim/blob/389165cac1596bf602c50904a789722d65ceaac7/src/nvim/globals.h#L670)</code> is set when we enter One-command mode, and <code>[VIsual_active](https://github.com/neovim/neovim/blob/389165cac1596bf602c50904a789722d65ceaac7/src/nvim/globals.h#L535)</code> defines whether Visual mode is enabled (check out [this README](https://github.com/JetBrains/ideavim#some-facts-about-vim) to learn why this variable starts with two uppercase letters). Meanwhile, the <code>[get_real_mode](https://github.com/neovim/neovim/blob/389165cac1596bf602c50904a789722d65ceaac7/src/nvim/state.c#L154)</code> function helps determine whether Vim is in Select or Visual mode.
|
||||||
|
|
||||||
|
The `mode()` function, which delegates to <code>[get_mode()](https://github.com/neovim/neovim/blob/389165cac1596bf602c50904a789722d65ceaac7/src/nvim/state.c#L173)</code>, is a big set of “if” commands that collect the information from different variables and combine them into a string representation.
|
||||||
|
|
||||||
|
|
||||||
|
## Modes in IdeaVim
|
||||||
|
|
||||||
|
For a long time, IdeaVim used a stack to store the information about the current mode:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* The default value is Normal mode
|
||||||
|
* When entering Insert mode, an “INSERT” command is added to the stack
|
||||||
|
* If the user presses _Ctrl-O_ to enter One-time command mode, a “NORMAL” command is added to the stack.
|
||||||
|
* On _Esc_, the top value of the stack is popped, activating Insert mode.
|
||||||
|
* On the second _Esc_, the top value is popped again, deactivating Insert mode.
|
||||||
|
|
||||||
|
This solution worked well for a long time. However, it sometimes led to programming mistakes, as this structure allowed incorrect states when the stack contained a senseless mix of modes. For the most part, these downsides were manageable, and we were generally able to keep the state consistent. Nevertheless, we recently decided to perform a refactoring.
|
||||||
|
|
||||||
|
Now IdeaVim has a single `Mode` interface ([source](https://github.com/JetBrains/ideavim/blob/98886cb269752a5f989c90b1da90fc624b3a381c/vim-engine/src/main/kotlin/com/maddyhome/idea/vim/state/mode/Mode.kt#L27)) that represents the mode and all possible states of it. This solution is type-safe and helps developers of IdeaVim avoid setting illegal states.
|
38
doc/support-guide.md
Normal file
38
doc/support-guide.md
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Support Guide
|
||||||
|
|
||||||
|
This document is created to help our support team.
|
||||||
|
It's not intended to be read by the users as it brings to value to them.
|
||||||
|
|
||||||
|
## Support channels
|
||||||
|
|
||||||
|
- Main, YouTrack: https://youtrack.jetbrains.com/issues/VIM
|
||||||
|
- [Chat on gitter](https://gitter.im/JetBrains/ideavim)
|
||||||
|
- [IdeaVim Channel](https://jb.gg/bi6zp7) on [JetBrains Server](https://discord.gg/jetbrains)
|
||||||
|
- Rare: GitHub discussions - https://github.com/JetBrains/ideavim/discussions
|
||||||
|
|
||||||
|
## Expectations from the support
|
||||||
|
|
||||||
|
- Process incoming requests from all the support channels
|
||||||
|
- Request for an additional information
|
||||||
|
- Help users to answer simple cases
|
||||||
|
- Try to reproduce the issue
|
||||||
|
- Try to help user if this is misconfiguration / incorrect usage
|
||||||
|
- Pass actual bugs to the dev team
|
||||||
|
- Update "State" and "Area" fields
|
||||||
|
|
||||||
|
## YouTrack statuses
|
||||||
|
|
||||||
|
IdeaVim has multiple YouTrack statuses, main are:
|
||||||
|
|
||||||
|
- Submitted: issue is created by user, but not processed by our team. This is the default status for new tickets.
|
||||||
|
- Open: issues is processed by out team, what means that the issues is reproduced and accepted
|
||||||
|
- Waiting For Reply: Waiting for further information from the user. These issues are automatically closed if the
|
||||||
|
user doesn't reply in 30 days.
|
||||||
|
- Ready To Release: Bug is fixed, but not yet released
|
||||||
|
- Fixed: Bug is fixed
|
||||||
|
- Closed: Issue is closed by some other reason
|
||||||
|
|
||||||
|
# ~.ideavimrc file
|
||||||
|
|
||||||
|
`~/.ideavimrc` is the file that is used for IdeaVim configuration. It may affect behaviour of the program,
|
||||||
|
so it makes sense to additionally request this file in case the issues can't be reproduced.
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright 2003-2022 The IdeaVim authors
|
# Copyright 2003-2023 The IdeaVim authors
|
||||||
#
|
#
|
||||||
# Use of this source code is governed by an MIT-style
|
# Use of this source code is governed by an MIT-style
|
||||||
# license that can be found in the LICENSE.txt file or at
|
# license that can be found in the LICENSE.txt file or at
|
||||||
@ -8,17 +8,16 @@
|
|||||||
|
|
||||||
# suppress inspection "UnusedProperty" for whole file
|
# suppress inspection "UnusedProperty" for whole file
|
||||||
|
|
||||||
ideaVersion=LATEST-EAP-SNAPSHOT
|
ideaVersion=2023.2.1
|
||||||
downloadIdeaSources=true
|
downloadIdeaSources=true
|
||||||
instrumentPluginCode=true
|
instrumentPluginCode=true
|
||||||
version=SNAPSHOT
|
version=chylex-16
|
||||||
javaVersion=17
|
javaVersion=17
|
||||||
remoteRobotVersion=0.11.15
|
remoteRobotVersion=0.11.17
|
||||||
antlrVersion=4.10.1
|
antlrVersion=4.10.1
|
||||||
|
|
||||||
|
|
||||||
# Please don't forget to update kotlin version in buildscript section
|
# Please don't forget to update kotlin version in buildscript section
|
||||||
kotlinVersion=1.7.20
|
kotlinVersion=1.8.21
|
||||||
publishToken=token
|
publishToken=token
|
||||||
publishChannels=eap
|
publishChannels=eap
|
||||||
|
|
||||||
@ -29,4 +28,7 @@ youtrackToken=
|
|||||||
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
||||||
|
|
||||||
# Disable warning from gradle-intellij-plugin. Kotlin stdlib is included as compileOnly, so the warning is unnecessary
|
# Disable warning from gradle-intellij-plugin. Kotlin stdlib is included as compileOnly, so the warning is unnecessary
|
||||||
kotlin.stdlib.default.dependency=false
|
kotlin.stdlib.default.dependency=false
|
||||||
|
|
||||||
|
# Disable incremental annotation processing
|
||||||
|
ksp.incremental=false
|
||||||
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
3
gradle/wrapper/gradle-wrapper.properties
vendored
3
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
|
||||||
|
networkTimeout=10000
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
25
gradlew
vendored
25
gradlew
vendored
@ -55,7 +55,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
@ -80,13 +80,10 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
# This is normally unused
|
||||||
|
# shellcheck disable=SC2034
|
||||||
APP_NAME="Gradle"
|
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
|
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
@ -143,12 +140,16 @@ fi
|
|||||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||||
case $MAX_FD in #(
|
case $MAX_FD in #(
|
||||||
max*)
|
max*)
|
||||||
|
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||||
|
# shellcheck disable=SC3045
|
||||||
MAX_FD=$( ulimit -H -n ) ||
|
MAX_FD=$( ulimit -H -n ) ||
|
||||||
warn "Could not query maximum file descriptor limit"
|
warn "Could not query maximum file descriptor limit"
|
||||||
esac
|
esac
|
||||||
case $MAX_FD in #(
|
case $MAX_FD in #(
|
||||||
'' | soft) :;; #(
|
'' | soft) :;; #(
|
||||||
*)
|
*)
|
||||||
|
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||||
|
# shellcheck disable=SC3045
|
||||||
ulimit -n "$MAX_FD" ||
|
ulimit -n "$MAX_FD" ||
|
||||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||||
esac
|
esac
|
||||||
@ -193,6 +194,10 @@ if "$cygwin" || "$msys" ; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
# Collect all arguments for the java command;
|
# Collect all arguments for the java command;
|
||||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
||||||
# shell script including quotes and variable substitutions, so put them in
|
# shell script including quotes and variable substitutions, so put them in
|
||||||
@ -205,6 +210,12 @@ set -- \
|
|||||||
org.gradle.wrapper.GradleWrapperMain \
|
org.gradle.wrapper.GradleWrapperMain \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
|
# Stop when "xargs" is not available.
|
||||||
|
if ! command -v xargs >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "xargs is not available"
|
||||||
|
fi
|
||||||
|
|
||||||
# Use "xargs" to parse quoted args.
|
# Use "xargs" to parse quoted args.
|
||||||
#
|
#
|
||||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||||
|
15
gradlew.bat
vendored
15
gradlew.bat
vendored
@ -14,7 +14,7 @@
|
|||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@rem
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%" == "" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@rem Gradle startup script for Windows
|
@rem Gradle startup script for Windows
|
||||||
@ -25,7 +25,8 @@
|
|||||||
if "%OS%"=="Windows_NT" setlocal
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
|
@rem This is normally unused
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
|
|||||||
|
|
||||||
set JAVA_EXE=java.exe
|
set JAVA_EXE=java.exe
|
||||||
%JAVA_EXE% -version >NUL 2>&1
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if %ERRORLEVEL% equ 0 goto execute
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||||
|
|
||||||
:fail
|
:fail
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
rem the _cmd.exe /c_ return code!
|
rem the _cmd.exe /c_ return code!
|
||||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
set EXIT_CODE=%ERRORLEVEL%
|
||||||
exit /b 1
|
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||||
|
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||||
|
exit /b %EXIT_CODE%
|
||||||
|
|
||||||
:mainEnd
|
:mainEnd
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
105737
qodana.sarif.json
105737
qodana.sarif.json
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2022 The IdeaVim authors
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by an MIT-style
|
* Use of this source code is governed by an MIT-style
|
||||||
* license that can be found in the LICENSE.txt file or at
|
* license that can be found in the LICENSE.txt file or at
|
||||||
@ -7,45 +7,135 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
application
|
application
|
||||||
}
|
}
|
||||||
|
|
||||||
// group 'org.jetbrains.ideavim'
|
// group 'org.jetbrains.ideavim'
|
||||||
// version 'SNAPSHOT'
|
// version 'SNAPSHOT'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20")
|
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.9.10")
|
||||||
|
|
||||||
implementation("io.ktor:ktor-client-core:2.1.3")
|
implementation("io.ktor:ktor-client-core:2.3.4")
|
||||||
implementation("io.ktor:ktor-client-cio:2.1.3")
|
implementation("io.ktor:ktor-client-cio:2.3.4")
|
||||||
implementation("io.ktor:ktor-client-content-negotiation:2.1.3")
|
implementation("io.ktor:ktor-client-content-negotiation:2.3.4")
|
||||||
implementation("io.ktor:ktor-serialization-kotlinx-json:2.1.3")
|
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.4")
|
||||||
|
implementation("io.ktor:ktor-client-auth:2.3.4")
|
||||||
|
implementation("org.eclipse.jgit:org.eclipse.jgit:6.6.0.202305301015-r")
|
||||||
|
|
||||||
|
// This is needed for jgit to connect to ssh
|
||||||
|
implementation("org.eclipse.jgit:org.eclipse.jgit.ssh.apache:6.7.0.202309050840-r")
|
||||||
|
implementation("com.vdurmont:semver4j:3.1.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val releaseType: String? by project
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
freeCompilerArgs = listOf("-Xjvm-default=all-compatibility")
|
freeCompilerArgs = listOf("-Xjvm-default=all-compatibility")
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("generateIdeaVimConfigurations", JavaExec::class) {
|
tasks.register("generateIdeaVimConfigurations", JavaExec::class) {
|
||||||
group = "verification"
|
group = "verification"
|
||||||
description = "This job tracks if there are any new plugins in marketplace we don't know about"
|
description = "This job tracks if there are any new plugins in marketplace we don't know about"
|
||||||
mainClass.set("scripts.MainKt")
|
mainClass.set("scripts.MainKt")
|
||||||
classpath = sourceSets["main"].runtimeClasspath
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("checkNewPluginDependencies", JavaExec::class) {
|
tasks.register("checkNewPluginDependencies", JavaExec::class) {
|
||||||
group = "verification"
|
group = "verification"
|
||||||
description = "This job tracks if there are any new plugins in marketplace we don't know about"
|
description = "This job tracks if there are any new plugins in marketplace we don't know about"
|
||||||
mainClass.set("scripts.CheckNewPluginDependenciesKt")
|
mainClass.set("scripts.CheckNewPluginDependenciesKt")
|
||||||
classpath = sourceSets["main"].runtimeClasspath
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("updateAffectedRates", JavaExec::class) {
|
||||||
|
group = "verification"
|
||||||
|
description = "This job updates Affected Rate field on YouTrack"
|
||||||
|
mainClass.set("scripts.YouTrackUsersAffectedKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("calculateNewVersion", JavaExec::class) {
|
||||||
|
group = "release"
|
||||||
|
mainClass.set("scripts.release.CalculateNewVersionKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf("${rootProject.rootDir}", releaseType ?: "")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("changelogUpdateUnreleased", JavaExec::class) {
|
||||||
|
group = "release"
|
||||||
|
mainClass.set("scripts.release.ChangelogUpdateUnreleasedKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf(project.version.toString(), rootProject.rootDir.toString(), releaseType ?: "")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("commitChanges", JavaExec::class) {
|
||||||
|
group = "release"
|
||||||
|
mainClass.set("scripts.release.CommitChangesKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf(project.version.toString(), rootProject.rootDir.toString(), releaseType ?: "")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("addReleaseTag", JavaExec::class) {
|
||||||
|
group = "release"
|
||||||
|
mainClass.set("scripts.release.AddReleaseTagKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf(project.version.toString(), rootProject.rootDir.toString(), releaseType ?: "")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("resetReleaseBranch", JavaExec::class) {
|
||||||
|
group = "release"
|
||||||
|
mainClass.set("scripts.release.ResetReleaseBranchKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf(project.version.toString(), rootProject.rootDir.toString(), releaseType ?: "")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("pushChanges", JavaExec::class) {
|
||||||
|
mainClass.set("scripts.PushChangesKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf(rootProject.rootDir.toString())
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("pushChangesWithReleaseBranch", JavaExec::class) {
|
||||||
|
mainClass.set("scripts.PushChangesWithReleaseBranchKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf(rootProject.rootDir.toString(), releaseType ?: "")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("selectBranch", JavaExec::class) {
|
||||||
|
group = "release"
|
||||||
|
mainClass.set("scripts.release.SelectBranchKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf(project.version.toString(), rootProject.rootDir.toString(), releaseType ?: "")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("calculateNewEapVersion", JavaExec::class) {
|
||||||
|
group = "release"
|
||||||
|
mainClass.set("scripts.release.CalculateNewEapVersionKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf("${rootProject.rootDir}")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("calculateNewDevVersion", JavaExec::class) {
|
||||||
|
group = "release"
|
||||||
|
mainClass.set("scripts.release.CalculateNewDevVersionKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf("${rootProject.rootDir}")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("setTeamCityBuildNumber", JavaExec::class) {
|
||||||
|
group = "release"
|
||||||
|
mainClass.set("scripts.release.SetTeamCityBuildNumberKt")
|
||||||
|
classpath = sourceSets["main"].runtimeClasspath
|
||||||
|
args = listOf(project.version.toString(), rootProject.rootDir.toString(), releaseType ?: "")
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2022 The IdeaVim authors
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by an MIT-style
|
* Use of this source code is governed by an MIT-style
|
||||||
* license that can be found in the LICENSE.txt file or at
|
* license that can be found in the LICENSE.txt file or at
|
||||||
@ -10,4 +10,4 @@ package scripts
|
|||||||
|
|
||||||
fun main() {
|
fun main() {
|
||||||
println("Hello")
|
println("Hello")
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2022 The IdeaVim authors
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by an MIT-style
|
* Use of this source code is governed by an MIT-style
|
||||||
* license that can be found in the LICENSE.txt file or at
|
* license that can be found in the LICENSE.txt file or at
|
||||||
@ -8,22 +8,20 @@
|
|||||||
|
|
||||||
package scripts
|
package scripts
|
||||||
|
|
||||||
import io.ktor.client.*
|
|
||||||
import io.ktor.client.call.*
|
import io.ktor.client.call.*
|
||||||
import io.ktor.client.engine.cio.*
|
|
||||||
import io.ktor.client.plugins.contentnegotiation.*
|
|
||||||
import io.ktor.client.request.*
|
import io.ktor.client.request.*
|
||||||
import io.ktor.serialization.kotlinx.json.*
|
import kotlinx.serialization.json.JsonObject
|
||||||
import kotlinx.coroutines.runBlocking
|
import kotlinx.serialization.json.jsonPrimitive
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marketplace has a API to get all plugins that depend on our plugin.
|
* Marketplace has an API to get all plugins that depend on our plugin.
|
||||||
* Here we have a list of dependent plugins at some moment and we check if something changed in that.
|
* Here we have a list of dependent plugins at some moment, and we check if something changed in that.
|
||||||
* If so, we need to update our list of plugins.
|
* If so, we need to update our list of plugins.
|
||||||
*
|
*
|
||||||
* This script makes no actions and aimed to notify the devs in case they need to update the list of IdeaVim plugins.
|
* This script makes no actions and aimed to notify the devs in case they need to update the list of IdeaVim plugins.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@Suppress("SpellCheckingInspection")
|
||||||
val knownPlugins = listOf(
|
val knownPlugins = listOf(
|
||||||
"IdeaVimExtension",
|
"IdeaVimExtension",
|
||||||
"github.zgqq.intellij-enhance",
|
"github.zgqq.intellij-enhance",
|
||||||
@ -33,22 +31,36 @@ val knownPlugins = listOf(
|
|||||||
"com.github.copilot",
|
"com.github.copilot",
|
||||||
"com.github.dankinsoid.multicursor",
|
"com.github.dankinsoid.multicursor",
|
||||||
"com.joshestein.ideavim-quickscope",
|
"com.joshestein.ideavim-quickscope",
|
||||||
|
"ca.alexgirard.HarpoonIJ",
|
||||||
|
|
||||||
|
// "cc.implicated.intellij.plugins.bunny", // I don't want to include this plugin in the list of IdeaVim plugins as I don't understand what this is for
|
||||||
)
|
)
|
||||||
|
|
||||||
fun main() {
|
suspend fun main() {
|
||||||
val client = HttpClient(CIO) {
|
val response = client.get("https://plugins.jetbrains.com/api/plugins/") {
|
||||||
install(ContentNegotiation) {
|
parameter("dependency", "IdeaVIM")
|
||||||
json()
|
parameter("includeOptional", true)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
val output = response.body<List<String>>()
|
||||||
runBlocking {
|
println(output)
|
||||||
val res = client.get("https://plugins.jetbrains.com/api/plugins/") {
|
if (knownPlugins != output) {
|
||||||
parameter("dependency", "IdeaVIM")
|
val newPlugins = (output - knownPlugins).map { it to (getPluginLinkByXmlId(it) ?: "Can't find plugin link") }
|
||||||
parameter("includeOptional", true)
|
val removedPlugins = (knownPlugins - output.toSet()).map { it to (getPluginLinkByXmlId(it) ?: "Can't find plugin link") }
|
||||||
}
|
error(
|
||||||
val output = res.body<List<String>>()
|
"""
|
||||||
println(output)
|
|
||||||
if (knownPlugins != output) error("Unknown plugins list: ${output}")
|
Unregistered plugins:
|
||||||
|
${if (newPlugins.isNotEmpty()) newPlugins.joinToString(separator = "\n") { it.first + "(" + it.second + ")" } else "No unregistered plugins"}
|
||||||
|
|
||||||
|
Removed plugins:
|
||||||
|
${if (removedPlugins.isNotEmpty()) removedPlugins.joinToString(separator = "\n") { it.first + "(" + it.second + ")" } else "No removed plugins"}
|
||||||
|
""".trimIndent()
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private suspend fun getPluginLinkByXmlId(it: String): String? {
|
||||||
|
val newPluginLink = client.get("https://plugins.jetbrains.com/api/plugins/intellij/$it")
|
||||||
|
.body<JsonObject>()["link"]?.jsonPrimitive?.content
|
||||||
|
return newPluginLink?.let { "https://plugins.jetbrains.com$it" }
|
||||||
|
}
|
||||||
|
49
scripts/src/main/kotlin/scripts/ktor.kt
Normal file
49
scripts/src/main/kotlin/scripts/ktor.kt
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package scripts
|
||||||
|
|
||||||
|
import io.ktor.client.*
|
||||||
|
import io.ktor.client.engine.cio.*
|
||||||
|
import io.ktor.client.plugins.*
|
||||||
|
import io.ktor.client.plugins.auth.*
|
||||||
|
import io.ktor.client.plugins.auth.providers.*
|
||||||
|
import io.ktor.client.plugins.contentnegotiation.*
|
||||||
|
import io.ktor.serialization.kotlinx.json.*
|
||||||
|
import kotlinx.serialization.json.Json
|
||||||
|
|
||||||
|
internal val client = HttpClient(CIO) {
|
||||||
|
install(ContentNegotiation) {
|
||||||
|
json()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun httpClient(): HttpClient {
|
||||||
|
return HttpClient(CIO) {
|
||||||
|
expectSuccess = true
|
||||||
|
defaultRequest {
|
||||||
|
url("https://youtrack.jetbrains.com/api/")
|
||||||
|
}
|
||||||
|
install(Auth) {
|
||||||
|
bearer {
|
||||||
|
loadTokens {
|
||||||
|
val accessToken = System.getenv("YOUTRACK_TOKEN")!!
|
||||||
|
BearerTokens(accessToken, "")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
install(ContentNegotiation) {
|
||||||
|
json(
|
||||||
|
Json {
|
||||||
|
prettyPrint = true
|
||||||
|
isLenient = true
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
37
scripts/src/main/kotlin/scripts/pushChanges.kt
Normal file
37
scripts/src/main/kotlin/scripts/pushChanges.kt
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package scripts
|
||||||
|
|
||||||
|
import scripts.release.checkoutBranch
|
||||||
|
import scripts.release.withGit
|
||||||
|
import scripts.release.withRepo
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
val rootDir = args[0]
|
||||||
|
println("root dir: $rootDir")
|
||||||
|
|
||||||
|
val currentBranch = withRepo(rootDir) { it.branch }
|
||||||
|
println("Current branch is $currentBranch")
|
||||||
|
|
||||||
|
|
||||||
|
withGit(rootDir) { git ->
|
||||||
|
if (currentBranch != "master") {
|
||||||
|
git.checkoutBranch("master")
|
||||||
|
println("Check out master branch")
|
||||||
|
}
|
||||||
|
|
||||||
|
git.push()
|
||||||
|
.setPushTags()
|
||||||
|
.call()
|
||||||
|
println("Master pushed with tags")
|
||||||
|
|
||||||
|
git.checkoutBranch(currentBranch)
|
||||||
|
println("Checked out $currentBranch branch")
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package scripts
|
||||||
|
|
||||||
|
import scripts.release.checkoutBranch
|
||||||
|
import scripts.release.withGit
|
||||||
|
import scripts.release.withRepo
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
val rootDir = args[0]
|
||||||
|
val releaseType = args[1]
|
||||||
|
println("root dir: $rootDir")
|
||||||
|
println("releaseType: $releaseType")
|
||||||
|
|
||||||
|
val currentBranch = withRepo(rootDir) { it.branch }
|
||||||
|
println("Current branch is $currentBranch")
|
||||||
|
|
||||||
|
|
||||||
|
withGit(rootDir) { git ->
|
||||||
|
if (currentBranch != "master") {
|
||||||
|
git.checkoutBranch("master")
|
||||||
|
println("Check out master branch")
|
||||||
|
}
|
||||||
|
|
||||||
|
git.push()
|
||||||
|
.setPushTags()
|
||||||
|
.call()
|
||||||
|
println("Master pushed with tags")
|
||||||
|
|
||||||
|
if (releaseType != "patch") {
|
||||||
|
git.checkoutBranch("release")
|
||||||
|
println("Checked out release")
|
||||||
|
|
||||||
|
git
|
||||||
|
.push()
|
||||||
|
.setForce(true)
|
||||||
|
.setPushTags()
|
||||||
|
.call()
|
||||||
|
println("Pushed release branch with tags")
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
println("Do not push release branch because type of release is $releaseType")
|
||||||
|
}
|
||||||
|
|
||||||
|
git.checkoutBranch(currentBranch)
|
||||||
|
println("Checked out $currentBranch branch")
|
||||||
|
}
|
||||||
|
}
|
27
scripts/src/main/kotlin/scripts/release/addReleaseTag.kt
Normal file
27
scripts/src/main/kotlin/scripts/release/addReleaseTag.kt
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package scripts.release
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
val (newVersion, rootDir, _) = readArgs(args)
|
||||||
|
|
||||||
|
withGit(rootDir) { git ->
|
||||||
|
git
|
||||||
|
.tag()
|
||||||
|
.setName(newVersion)
|
||||||
|
.call()
|
||||||
|
|
||||||
|
val tagFound = git.tagList().call()
|
||||||
|
.map { it.name }
|
||||||
|
.find { it == "refs/tags/$newVersion" }
|
||||||
|
.isNullOrBlank()
|
||||||
|
.not()
|
||||||
|
println("Tag added. New tag found: '$tagFound'")
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package scripts.release
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
println("HI!")
|
||||||
|
val projectDir = args[0]
|
||||||
|
println("Working directory: $projectDir")
|
||||||
|
val (lastVersion, objectId) = getVersion(projectDir, onlyStable = true)
|
||||||
|
println("Last version: $lastVersion, hash: ${objectId.name}")
|
||||||
|
|
||||||
|
val branch = withRepo(projectDir) { it.branch }
|
||||||
|
check(branch == "master") {
|
||||||
|
"We should be on master branch"
|
||||||
|
}
|
||||||
|
withGit(projectDir) { git ->
|
||||||
|
val log = git.log().setMaxCount(500).call().toList()
|
||||||
|
println("First commit hash in log: " + log.first().name + " log size: ${log.size}")
|
||||||
|
val logDiff = log.takeWhile { it.id.name != objectId.name }
|
||||||
|
val numCommits = logDiff.size
|
||||||
|
println("Log diff size is $numCommits")
|
||||||
|
check(numCommits < 450) {
|
||||||
|
"More than 450 commits detected since the last release. This is suspicious."
|
||||||
|
}
|
||||||
|
|
||||||
|
val nextVersion = lastVersion.nextMinor().withSuffix("dev.$numCommits")
|
||||||
|
|
||||||
|
println("Next dev version: $nextVersion")
|
||||||
|
println("##teamcity[setParameter name='env.ORG_GRADLE_PROJECT_version' value='$nextVersion']")
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package scripts.release
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
println("HI!")
|
||||||
|
val projectDir = args[0]
|
||||||
|
println("Working directory: $projectDir")
|
||||||
|
val (lastVersion, _) = getVersion(projectDir, onlyStable = false)
|
||||||
|
|
||||||
|
val nextVersion = if (lastVersion.suffixTokens.isEmpty()) {
|
||||||
|
lastVersion.nextMinor().withSuffix("eap.1").value
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
check(lastVersion.suffixTokens.size == 2) {
|
||||||
|
"We should have exactly two suffix tokens. Current tokens: ${lastVersion.suffixTokens.toList()}"
|
||||||
|
}
|
||||||
|
check(lastVersion.suffixTokens[0] == "eap") {
|
||||||
|
"First suffix token must be eap. Current tokens: ${lastVersion.suffixTokens.toList()}"
|
||||||
|
}
|
||||||
|
|
||||||
|
val newEapNumber = lastVersion.suffixTokens[1].toInt().inc()
|
||||||
|
lastVersion.withSuffix("eap.$newEapNumber").value
|
||||||
|
}
|
||||||
|
|
||||||
|
println("Next eap version: $nextVersion")
|
||||||
|
println("##teamcity[setParameter name='env.ORG_GRADLE_PROJECT_version' value='$nextVersion']")
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package scripts.release
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
println("HI!")
|
||||||
|
val projectDir = args[0]
|
||||||
|
val releaseType = args[1]
|
||||||
|
println("Working directory: $projectDir")
|
||||||
|
println("Release type: $releaseType")
|
||||||
|
val (lastVersion, _) = getVersion(projectDir, onlyStable = true)
|
||||||
|
|
||||||
|
val nextVersion = when (releaseType) {
|
||||||
|
"major" -> lastVersion.nextMajor()
|
||||||
|
"minor" -> lastVersion.nextMinor()
|
||||||
|
"patch" -> lastVersion.nextPatch()
|
||||||
|
else -> error("Only major, minor, and patch versions are supported. Got '$releaseType'")
|
||||||
|
}
|
||||||
|
println("Next $releaseType version: $nextVersion")
|
||||||
|
println("##teamcity[setParameter name='env.ORG_GRADLE_PROJECT_version' value='$nextVersion']")
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package scripts.release
|
||||||
|
|
||||||
|
import java.time.LocalDate
|
||||||
|
import java.time.format.DateTimeFormatter
|
||||||
|
import kotlin.io.path.Path
|
||||||
|
import kotlin.io.path.readText
|
||||||
|
import kotlin.io.path.writeText
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
println("Start updating unreleased section")
|
||||||
|
val (newVersion, rootDir, releaseType) = readArgs(args)
|
||||||
|
|
||||||
|
checkReleaseType(releaseType)
|
||||||
|
|
||||||
|
if (releaseType == "patch") {
|
||||||
|
println("Skip updating the changelog because release type is 'patch'")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
val currentDate = LocalDate.now().format(DateTimeFormatter.ISO_LOCAL_DATE)
|
||||||
|
val newItem = "## $newVersion, $currentDate"
|
||||||
|
|
||||||
|
val changelogPath = Path("$rootDir/CHANGES.md")
|
||||||
|
val changelog = changelogPath.readText()
|
||||||
|
val newChangelog = changelog.replace("## To Be Released", newItem)
|
||||||
|
changelogPath.writeText(newChangelog)
|
||||||
|
}
|
33
scripts/src/main/kotlin/scripts/release/commitChanges.kt
Normal file
33
scripts/src/main/kotlin/scripts/release/commitChanges.kt
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package scripts.release
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
val (newVersion, rootDir, releaseType) = readArgs(args)
|
||||||
|
|
||||||
|
checkReleaseType(releaseType)
|
||||||
|
|
||||||
|
if (releaseType == "patch") {
|
||||||
|
println("Skip committing changes because release type is 'patch'")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
withGit(rootDir) { git ->
|
||||||
|
git
|
||||||
|
.commit()
|
||||||
|
.setAll(true)
|
||||||
|
.setAuthor("IdeaVim Bot", "maintainers@ideavim.dev")
|
||||||
|
.setMessage("Preparation to $newVersion release")
|
||||||
|
.setSign(false)
|
||||||
|
.call()
|
||||||
|
|
||||||
|
val lastGitMessage = git.log().call().first().shortMessage
|
||||||
|
println("Changes committed. Last gitlog message: $lastGitMessage")
|
||||||
|
}
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user