diff options
Diffstat (limited to 'buildSrc')
-rw-r--r-- | buildSrc/build.gradle | 15 | ||||
-rw-r--r-- | buildSrc/lib/frege-3.21.232-g7b05453.jar | bin | 10720001 -> 0 bytes | |||
-rw-r--r-- | buildSrc/src/main/groovy/org/gradle/frege/FregePlugin.groovy | 13 | ||||
-rw-r--r-- | buildSrc/src/main/groovy/org/gradle/frege/FregeTask.groovy | 77 | ||||
-rw-r--r-- | buildSrc/src/main/resources/META-INF/gradle-plugins/frege.properties | 1 |
5 files changed, 0 insertions, 106 deletions
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle deleted file mode 100644 index bbe4c7d..0000000 --- a/buildSrc/build.gradle +++ /dev/null @@ -1,15 +0,0 @@ -apply plugin: "groovy" - -repositories { - - flatDir name:"frege-lib", dirs:"lib" - -} - -dependencies { - - compile ":frege:3.21.232-g7b05453" - compile gradleApi() - compile localGroovy() - -}
\ No newline at end of file diff --git a/buildSrc/lib/frege-3.21.232-g7b05453.jar b/buildSrc/lib/frege-3.21.232-g7b05453.jar Binary files differdeleted file mode 100644 index 254d961..0000000 --- a/buildSrc/lib/frege-3.21.232-g7b05453.jar +++ /dev/null diff --git a/buildSrc/src/main/groovy/org/gradle/frege/FregePlugin.groovy b/buildSrc/src/main/groovy/org/gradle/frege/FregePlugin.groovy deleted file mode 100644 index 93c5f26..0000000 --- a/buildSrc/src/main/groovy/org/gradle/frege/FregePlugin.groovy +++ /dev/null @@ -1,13 +0,0 @@ -package org.gradle.frege - -import org.gradle.api.Plugin -import org.gradle.api.Project - -class FregePlugin implements Plugin<Project> { - - void apply(Project project) { - project.apply(plugin: 'base') - project.task('compileFrege', type: FregeTask, group: 'Build') - } - -} diff --git a/buildSrc/src/main/groovy/org/gradle/frege/FregeTask.groovy b/buildSrc/src/main/groovy/org/gradle/frege/FregeTask.groovy deleted file mode 100644 index 26598b9..0000000 --- a/buildSrc/src/main/groovy/org/gradle/frege/FregeTask.groovy +++ /dev/null @@ -1,77 +0,0 @@ -package org.gradle.frege - -import org.gradle.api.DefaultTask -import org.gradle.api.GradleException -import org.gradle.api.InvalidUserDataException -import org.gradle.api.tasks.* -import org.gradle.process.internal.DefaultJavaExecAction -import org.gradle.process.internal.JavaExecAction -import org.gradle.api.internal.file.FileResolver - -class FregeTask extends DefaultTask { - - private static final FREGE_FILE_EXTENSION_PATTERN = ~/.*\.fr?$/ - - @Input boolean hints - - @Input boolean verbose - - @Input boolean inline = true - - @Input boolean make = true - - @Input boolean skipCompile - - @Input boolean includeStale - - // TODO: Find default - @OutputDirectory File outputDir = new File("build/classes") - - @TaskAction - void executeCompile() { - println "Compiling Frege to " + outputDir - - FileResolver fileResolver = getServices().get(FileResolver.class) - JavaExecAction action = new DefaultJavaExecAction(fileResolver) - action.setMain("frege.compiler.Main") - action.setClasspath(project.files(project.configurations.compile)) - - List args = [] - if (hints) - args << "-hints" - if (inline) - args << "-inline" - if (make) - args << "-make" - if (verbose) - args << "-v" - if (skipCompile) - args << "-j" - - args << "-d" - args << outputDir - - - eachFileRecurse(new File("src/main/frege")) { File file -> - if (file.name =~ FREGE_FILE_EXTENSION_PATTERN) { - args << file - } - - } - - action.args(args) - - action.execute() - } - - private static void eachFileRecurse(File dir, Closure fileProcessor) { - dir.eachFile { File file -> - if (file.directory) { - eachFileRecurse(file, fileProcessor) - } else { - fileProcessor(file) - } - } - } - -}
\ No newline at end of file diff --git a/buildSrc/src/main/resources/META-INF/gradle-plugins/frege.properties b/buildSrc/src/main/resources/META-INF/gradle-plugins/frege.properties deleted file mode 100644 index cc3210c..0000000 --- a/buildSrc/src/main/resources/META-INF/gradle-plugins/frege.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=org.gradle.frege.FregePlugin |