Polish Gradle expression references
Expand all expression `$` references to the full `${...}` form.
This commit is contained in:
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@ dependencies {
|
||||
|
||||
compileJava {
|
||||
doLast {
|
||||
println "$name compiler args: ${options.compilerArgs}"
|
||||
println "${name} compiler args: ${options.compilerArgs}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,6 @@ plugins {
|
||||
|
||||
compileJava {
|
||||
doLast {
|
||||
println "$name compiler args: ${options.compilerArgs}"
|
||||
println "${name} compiler args: ${options.compilerArgs}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ plugins {
|
||||
task('javaCompileTasksCompilerArgs') {
|
||||
doFirst {
|
||||
tasks.withType(JavaCompile) {
|
||||
println "$name compiler args: ${options.compilerArgs}"
|
||||
println "${name} compiler args: ${options.compilerArgs}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ version = '1.0'
|
||||
uploadBootArchives {
|
||||
repositories {
|
||||
mavenDeployer {
|
||||
repository(url: "file:$buildDir/repo")
|
||||
repository(url: "file:${buildDir}/repo")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ version = '1.0'
|
||||
uploadBootArchives {
|
||||
repositories {
|
||||
mavenDeployer {
|
||||
repository(url: "file:$buildDir/repo")
|
||||
repository(url: "file:${buildDir}/repo")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ version = '1.0'
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
url "$buildDir/repo"
|
||||
url "${buildDir}/repo"
|
||||
}
|
||||
}
|
||||
publications {
|
||||
|
||||
@@ -14,7 +14,7 @@ version = '1.0'
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
url "$buildDir/repo"
|
||||
url "${buildDir}/repo"
|
||||
}
|
||||
}
|
||||
publications {
|
||||
|
||||
Reference in New Issue
Block a user