Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 1 addition & 29 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import java.nio.file.*;

ext.fireflyPath = "$rootDir.path/../firefly/"
apply from: "$fireflyPath/buildScript/base.gincl"

if (!file(fireflyPath).exists()) {
println ">> Firefly repository not found. Cloning it now. This will take a few minutes..."
Expand All @@ -10,36 +9,9 @@ if (!file(fireflyPath).exists()) {
}
}

allprojects {
defaultTasks 'preselect'
}

subprojects {
apply plugin: "java"
apply from: "$rootDir.path/buildScript/global.gincl"
apply from: "$fireflyPath/buildScript/global.gincl"
apply from: "$fireflyPath/buildScript/tasks.gincl"
}

task purge {
description= 'Removes all build files from this project, including node_module.'
doLast {
println('Removing build directories.')
delete "${rootDir}/build", "${rootDir}/jars/build", "${rootDir}/node_modules"
Files.delete(Paths.get("${rootDir}/yarn.lock"));
Files.delete(Paths.get("${rootDir}/package.json"));
Files.delete(Paths.get("${rootDir}/config/test"));
}
}

task clean {
description= 'Removes all build files except node_module(installed JS libraries).'
doLast {
println('Removing all build directories.')
delete "${rootDir}/build", "${rootDir}/jars/build"
}
}

task preselect {
description= 'A placeholder task to designate the task to run for each project. Similar to defaultTasks.'
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
org.gradle.jvmargs=-Xms256m -Xmx2048m
org.gradle.daemon=false