diff options
author | Rene Groeschke <rene@gradle.com> | 2015-11-21 20:06:06 +0000 |
---|---|---|
committer | Rene Groeschke <rene@gradle.com> | 2015-11-21 20:06:06 +0000 |
commit | 10e0ef10c68db0dde1c3aec0fc074f161024b643 (patch) | |
tree | c3b842264ea7266a25f3f0fc8fff98262cd0e90a /src/main/groovy | |
parent | f0807811f48c50b6a5fe7816ef48c148be9f9903 (diff) | |
download | frege-gradle-plugin-10e0ef10c68db0dde1c3aec0fc074f161024b643.tar.gz frege-gradle-plugin-10e0ef10c68db0dde1c3aec0fc074f161024b643.tar.bz2 frege-gradle-plugin-10e0ef10c68db0dde1c3aec0fc074f161024b643.zip |
remove optional annotations for property that are not optional but configurable
Diffstat (limited to 'src/main/groovy')
-rw-r--r-- | src/main/groovy/frege/gradle/tasks/FregeCompile.groovy | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/main/groovy/frege/gradle/tasks/FregeCompile.groovy b/src/main/groovy/frege/gradle/tasks/FregeCompile.groovy index 13b617c..d39f15f 100644 --- a/src/main/groovy/frege/gradle/tasks/FregeCompile.groovy +++ b/src/main/groovy/frege/gradle/tasks/FregeCompile.groovy @@ -1,8 +1,6 @@ package frege.gradle.tasks import groovy.transform.TypeChecked -import groovy.transform.TypeCheckingMode import org.gradle.api.Action -import org.gradle.api.artifacts.Configuration import org.gradle.api.file.FileCollection import org.gradle.api.tasks.Input import org.gradle.api.tasks.Optional @@ -19,59 +17,44 @@ class FregeCompile extends AbstractCompile { @Input String stackSize = "4m" - @Optional @Input boolean hints = false - @Optional @Input boolean optimize = false - @Optional - @Input boolean verbose = false - @Optional @Input boolean inline = true - @Optional @Input boolean make = true - @Optional @Input boolean compileGeneratedJava = true - @Optional @Input String target = "" - @Optional @Input boolean comments = false - @Optional @Input boolean suppressWarnings = false - @Optional @Input String explain = "" - @Optional @Input String extraArgs = "" - @Optional @Input String allArgs = "" // this is an option to overrule all other settings - @Optional @Input String module = "" - @Optional @Input List<File> fregePaths = [] @@ -82,11 +65,9 @@ class FregeCompile extends AbstractCompile { @Input List<String> allJvmArgs = [] - @Optional @Input String encoding = "" - @Optional @Input String prefix = "" @@ -95,8 +76,6 @@ class FregeCompile extends AbstractCompile { @Override @TaskAction protected void compile() { - logConfigurationInfo() - def jvmArgs = allJvmArgs if (jvmArgs.isEmpty()) { jvmArgs << "-Xss$stackSize".toString() @@ -125,16 +104,6 @@ class FregeCompile extends AbstractCompile { return this; } - void logConfigurationInfo() { - def path = project.files(compileConfig()).getAsPath() - logger.info("Compile configuation as path: $path") - } - - @TypeChecked(TypeCheckingMode.SKIP) - Configuration compileConfig() { - project.configurations.compile - } - protected List<String> assembleArguments() { List args = [] if (hints) @@ -191,8 +160,6 @@ class FregeCompile extends AbstractCompile { } else { args = (args + extraArgs.split().toList()).toList() } - args } - } |