Skip to content

Commit 1c97c21

Browse files
aartiPlckaag
andauthored
Kscript 4.2.2 (#400)
== [4.2.2] - 2023-04-29 === Added * Updated Gradle to version 8.0.2 === Fixed * Fixed handling path with spaces on Windows https://github.com/kscripting/kscript/issues/397[#397] (thanks to https://github.com/ckaag[ckaag]) * Fixed build script (dependencies between tasks) * Fixed reading Unicode characters from executed scriptlets * Fixed Windows integration tests --------- Signed-off-by: Marcin Kuszczak <[email protected]> Co-authored-by: Christopher Kaag <[email protected]>
1 parent 62be656 commit 1c97c21

File tree

10 files changed

+109
-104
lines changed

10 files changed

+109
-104
lines changed

.github/workflows/build.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup Gradle
4545
uses: gradle/gradle-build-action@v2
4646
with:
47-
gradle-version: wrapper
47+
gradle-version: 8.0.2
4848

4949
- name: Install dependencies for ${{ runner.os }}
5050
shell: bash
@@ -91,9 +91,7 @@ jobs:
9191
shell: cmd
9292
run: |
9393
echo "Windows test..."
94-
gradle clean assemble test
95-
if %errorlevel% neq 0 exit /b %errorlevel%
96-
gradle -DosType=windows -DincludeTags="windows" integrationTest
94+
gradle -DosType=windows -DincludeTags="windows" clean assemble test integrationTest
9795
9896
- name: Install Cygwin (only Windows)
9997
if: matrix.variant == 'cygwin'

NEWS.adoc

+46-33
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
11
= Changes
22

3+
== [4.2.2] - 2023-04-29
4+
5+
=== Added
6+
7+
* Updated Gradle to version 8.0.2
8+
9+
=== Fixed
10+
11+
* Fixed handling path with spaces on Windows https://github.com/kscripting/kscript/issues/397[#397] (thanks to https://github.com/ckaag[ckaag])
12+
* Fixed build script (dependencies between tasks)
13+
* Fixed reading Unicode characters from executed scriptlets
14+
* Fixed Windows integration tests
15+
16+
317
== [4.2.1] - 2023-01-26
418

5-
*Enhancements*
19+
=== Added
620

721
* Scoop installer (thanks to https://github.com/Dany-coder778[Dany-coder778] and https://github.com/goto1134[goto1134])
822

9-
*Bugfixes*
23+
=== Fixed
1024

1125
* The correct way of resolving kscript binary on Windows (thanks to https://github.com/goto1134[goto1134])
1226

1327
== [4.2.0] - 2023-01-14
1428

15-
*Breaking changes*
29+
=== Breaking changes
1630

1731
* Renamed environment variable from 'KSCRIPT_DIR' to 'KSCRIPT_DIRECTORY'
1832

19-
*Enhancements*
33+
=== Added
2034

2135
* New GitHub organization: http://github.com/kscripting[kscripting]
2236
* More work on Windows shell compatibility; most functionality works on Windows as on systems with bash
@@ -37,20 +51,20 @@
3751
* Improved DependencyResolver: aar archives are also included in classpath
3852
* When creating IntelliJ project Gradle and Idea are no more required
3953

40-
*Bugfixes*
54+
=== Fixed
4155

4256
* Fixed exit code on Windows
4357

44-
== [4.1.x] - (last 4.1.1 - 2022-08-27)
58+
== [4.1.1] - 2022-08-27
4559

46-
*Breaking changes*
60+
=== Breaking changes
4761

4862
* Renamed env variables (cleanup):
4963
CUSTOM_KSCRIPT_PREAMBLE -&gt; KSCRIPT_PREAMBLE
5064
KSCRIPT_IDEA_COMMAND -&gt; KSCRIPT_COMMAND_IDEA
5165
KSCRIPT_GRADLE_COMMAND -&gt; KSCRIPT_COMMAND_GRADLE
5266

53-
*Enhancements*
67+
=== Added
5468

5569
* Windows support and proper Cygwin and MSys support
5670
* File argument for specific OS should be in format of that OS (eg. Cygwin: kscript /cygdrive/c/file.kts)
@@ -67,14 +81,14 @@
6781
* Deprecation of comment based annotations
6882
* Report for deprecated features (–report option)
6983

70-
*Bugfixes*
84+
=== Fixed
7185

7286
* Fix for dependency resolution
7387
* Fix for creation of Gradle files and their indentation
7488
* Fix for handling potentially duplicated file names in Idea projects
7589
* Fix for Idea runtime configuration
7690

77-
== [4.0.x] - (last 4.0.3 - 2022-05-28)
91+
== [4.0.3] - 2022-05-28
7892

7993
**Rewrite by https://github.com/aartiPl**
8094

@@ -125,31 +139,30 @@ Misc
125139
* Changes for kscript dir allow simple implementation of config file if needed. (.kscript/kscript.config); Not
126140
implemented by me, but might be useful e.g. for storing preambles
127141

128-
INCOMPATIBLE CHANGES:
142+
=== Breaking changes
129143

130144
* In annotations the only allowed delimiter is coma "," (to allow options with arguments, separated by space)
131145
* Resolution of env variables is more restrictive - only vars expected by kscript can be resolved (for security - it's
132146
not good to include arbitrary strings from user env into the script)
133147
* Reworked caching mechanism
134148

135-
== [3.2]
149+
== [3.2.0]
136150

137151
Not released - incorporated in 4.0
138152

139153
Major changes &amp; enhancements
140154

141-
* Improved for relative script inclusions (Thanks to PR by **
142-
aartiPI** https://github.com/holgerbrandl/kscript/pull/330[#330])
155+
* Improved for relative script inclusions (Thanks to PR by ** aartiPI** https://github.com/holgerbrandl/kscript/pull/330[#330])
143156
* Fixed bootstrap header support (https://github.com/holgerbrandl/kscript/issues/324[#324])
144157

145-
== [3.1]
158+
== [3.1.0]
146159

147160
Major changes &amp; enhancements
148161

149162
* Removed jcenter as default dependency repository
150163
* Updated tests and build integration to function without jcenter
151164

152-
== [3.0]
165+
== [3.0.0]
153166

154167
Major Enhancements
155168

@@ -178,7 +191,7 @@ Incompatible API changes
178191
as `org.javamoney:moneta:1.3@pom`)
179192
* Dynamic version dependencies must be now declared as `log4j:log4j:[1.2,)` (and no longer as `log4j:log4j:1.2+`)
180193

181-
== [2.9]
194+
== [2.9.0]
182195

183196
Support environment variables in repository credentials (https://github.com/holgerbrandl/kscript/issues/159[#248])
184197

@@ -193,15 +206,15 @@ Minor enhancements &amp; fixes:
193206
* Fixed bootstrap header (https://github.com/holgerbrandl/kscript/issues/159[#234])
194207
* Improved and documented basic testing support (https://github.com/holgerbrandl/kscript/issues/159[#247])
195208

196-
== [2.8]
209+
== [2.8.0]
197210

198211
Improvements &amp; Fixes
199212

200213
* https://github.com/holgerbrandl/kscript/pull/214[#214] Added credentials support for `@file:MavenRepository`
201214
annotation (thanks to https://github.com/meonlol[@meonlol]
202215
for providing the PR and his patience)
203216

204-
== [2.7]
217+
== [2.7.0]
205218

206219
Improvements &amp; Fixes
207220

@@ -214,7 +227,7 @@ Improvements &amp; Fixes
214227
with `--add-bootstrap-header`
215228
* https://github.com/holgerbrandl/kscript/issues/200[#200]: Expose script file name to script
216229

217-
== [2.6]
230+
== [2.6.0]
218231

219232
Major Improvements
220233

@@ -232,7 +245,7 @@ Notable Bug Fixes
232245
* Fixed usage `@file:CompilerOpts` in combination with `@file:Include`
233246
* Renamed `kshell_from_kscript` to `kshell_kts`
234247

235-
== [2.5]
248+
== [2.5.0]
236249

237250
Major Improvements
238251

@@ -248,7 +261,7 @@ Minor Enhancements
248261
* Allow to include same file from multiple files
249262
* Fixed: Space-containing argument propagation
250263

251-
== [2.4]
264+
== [2.4.0]
252265

253266
Major Enhancements:
254267

@@ -270,7 +283,7 @@ Minor Enhancements:
270283
* Simplify Gradle config for script bootstrapping with IDEA (#86)
271284
* Added Gradle wrapper to the project (#87 and #88)
272285

273-
== [2.3]
286+
== [2.3.0]
274287

275288
Major Enhancements:
276289

@@ -298,7 +311,7 @@ Minor Enhancements:
298311
* Simplified build instructions (fixes https://github.com/holgerbrandl/kscript/issues/60[#60])
299312
* Document dependencies of kscript (fixes https://github.com/holgerbrandl/kscript/issues/69[#69])
300313

301-
== [2.2]
314+
== [2.2.0]
302315

303316
* Logging of maven artifact downloads to stderr (fixes https://github.com/holgerbrandl/kscript/issues/23[#23])
304317
* Added `-s` / `--silent` to suppress all logging
@@ -310,12 +323,12 @@ Minor Enhancements:
310323

311324
See link:README.adoc[README] for usage details.
312325

313-
== [2.1]
326+
== [2.1.0]
314327

315328
* support for annotation-driven script configuration
316329
* refactored support api mode into `-t` parameter
317330

318-
== [2.0]
331+
== [2.0.0]
319332

320333
* Reimplemented in kotlin (fixes https://github.com/holgerbrandl/kscript/issues/36[#36])
321334
* Added cygwin support (fixes https://github.com/holgerbrandl/kscript/issues/39[#39])
@@ -329,20 +342,20 @@ See link:README.adoc[README] for usage details.
329342
* Fixed `--self-update`
330343
* More robust self-update on OSses with file-locking (e.g. windows)
331344

332-
== [1.5]
345+
== [1.5.0]
333346

334347
* removed `curl` dependency
335348
* more streamlined dependency lookup
336349

337-
== [1.4]
350+
== [1.4.0]
338351

339352
Major new features
340353

341354
* Redesigned https://github.com/holgerbrandl/kscript-support-api[support library] for streamlined tabular data
342355
processing. See http://holgerbrandl.github.io/kotlin/2017/05/08/kscript_as_awk_substitute.html[here] for an
343356
overview.
344357

345-
== [1.3]
358+
== [1.3.0]
346359

347360
Major new features
348361

@@ -373,7 +386,7 @@ Other changes
373386
* More heuristics to guess `KOTLIN_HOME`
374387
* Cache cleanup `--clear-cache` now applies to jars, scripts, urls, and cached dependency lookups
375388

376-
== [1.2]
389+
== [1.2.0]
377390

378391
* Fixed compatibility with https://kotlinlang.org/docs/reference/whatsnew11.html[Kotlin v1.1]
379392
(fixes https://github.com/holgerbrandl/kscript/issues/15[#15])
@@ -382,7 +395,7 @@ Other changes
382395
* Compile jars should go to TEMP (fixes https://github.com/holgerbrandl/kscript/issues/13[#13])
383396
* started test-suite
384397

385-
== [1.1]
398+
== [1.1.0]
386399

387400
* Support for stdin and process substitution as script source. See link:examples[examples]
388401
* versioning and auto-update
@@ -391,6 +404,6 @@ Other changes
391404
* Added CLI help to `resdeps.kts`
392405
* Added option to clear dependency lookup cache: `resdeps.kts --clear-cache`
393406

394-
== [1.0]
407+
== [1.0.0]
395408

396-
Initial Release
409+
Initial Release

build.gradle.kts

+11-19
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
application
1212
id("com.adarshr.test-logger") version "3.2.0"
1313
id("com.github.gmazzo.buildconfig") version "3.1.0"
14-
id("com.github.johnrengelman.shadow") version "7.1.2"
14+
id("com.github.johnrengelman.shadow") version "8.1.1"
1515
`maven-publish`
1616
signing
1717
idea
@@ -27,7 +27,7 @@ repositories {
2727
}
2828

2929
group = "io.github.kscripting"
30-
version = "4.2.1"
30+
version = "4.2.2"
3131

3232
buildConfig {
3333
packageName(project.group.toString() + "." + project.name)
@@ -66,7 +66,6 @@ configurations {
6666

6767
idea {
6868
module {
69-
@Suppress("UnstableApiUsage")
7069
testSources.from(sourceSets["integration"].kotlin.srcDirs)
7170
}
7271
}
@@ -136,18 +135,18 @@ tasks.test {
136135
val createKscriptLayout by tasks.register<Copy>("createKscriptLayout") {
137136
dependsOn(shadowJar)
138137

139-
into(layout.projectDirectory)
138+
into(layout.buildDirectory.dir("kscript"))
140139

141140
from(shadowJar) {
142-
into("build/kscript/bin")
141+
into("bin")
143142
}
144143

145144
from("src/kscript") {
146-
into("build/kscript/bin")
145+
into("bin")
147146
}
148147

149148
from("src/kscript.bat") {
150-
into("build/kscript/bin")
149+
into("bin")
151150
}
152151
}
153152

@@ -288,7 +287,6 @@ signing {
288287
}
289288

290289
dependencies {
291-
//compileOnly(fileTree("libs"))
292290
implementation("commons-cli:commons-cli:1.5.0")
293291

294292
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
@@ -297,28 +295,22 @@ dependencies {
297295

298296
implementation("org.jetbrains.kotlin:kotlin-scripting-common:$kotlinVersion")
299297
implementation("org.jetbrains.kotlin:kotlin-scripting-jvm:$kotlinVersion")
300-
// implementation("org.jetbrains.kotlin:kotlin-scripting-dependencies:$kotlinVersion")
301298
implementation("org.jetbrains.kotlin:kotlin-scripting-dependencies-maven-all:$kotlinVersion")
302299

303300
implementation("org.apache.commons:commons-lang3:3.12.0")
304301
implementation("commons-io:commons-io:2.11.0")
305302
implementation("commons-codec:commons-codec:1.15")
306-
implementation("com.konghq:unirest-java:3.13.13")
303+
implementation("com.konghq:unirest-java:3.14.2")
307304

308305
implementation("net.igsoft:tablevis:0.6.0")
309-
implementation("io.arrow-kt:arrow-core:1.1.2")
306+
implementation("io.github.kscripting:shell:0.5.2")
310307

311-
implementation("io.github.kscripting:shell:0.5.0")
308+
implementation("org.slf4j:slf4j-nop:2.0.7")
312309

313-
implementation("org.slf4j:slf4j-nop:2.0.5")
310+
implementation("org.semver4j:semver4j:4.3.0")
314311

315-
implementation("org.semver4j:semver4j:4.1.1")
316312

317-
318-
testImplementation("org.junit.platform:junit-platform-suite-engine:1.9.2")
319-
testImplementation("org.junit.platform:junit-platform-suite-api:1.9.2")
320-
testImplementation("org.junit.platform:junit-platform-suite-commons:1.9.2")
321-
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.0")
313+
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.2")
322314
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.2")
323315
testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.25")
324316
testImplementation("io.mockk:mockk:1.13.2")

gradle/wrapper/gradle-wrapper.jar

1.99 KB
Binary file not shown.
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)