Skip to content

Commit f4385df

Browse files
committed
chore(Gradle): Do not assign the version to itself
When applying the plugin to the root project, do not assign the version to itself. While at it, move the line from the top of the file to the bottom to adhere better to common ordering. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 00c0dcd commit f4385df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/main/kotlin/ort-base-conventions.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
* License-Filename: LICENSE
1818
*/
1919

20-
version = rootProject.version
21-
2220
repositories {
2321
mavenCentral()
2422

@@ -63,3 +61,5 @@ tasks.withType<Jar>().configureEach {
6361
attributes["Implementation-Version"] = project.version
6462
}
6563
}
64+
65+
if (project != rootProject) version = rootProject.version

0 commit comments

Comments
 (0)