initial commit
This commit is contained in:
63
gradle/config/groovyc-static.groovy
Normal file
63
gradle/config/groovyc-static.groovy
Normal file
@@ -0,0 +1,63 @@
|
||||
import groovy.transform.CompileStatic
|
||||
import io.tswf.groovy.bettergroovy.transforms.annotationgstrings.GStringsInAnnotations
|
||||
import io.tswf.groovy.bettergroovy.transforms.directnamedargs.DirectNamedArgsCall
|
||||
import io.tswf.groovy.bettergroovy.transforms.namedvariantdefaults.NamedVariantDefaults
|
||||
import io.tswf.groovy.bettergroovy.transforms.scan.ScanSourceSet
|
||||
import io.tswf.groovy.bettergroovy.transforms.extensions.SilentStaticTypeChecker
|
||||
import io.tswf.groovy.bettergroovy.transforms.nullsafe.NullSafeVariables
|
||||
import io.tswf.groovy.bettergroovy.transforms.validation.checkedmapconstructor.CheckMapConstructors
|
||||
import io.tswf.groovy.bettergroovy.transforms.extensions.SameSourceSetExtensionMethods
|
||||
|
||||
withConfig(configuration) {
|
||||
ast(ScanSourceSet)
|
||||
|
||||
if (getBooleanProperty("groovycOptionSilentTypeChecking")) {
|
||||
ast(SilentStaticTypeChecker)
|
||||
}
|
||||
|
||||
|
||||
if (getBooleanProperty("groovycOptionSameSourceExtensions")) {
|
||||
ast(SameSourceSetExtensionMethods)
|
||||
}
|
||||
|
||||
if (getBooleanProperty("groovycOptionGlobalGStringInAnnotationsTransform")) {
|
||||
ast(GStringsInAnnotations)
|
||||
}
|
||||
|
||||
if (getBooleanProperty("groovycOptionGlobalNamedVariantsDirectCallsTransform")) {
|
||||
ast(DirectNamedArgsCall)
|
||||
}
|
||||
|
||||
if (getBooleanProperty("groovycOptionGlobalNamedVariantsDefaultsTransform")) {
|
||||
ast(NamedVariantDefaults)
|
||||
}
|
||||
|
||||
if (getBooleanProperty("groovycOptionGlobalNullsafeChecks")) {
|
||||
ast(NullSafeVariables)
|
||||
}
|
||||
|
||||
if (getBooleanProperty("groovycOptionGlobalCheckMapConstructors")) {
|
||||
ast(CheckMapConstructors)
|
||||
}
|
||||
|
||||
if (getBooleanProperty("groovycOptionSLF4JLevels")) {
|
||||
ast(io.tswf.groovy.bettergroovy.transforms.slf4j.SLF4JLevels)
|
||||
}
|
||||
|
||||
if (getBooleanProperty("groovycOptionGlobalCompileStaticTransform")) {
|
||||
ast(CompileStatic)
|
||||
}
|
||||
}
|
||||
|
||||
boolean getBooleanProperty(String featureName) {
|
||||
def stringProperty = getStringProperty(featureName)
|
||||
if (stringProperty != null) {
|
||||
return stringProperty.equalsIgnoreCase("true")
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
String getStringProperty(String propertyName) {
|
||||
return System.getProperty(propertyName)
|
||||
}
|
||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
#Mon Jul 23 20:37:40 CDT 2018
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
|
||||
Reference in New Issue
Block a user