Code Snippets Gradle

Short texts Gradle 🧑‍💻 Code snippets Gradle ✍️ Reading lists Gradle 👀

build.gradle

android {     defaultConfig {         …         multiDexEnabled true     }     … } dependencies {    implementation ‘androidx.multidex:multidex:2.0.1’  }

flutter-food-V1

# Miscellaneous *.class *.log *.pyc *.swp .DS_Store .atom/ .buildlog/ .history .svn/ # IntelliJ related *.iml *.ipr *.iws .idea/ # The .vscode folder contains launch configuration and tasks you configure in # VS Code which you may wish to be included in version control, so this line # is commented out by default. #.vscode/ # Flutter/Dart/Pub […]

flutter-food-V1

# Miscellaneous *.class *.log *.pyc *.swp .DS_Store .atom/ .buildlog/ .history .svn/ # IntelliJ related *.iml *.ipr *.iws .idea/ # The .vscode folder contains launch configuration and tasks you configure in # VS Code which you may wish to be included in version control, so this line # is commented out by default. #.vscode/ # Flutter/Dart/Pub […]

flutter-food-V1

# Miscellaneous *.class *.log *.pyc *.swp .DS_Store .atom/ .buildlog/ .history .svn/ # IntelliJ related *.iml *.ipr *.iws .idea/ # The .vscode folder contains launch configuration and tasks you configure in # VS Code which you may wish to be included in version control, so this line # is commented out by default. #.vscode/ # Flutter/Dart/Pub […]

Finding values of file properties for kotlin compile tasks

subprojects { tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompileWithWorkers).configureEach { task -> doFirst { task.inputs.visitRegisteredProperties(new PropertyVisitor(task)) } } } import org.gradle.api.internal.tasks.properties.* class PropertyVisitor extends PropertyVisitor.Adapter { def task def buildScan PropertyVisitor(task) { this.task = task this.buildScan = task.project.rootProject.buildScan } void visitInputFileProperty( String propertyName, boolean optional, boolean skipWhenEmpty, org.gradle.internal.fingerprint.DirectorySensitivity directorySensitivity, org.gradle.internal.fingerprint.LineEndingSensitivity lineEndingSensitivity, boolean incremental, Class