Skip to content

Commit 2dd8711

Browse files
committed
Dont use afterEvaluate block as groupId property is used in 'if' check
1 parent b9207c6 commit 2dd8711

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

buildSrc/src/main/kotlin/ru/nsk/maven-publish.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ publishing {
3939
groupId = project.group.toString()
4040
version = project.version.toString()
4141
} else {
42-
afterEvaluate {
43-
groupId = project.group.toString()
44-
version = project.version.toString()
45-
}
42+
groupId = rootProject.group.toString()
43+
version = rootProject.version.toString()
4644
}
4745

4846
from(components["java"])

0 commit comments

Comments
 (0)