Skip to content

Commit f79e5d5

Browse files
committed
fixup! Chore(infra): Prepare atomicfu for including to the Kotlin Aggregate build //KTI-1016
Fix compilation error
1 parent f8bd635 commit f79e5d5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

atomicfu-maven-plugin/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ task generatePomFile(dependsOn: [compileKotlin, ':atomicfu-transformer:publishTo
4545
appendNode('project.build.sourceEncoding', 'UTF-8')
4646
}
4747
appendNode('repositories').with {
48-
if (kotlinDevRepoUrl != "") {
48+
if (!kotlinDevRepoUrl.isEmpty() && kotlinDevRepoUrl != null) {
4949
appendNode('repository').with {
5050
appendNode('id', 'dev')
5151
appendNode('url', kotlinDevRepoUrl)
@@ -80,11 +80,11 @@ task generatePluginDescriptor(type: Exec, dependsOn: generatePomFile) {
8080
if (mavenUserHome != null) args.add("-Dmaven.user.home=${new File(mavenUserHome).getAbsolutePath()}")
8181
if (mavenRepoLocal != null) args.add("-Dmaven.repo.local=${new File(mavenRepoLocal).getAbsolutePath()}")
8282
args.addAll([
83-
'--settings', './settings.xml',
84-
'--errors',
85-
'--batch-mode',
86-
'--file', pomFile.toString(),
87-
'org.apache.maven.plugins:maven-plugin-plugin:3.5.1:descriptor'
83+
'--settings', './settings.xml',
84+
'--errors',
85+
'--batch-mode',
86+
'--file', pomFile.toString(),
87+
'org.apache.maven.plugins:maven-plugin-plugin:3.5.1:descriptor'
8888
])
8989
commandLine args
9090
doLast {

0 commit comments

Comments
 (0)