Kotlin scripting environment based on TabooLib

Overview

Artifex

Artifex 提供了完善的 Kotlin Script (.kts) 运行环境,且支持 TabooLib 全特性。

val compiledScript = Artifex.api().scriptCompiler().compile {

    // 传入源文件
    it.source(File(getDataFolder(), "test.kts"))

    it.onReport { r ->
        if (r.severity > ScriptResult.Severity.DEBUG) {
            warning(r.message)
        }
    }

    it.onSuccess { r ->
        // 生成 jar 文件
        r.generateScriptJar(newFile(getDataFolder(), "test.jar"))
    }

    it.onFailure {
        warning("编译失败")
    }
}

// 运行脚本
scriptCompiled.invoke(...)

使用方式

https://github.com/taboolib/artifex/wiki

感谢

You might also like...
Kotlin Based Spring Boot ETL project
Kotlin Based Spring Boot ETL project

Adverity ETL REST API (AERA) A simple ETL Spring Boot application with H2. This API provides the following basics functionalities: Endpoint that retur

Spring Boot project scaffold written in Kotlin, which is based on the Official Guide.

Kotlin-Spring-Boot Spring Boot project scaffold written in Kotlin, which is based on the Official Guide. Development environment Windows choco install

XliteKt is an open-source, and forever open-source Kotlin based OSRS Emulator for educational purposes.

xlitekt Introduction XliteKt is an open-source, and forever open-source Kotlin based OSRS Emulator for educational purposes. Currently built around th

EVM-based Chains With Kotlin

EVM-based Chains The source data is in _data/chains. Each chain has its own file with the filename being the CAIP-2 representation as name and .json a

Kreds - a thread-safe, idiomatic, coroutine based Redis client written in 100% Kotlin

Kreds Kreds is a thread-safe, idiomatic, coroutine based Redis client written in 100% Kotlin. Why Kreds? Kreds is designed to be EASY to use. Kreds ha

❤️ A sample Marvel heroes application based on MVVM (ViewModel, Coroutines, LiveData, Room, Repository, Koin)  architecture.
❤️ A sample Marvel heroes application based on MVVM (ViewModel, Coroutines, LiveData, Room, Repository, Koin) architecture.

MarvelHeroes MarvelHeroes is a demo application based on modern Android application tech-stacks and MVVM architecture. Fetching data from the network

🦁 A Disney app using transformation motions based on MVVM (ViewModel, Coroutines, Flow, LiveData, Room, Repository, Koin) architecture.
🦁 A Disney app using transformation motions based on MVVM (ViewModel, Coroutines, Flow, LiveData, Room, Repository, Koin) architecture.

DisneyMotions A demo Disney app using transformation motions based on MVVM architecture. The motion system is included in the 1.2.0-alpha05 released m

A simple demo project based on MVVM clean architecture and material design & animations.
A simple demo project based on MVVM clean architecture and material design & animations.

GithubFollows A simple demo project based on MVVM clean architecture and material design & animations. Architecture Specs & Open-source libraries Mini

This project provides declarative camunda delegates for Spring based application

camunda-delegator-lib Features Declarative style for delegate code Generated delegates documentation and templates for camunda modeler(this feature is

Owner
TABOO-PROJECT
病毒库
TABOO-PROJECT
Tiny library to ease the use of environment variables with support for .env files

asimov/environment Tiny library to ease the use of environment variables with support for .env files. Installation Gradle (Kotlin) repositories {

Nicolas Bottarini 1 Jan 8, 2022
A simple GUI frontend for the norns docker environment

This is a simple GUI frontend for the norns docker environment. It displays the virtual norns UI using the screenshot server and exposes OSC controls.

Will Winder 4 Jul 30, 2022
Android SDK development environment Docker image

AndroidSDK Android SDK development environment Docker image Goals It contains the complete Android SDK enviroment, is able to perform all regular Andr

Jing Li 1k Dec 30, 2022
YAML-based source-based kotlin module descriptors

kproject - Liberate your Kotlin projects YAML-based source-based kotlin module descriptors that runs on top of gradle. Define your kotlin multiplatfor

KorGE Game Engine & Korlibs 16 Jan 31, 2023
Maxibon kata for Kotlin Developers. The main goal is to practice property based testing.

Kata Maxibon for Kotlin. We are here to practice property based testing. We are going to use KotlinTest to write our tests. We are going to practice p

Karumi 44 Oct 3, 2022
TheMovies 🎬 A demo project for The Movie DB based on Kotlin MVVM architecture and material design & animations.

A simple project for The Movie DB based on Kotlin MVVM clean architecture and material design & animations. How to build on your environment

Jaewoong Eum 420 Nov 29, 2022
Kotlin backend based on the Clean Architecture principles. Ktor, JWT, Exposed, Flyway, KGraphQL/GraphQL generated endpoints, Gradle.

Kotlin Clean Architecture Backend Kotlin backend based on the Clean Architecture principles. The application is separated into three modules: Domain,

null 255 Jan 3, 2023
A Kotlin-based combo editor

KtEdit A Kotlin-based combo editor Features Remove Duplicates Shuffle Lines Split File More features will be adding in future updates. Benchmarks Remo

null 0 Jan 14, 2022
A kotlin based server for the milky store mobile application

Milky Store backend server A kotlin ?? ?? based backend server to power up the milky store android application FEATURES : Secure serialisation ?? lead

The X 3 Oct 21, 2021