How to interpret Gradle DSL

The task foo variation of the task declaration syntax is special in that it’s implemented using a Groovy compiler plugin. As far as I know, this is the only case where a compiler plugin is used to support a special syntax.

Gradle artifactory plugin saying “Cannot cast object ‘org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention’…”

The problem was that when I added the various bits to the sibling project that meant I had two projects defining the buildscript {} section. buildscript { … dependencies { classpath group:’org.jfrog.buildinfo’, name: ‘build-info-extractor-gradle’, version: ‘3.0.1’ } } Apparently that caused two different versions of the dependency to exist in the classpath, hence the error. … Read more

What is the difference between mustRunAfter and shouldRunAfter in task ordering in Gradle?

It’s all documented well, please have a look here. Especially: When you use the “must run after” ordering rule you specify that taskB must always run after taskA, whenever both taskA and taskB will be run. This is expressed as taskB.mustRunAfter(taskA). The “should run after” ordering rule is similar but less strict as it will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)