Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
8b445e6
Backported changes from Kotlin Scripting branch.
aartiPl Sep 15, 2022
1c066cd
Small fixes.
aartiPl Sep 15, 2022
6abda7b
Formatting and end-line conversion
aartiPl Sep 15, 2022
2081fd3
Deprecation of "Include" in favor of "Import"
aartiPl Sep 15, 2022
c5de57c
* Infrastructure for publishing kscript
aartiPl Sep 17, 2022
24c2c26
* Updated location of kscript binary
aartiPl Sep 17, 2022
dca4481
* Changed packages of kscript
aartiPl Sep 17, 2022
f8a0a93
Fixed coordinates of kscript-annotations
aartiPl Sep 18, 2022
4d7042a
Fixed test
aartiPl Sep 18, 2022
5af291c
Line endings
aartiPl Sep 19, 2022
e2e6e35
* KScript version is derived from Gradle build file (BuildConfig)
aartiPl Sep 20, 2022
94f37c6
* Renamed Location to ScriptLocation
aartiPl Sep 20, 2022
29a33c5
* Try to fix the test
aartiPl Sep 20, 2022
a384bd6
* Fixed unit test
aartiPl Sep 20, 2022
34b7fdd
* Moved to external shell execution library
aartiPl Sep 22, 2022
6dd6375
Added sontatype snapshots to repositories
aartiPl Sep 22, 2022
8cf3c44
Compatibility with java 8
aartiPl Sep 22, 2022
98c1bd6
Snapshots are changing modules.
aartiPl Sep 22, 2022
a960890
Fixes for tests.
aartiPl Sep 24, 2022
6bc1f83
Fixed test.
aartiPl Sep 24, 2022
8696a39
Try to fix flaky version checker test.
aartiPl Sep 24, 2022
37bee40
Unirest is now maintained by KongHq.
aartiPl Sep 24, 2022
316fc72
* Fix for --clear-cache option and test
aartiPl Sep 27, 2022
1b23590
Small improvements
aartiPl Sep 28, 2022
239e6cd
Kotlin's binaries are no more dependent on KOTLIN_HOME (it's the oppo…
aartiPl Sep 28, 2022
73e8d0e
Fixed unit tests.
aartiPl Sep 28, 2022
6e74614
Some improvements.
aartiPl Sep 28, 2022
16863b0
Some improvements.
aartiPl Sep 28, 2022
0566af0
Fixes
aartiPl Sep 28, 2022
3574842
Revert old parser.
aartiPl Sep 28, 2022
d08db2f
Further changes
aartiPl Oct 5, 2022
4d5e0a8
* Handle snapshot versions in VersionChecker
aartiPl Oct 31, 2022
6f7852a
Updated kotlin and added debug messages.
aartiPl Nov 15, 2022
d0ef2b3
debug
aartiPl Nov 15, 2022
9c06bae
debug
aartiPl Nov 15, 2022
7f92b38
debug
aartiPl Nov 15, 2022
77422a4
debug
aartiPl Nov 15, 2022
d01d1f9
debug
aartiPl Nov 16, 2022
ed4abdc
debug
aartiPl Nov 16, 2022
f4be292
debug
aartiPl Nov 16, 2022
43234a1
debug
aartiPl Nov 16, 2022
7ccd461
fixes
aartiPl Nov 17, 2022
ea281ab
* Updated Kotlin version
aartiPl Nov 17, 2022
d3f02f4
Fixed test.
aartiPl Nov 17, 2022
b06622b
Fixed test.
aartiPl Nov 17, 2022
a3240ef
Debug
aartiPl Nov 19, 2022
5cb4948
Debug
aartiPl Nov 19, 2022
9ddd0a6
* Improved version checking
aartiPl Nov 24, 2022
4eadbaa
Test fix.
aartiPl Nov 24, 2022
6a4d832
Additional tests which now works on Windows.
aartiPl Nov 24, 2022
4c59bb7
Updated Kotlin version
aartiPl Nov 25, 2022
799edc4
Updated Docs and build files.
aartiPl Nov 25, 2022
d5720d2
Updated shell to release version.
aartiPl Nov 25, 2022
c19f659
* Documentation update
aartiPl Nov 25, 2022
335bc69
* Implemented local artifacts directory
aartiPl Nov 25, 2022
9b9ead1
Fixed paths.
aartiPl Nov 25, 2022
f9d4a8f
Fixed test.
aartiPl Nov 25, 2022
6dcf324
Fixed test.
aartiPl Nov 26, 2022
b9259f6
* Added APP_BUILD_TIME
aartiPl Dec 4, 2022
8f547f0
* Replaced DocOpt with Apache command line parser
aartiPl Dec 5, 2022
69bdabf
Reverted: bootstrap-header -> add-bootstrap-header
aartiPl Dec 5, 2022
0e36ff3
Fix
aartiPl Dec 5, 2022
147adbb
Added tests for local jar files.
aartiPl Dec 7, 2022
47e8e4e
Fix for test.
aartiPl Dec 7, 2022
2bb889c
Temporary disable tests.
aartiPl Dec 7, 2022
dd46bc7
Fixes for test.
aartiPl Dec 9, 2022
81c5fe9
Fixes for test.
aartiPl Dec 9, 2022
b929746
Fixes for test.
aartiPl Dec 9, 2022
7d0c99e
Test fix
aartiPl Dec 9, 2022
fad84fe
Test fixes
aartiPl Dec 9, 2022
21cad73
Test fixes
aartiPl Dec 9, 2022
8b7f441
Small fixes
aartiPl Dec 9, 2022
95aeb26
Improvements for build files.
aartiPl Dec 9, 2022
4a63105
Test fix.
aartiPl Dec 9, 2022
429091e
* Updated to Java 11 version
aartiPl Dec 9, 2022
12a4b01
* Documentation update
aartiPl Dec 9, 2022
488fa95
Improved console parameters error handling.
aartiPl Dec 9, 2022
136218d
Documentation updates. Removed release script (working on better solu…
aartiPl Dec 15, 2022
ea5ad84
Documentation converted to .adoc
aartiPl Dec 15, 2022
6f077c5
Small fixes
aartiPl Dec 15, 2022
b5cac92
Small fixes
aartiPl Dec 15, 2022
7e56914
Small fixes
aartiPl Dec 15, 2022
cd7012d
* Fixed Dockerfile
aartiPl Dec 17, 2022
ce9e2da
* Fixed README.adoc
aartiPl Dec 20, 2022
f8939ed
* Modified versioning schema
aartiPl Dec 31, 2022
6be5101
* Small fixes
aartiPl Jan 6, 2023
200b907
* Small fixes
aartiPl Jan 6, 2023
ce09a27
* Updated version
aartiPl Jan 11, 2023
ce6881c
* Updated docs
aartiPl Jan 11, 2023
069d505
* Updated docs
aartiPl Jan 12, 2023
ba4e6cd
* Updated dependencies
aartiPl Jan 13, 2023
129ac5f
* Updated version
aartiPl Jan 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
# https://techblog.dorogin.com/case-of-windows-line-ending-in-bash-script-7236f056abe
* text=auto
*.sh text eol=lf
*.bat text eol=crlf


# Use linux file endings for kts scripts because some of them contain shebangs and are thus partially interpreted by bash
*.kts text eol=lf
* text eol=lf

*.bat text eol=crlf

# also use linux style file endings for bash scripts without sh extension
kscript text eol=lf
gradlew text eol=lf
mydsl text eol=lf
*.png binary
*.jpg binary
*.jar binary
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
- os: windows-2022
variant: cmd
runs-on: ${{ matrix.os }}
timeout-minutes: 60
timeout-minutes: 30

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Setup Kotlin
uses: fwilhe2/setup-kotlin@main
with:
version: 1.6.21
version: 1.7.21

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
Expand Down Expand Up @@ -68,19 +68,19 @@ jobs:

if [[ "$OSTYPE" == "linux"* ]]; then
echo "Linux test..."
gradle -DosType=$OSTYPE -DincludeTags='posix | linux' integration
gradle -DosType=$OSTYPE -DincludeTags='posix | linux' integrationTest
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "MacOs test..."
gradle -DosType=$OSTYPE -DincludeTags='posix | macos' integration
gradle -DosType=$OSTYPE -DincludeTags='posix | macos' integrationTest
elif [[ "$OSTYPE" == "cygwin" ]]; then
echo "Cygwin test..."
gradle -DosType=$OSTYPE -DincludeTags='posix | cygwin' integration
gradle -DosType=$OSTYPE -DincludeTags='posix | cygwin' integrationTest
elif [[ "$OSTYPE" == "msys" ]]; then
echo "MSys test..."
gradle -DosType=$OSTYPE -DincludeTags='posix | msys' integration
gradle -DosType=$OSTYPE -DincludeTags='posix | msys' integrationTest
elif [[ "$OSTYPE" == "freebsd"* ]]; then
echo "FreeBsd test..."
gradle -DosType=$OSTYPE -DincludeTags='posix' integration
gradle -DosType=$OSTYPE -DincludeTags='posix' integrationTest
else
echo "Unknown OS"
exit 1
Expand All @@ -93,7 +93,7 @@ jobs:
echo "Windows test..."
gradle clean assemble test
if %errorlevel% neq 0 exit /b %errorlevel%
gradle -DosType=windows -DincludeTags="windows" integration
gradle -DosType=windows -DincludeTags="windows" integrationTest

- name: Install Cygwin (only Windows)
if: matrix.variant == 'cygwin'
Expand All @@ -108,4 +108,4 @@ jobs:
echo "Changing directory to $GITHUB_WORKSPACE ..."
cd $GITHUB_WORKSPACE
gradle clean assemble test || { echo 'Compilation or Unit tests failed' ; exit 1; }
gradle -DosType=$OSTYPE -DincludeTags='posix | cygwin' integration
gradle -DosType=$OSTYPE -DincludeTags='posix | cygwin' integrationTest
57 changes: 28 additions & 29 deletions .github/workflows/installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
kscript_version:
description: 'KScript version to test'
required: true
default: '4.0.2'
default: '4.1.1'

jobs:
build:
Expand All @@ -15,22 +15,31 @@ jobs:
matrix:
os:
- ubuntu-20.04
- macos-10.15
- macos-12
- windows-2022
variant:
- sdkman
include:
- os: macos-12
variant: brew
# - os: windows-2022
# variant: sdkman-cygwin, scoop-windows


runs-on: ${{ matrix.os }}
timeout-minutes: 30
timeout-minutes: 60

env:
KSCRIPT_VERSION: ${{ github.event.inputs.kscript_version }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: fwilhe2/setup-kotlin@main
with:
version: 1.6.21
version: 1.7.21

- name: Prerequisites for ${{ runner.os }}
shell: bash
Expand All @@ -41,36 +50,26 @@ jobs:
cp /c/msys64/usr/bin/bash.exe /c/Windows/System32/bash.exe
fi

- name: Install sdkman
# for Windows by default it runs MSYS
- name: Check SdkMan for ${{ runner.os }}
if: matrix.variant == 'sdkman'
shell: bash
run: |
bash -c "curl -s "https://get.sdkman.io" | bash"
source "$HOME/.sdkman/bin/sdkman-init.sh"

- name: Test installers for ${{ runner.os }}
shell: bash
run: |
echo "Bash path: $(which bash)"

# sdkman
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install kscript ${{ env.KSCRIPT_VERSION }}
kscript --help
kscript -d "println(1+1)"
sdk uninstall kscript ${{ env.KSCRIPT_VERSION }}

if [ "$RUNNER_OS" == "Windows" ]; then
true
elif [ "$RUNNER_OS" == "Linux" ]; then
true
elif [ "$RUNNER_OS" == "macOS" ]; then
# brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install holgerbrandl/tap/kscript
kscript --help
kscript -d "println(1+1)"
brew uninstall holgerbrandl/tap/kscript
else
echo "Unknown OS"
exit 1
fi

- name: Check brew for ${{ runner.os }}
if: matrix.variant == 'brew'
shell: bash
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew install kscripting/tap/kscript
kscript --help
kscript -d "println(1+1)"
brew uninstall kscripting/tap/kscript
40 changes: 0 additions & 40 deletions .github/workflows/release.yml

This file was deleted.

5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ build/
target/
out/

# Cache of project
.gradletasknamecache

*.iml
.idea

kscript.jar
kscript.jar
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Holger Brandl
Copyright (c) 2022 Holger Brandl, Marcin Kuszczak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading