Polish Gradle expression references

Expand all expression `$` references to the full `${...}` form.
This commit is contained in:
Phillip Webb
2020-01-21 18:33:33 -08:00
parent 89237634c7
commit bfd2ca7fd9
29 changed files with 60 additions and 60 deletions

View File

@@ -9,7 +9,7 @@ if (project.hasProperty('applyApplicationPlugin')) {
task('taskExists') {
doFirst {
println "$taskName exists = ${tasks.findByName(taskName) != null}"
println "${taskName} exists = ${tasks.findByName(taskName) != null}"
}
}
@@ -17,14 +17,14 @@ task('distributionExists') {
doFirst {
boolean found = project.hasProperty('distributions') &&
distributions.findByName(distributionName) != null
println "$distributionName exists = $found"
println "${distributionName} exists = ${found}"
}
}
task('javaCompileEncoding') {
doFirst {
tasks.withType(JavaCompile) {
println "$name = ${options.encoding}"
println "${name} = ${options.encoding}"
}
}
}
@@ -32,7 +32,7 @@ task('javaCompileEncoding') {
task('startScriptsDefaultJvmOpts') {
doFirst {
tasks.withType(org.springframework.boot.gradle.tasks.application.CreateBootStartScripts) {
println "$name defaultJvmOpts = $defaultJvmOpts"
println "${name} defaultJvmOpts = ${defaultJvmOpts}"
}
}
}

View File

@@ -14,6 +14,6 @@ dependencies {
compileJava {
doLast {
println "$name compiler args: ${options.compilerArgs}"
println "${name} compiler args: ${options.compilerArgs}"
}
}

View File

@@ -5,6 +5,6 @@ plugins {
compileJava {
doLast {
println "$name compiler args: ${options.compilerArgs}"
println "${name} compiler args: ${options.compilerArgs}"
}
}

View File

@@ -11,7 +11,7 @@ tasks.withType(JavaCompile) {
task('javaCompileTasksCompilerArgs') {
doFirst {
tasks.withType(JavaCompile) {
println "$name compiler args: ${options.compilerArgs}"
println "${name} compiler args: ${options.compilerArgs}"
}
}
}

View File

@@ -10,7 +10,7 @@ tasks.withType(JavaCompile) {
task('javaCompileTasksCompilerArgs') {
doFirst {
tasks.withType(JavaCompile) {
println "$name compiler args: ${options.compilerArgs}"
println "${name} compiler args: ${options.compilerArgs}"
}
}
}

View File

@@ -6,7 +6,7 @@ plugins {
task('javaCompileTasksCompilerArgs') {
doFirst {
tasks.withType(JavaCompile) {
println "$name compiler args: ${options.compilerArgs}"
println "${name} compiler args: ${options.compilerArgs}"
}
}
}

View File

@@ -8,14 +8,14 @@ if (project.hasProperty('applyJavaPlugin')) {
task('taskExists') {
doFirst {
println "$taskName exists = ${tasks.findByName(taskName) != null}"
println "${taskName} exists = ${tasks.findByName(taskName) != null}"
}
}
task('javaCompileEncoding') {
doFirst {
tasks.withType(JavaCompile) {
println "$name = ${options.encoding}"
println "${name} = ${options.encoding}"
}
}
}

View File

@@ -13,7 +13,7 @@ tasks.withType(KotlinCompile) {
task('kotlinCompileTasksJavaParameters') {
doFirst {
tasks.withType(KotlinCompile) {
println "$name java parameters: ${kotlinOptions.javaParameters}"
println "${name} java parameters: ${kotlinOptions.javaParameters}"
}
}
}

View File

@@ -9,7 +9,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
task('kotlinCompileTasksJavaParameters') {
doFirst {
tasks.withType(KotlinCompile) {
println "$name java parameters: ${kotlinOptions.javaParameters}"
println "${name} java parameters: ${kotlinOptions.javaParameters}"
}
}
}

View File

@@ -8,6 +8,6 @@ if (project.hasProperty('applyWarPlugin')) {
task('taskExists') {
doFirst {
println "$taskName exists = ${tasks.findByName(taskName) != null}"
println "${taskName} exists = ${tasks.findByName(taskName) != null}"
}
}

View File

@@ -14,7 +14,7 @@ version = '1.0'
uploadBootArchives {
repositories {
mavenDeployer {
repository(url: "file:$buildDir/repo")
repository(url: "file:${buildDir}/repo")
}
}
}

View File

@@ -14,7 +14,7 @@ version = '1.0'
uploadBootArchives {
repositories {
mavenDeployer {
repository(url: "file:$buildDir/repo")
repository(url: "file:${buildDir}/repo")
}
}
}

View File

@@ -14,7 +14,7 @@ version = '1.0'
publishing {
repositories {
maven {
url "$buildDir/repo"
url "${buildDir}/repo"
}
}
publications {

View File

@@ -14,7 +14,7 @@ version = '1.0'
publishing {
repositories {
maven {
url "$buildDir/repo"
url "${buildDir}/repo"
}
}
publications {