Skip to content

Commit 904ba3b

Browse files
committed
updated version to 4.0.0
1 parent 248dfe1 commit 904ba3b

File tree

3 files changed

+45
-51
lines changed

3 files changed

+45
-51
lines changed

CHANGES.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

NEWS.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# Changes
22

3+
## 4.0.0
4+
5+
Rewrite by https://github.com/aartiPl
6+
7+
Improved test_suite.sh
8+
* Automatic setting up of test environment (assert.sh, test directories)
9+
* Automatic compilation
10+
* idea - script to help to test idea use cases
11+
* Script setup_environment.sh can be used for local testing
12+
* Some script tests moved to Unit Tests
13+
14+
Improved Unit Tests
15+
* Several new Unit tests
16+
* New Unit Tests can be created much easier (Major point why modularization makes sense)
17+
18+
Improved Logging
19+
* Silent mode / Development mode logging
20+
21+
Modularisation of source code
22+
* Removed duplication
23+
* Code divided in logical pieces and moved to packages
24+
* Script resolution creates immutable objects
25+
26+
27+
Build script
28+
* Updated Gradle to version 7.3 and shadowJar to 6.1.0
29+
* Fixes in build file
30+
31+
Performance
32+
* Much less IO operations - that should contribute to better performance
33+
34+
Misc
35+
* Updated Kotlin to 1.5.31, but only for compiler, not kotlin-scripting. It's far from optimal, but it is not possible to move fully to Kotlin 1.5 or even 1.6, because of the issues with resolution of artifacts in latest kotlin-scripting. I have put report here: https://youtrack.jetbrains.com/issue/KT-49511
36+
* Fixed a lot of IDE warnings in code
37+
* Packaging - gradle file converted to Kotlin; still does not work, but it was like that before anyway
38+
* Changes for kscript dir allow simple implementation of config file if needed. (.kscript/kscript.config); Not implemented by me, but might be useful e.g. for storing preambles
39+
40+
INCOMPATIBLE CHANGES:
41+
* In annotations the only allowed delimiter is coma "," (to allow options with arguments, separated by space)
42+
* Resolution of env variables is more restrictive - only vars expected by kscript can be resolved (for security - it's not good to include arbitrary strings from user env into the script)
43+
* Reworked caching mechanism
44+
* Dropped cache for resolution of artifacts - I can not observe change in resolution time. In fact .m2 repository is already kind of cache, so it should not be needed to add another one.
45+
46+
347
## 3.2
448

549
Release TBD

src/main/kotlin/kscript/app/Kscript.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import org.docopt.DocOptWrapper
1919
* @author Marcin Kuszczak
2020
*/
2121

22-
const val KSCRIPT_VERSION = "3.99.0"
22+
const val KSCRIPT_VERSION = "4.0.0"
2323

2424
fun main(args: Array<String>) {
2525
try {

0 commit comments

Comments
 (0)