@@ -96,27 +96,27 @@ public abstract class ShadowApplicationPlugin : Plugin<Project> {
96
96
}
97
97
98
98
protected open fun Project.configureDistribution () {
99
- distributions.register(DISTRIBUTION_NAME ) {
100
- it .distributionBaseName.convention(
99
+ distributions.register(DISTRIBUTION_NAME ) { dist ->
100
+ dist .distributionBaseName.convention(
101
101
provider {
102
102
// distributionBaseName defaults to `$project.name-$distribution.name`, applicationName defaults to project.name
103
103
// so we append the suffix to match the default distributionBaseName. Modified from `ApplicationPlugin.configureDistribution()`.
104
104
" ${applicationExtension.applicationName} -$DISTRIBUTION_NAME "
105
105
},
106
106
)
107
- it .contents { shadowDist ->
108
- shadowDist .from(file(" src/dist" ))
109
- shadowDist .into(" lib" ) { lib ->
107
+ dist .contents { distSpec ->
108
+ distSpec .from(file(" src/dist" ))
109
+ distSpec .into(" lib" ) { lib ->
110
110
lib.from(tasks.shadowJar)
111
111
// Reflects the value of the `Class-Path` attribute in the JAR manifest.
112
112
lib.from(configurations.shadow)
113
113
}
114
114
// Defaults to bin dir.
115
- shadowDist .into(provider(applicationExtension::getExecutableDir)) { bin ->
115
+ distSpec .into(provider(applicationExtension::getExecutableDir)) { bin ->
116
116
bin.from(tasks.startShadowScripts)
117
117
bin.filePermissions { permissions -> permissions.unix(UNIX_SCRIPT_PERMISSIONS ) }
118
118
}
119
- shadowDist .with (applicationExtension.applicationDistribution)
119
+ distSpec .with (applicationExtension.applicationDistribution)
120
120
}
121
121
}
122
122
}
0 commit comments