This plugin allows the developer to insert sCrypt compilation directly into their build pipeline.
Clone this project to a local folder and run the publishToMavenLocal task:
$./gradlew publishToMavenLocalWhen using the plugin inside your own project, specify the plugin ID and configuration sections
in your build.gradle as follows:
plugins {
id 'org.twostack.gradle.scrypt' version '1.0.0-SNAPSHOT'
}
scrypt {
compilerHome = file("${System.properties.get("user.home")}/.vscode/extensions/bsv-scrypt.scrypt-1.1.0/")
contractFolder = file(projectDir.path + "/src/main/scrypt/")
destinationFolder = file("build/resources")
}NOTE: The contractFolder and destinationFolder settings are optional, and will default to the settings
in the example above.
To run the gradle task :
$./gradlew compileScryptAll of the sCrypt contracts in the contractFolder will be compiled and written out to the destinationFolder.
The sCrypt compiler will be invoked with the following equivalent commandline parameters:
$scryptc compile [source_file] -O --asm -o [output_file]