Gradle plugin for the fjåge framework.
plugins {
id("com.github.ngyewch.gradle-fjage-plugin") version "0.4.0"
}
dependencies {
"fjage"("com.github.org-arl:fjage:1.6.2")
"fjage"("org.codehaus.groovy:groovy-all:2.5.8")
implementation("org.yaml:snakeyaml:1.25")
testImplementation("junit:junit:4.12")
}
tasks {
// run via ./gradlew test1 --console=plain --no-daemon
register("test1", org.arl.fjage.gradle.FjageGroovyBootTask::class) {
scripts = listOf("initrc-console-shell", "01_hello")
systemProperties = mapOf("java.util.logging.config.file" to "logging.properties")
}
}
fjage {
// The following are defaults.
mainSourceDirectory = file("src/main/fjage")
testSourceDirectory = file("src/test/fjage")
// Copy extra files.
copyInto("misc", fileTree("src/main/fjage2") {
exclude("**/*.log")
})
}
plugins {
id("com.github.ngyewch.gradle-fjage-plugin") version "0.4.0"
}
dependencies {
"fjage"("com.github.org-arl:fjage:1.6.2")
"fjage"("org.codehaus.groovy:groovy-all:2.5.8")
implementation("org.yaml:snakeyaml:1.25")
testImplementation("junit:junit:4.12")
}
// run via ./gradlew test1 --console=plain --no-daemon
tasks.register("test1", org.arl.fjage.gradle.FjageGroovyBootTask) {
scripts = ["initrc-console-shell", "01_hello"]
systemProperties = ["java.util.logging.config.file": "logging.properties"]
}
fjage {
// The following are defaults.
mainSourceDirectory = file("src/main/fjage")
testSourceDirectory = file("src/test/fjage")
// Copy extra files.
copyInto("misc", fileTree("src/main/fjage2") {
exclude("**/*.log")
})
}
fjage
Name | Type | Description |
---|---|---|
mainSourceDirectory |
File |
Main fjage directory. Defaults to src/main/fjage . |
testSourceDirectory |
File |
Test fjage directory. Defaults to src/test/fjage . |
Name | Type | Description |
---|---|---|
copyInto(String destination, FileTree fileTree) |
void |
Copies the specified files into the specified destination directory in the fjage project. |
copyInto(FileTree fileTree) |
void |
Copies the specified files into the base directory of the fjage project. |
- Depends on:
assemble
- Makes a fjage package containing class files, dependencies and metadata.
- Depends on:
classes
- Run scripts scripts via
org.arl.fjage.shell.GroovyBoot
. - Working directory:
$buildDir/fjageGroovyBoot
Name | Type | Description |
---|---|---|
scripts |
List<String> |
Script locations (resolved against mainSourceDirectory and testSourceDirectory ). |
classpath |
FileCollection |
Classpath. Defaults to sourceSets.test.runtimeClasspath . |
systemProperties |
Map<String, ?> |
System properties. |
- Depends on:
packageFjage
Additional directories.
- src
- main
- fjage
// fjage files for packaging/distribution
- fjage
- test
- fjage
// fjage files for testing
- fjage
- main
- Dependencies provided by fjage.