Skip to content

Commit

Permalink
Gradle: fix pom-scijava version extraction
Browse files Browse the repository at this point in the history
Thanks @petebankhead for noticing, and for the diagnosis!

Closes #281.
  • Loading branch information
ctrueden committed Dec 11, 2024
1 parent fc6d946 commit 8d52f8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gradle-scijava/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ plugins {
layout.buildDirectory = layout.projectDirectory.asFile.parentFile.resolve("target/gradle")

group = "org.scijava"
version = File("../pom.xml").readText().substringAfter("<version>").substringBefore('<')
version = File("../pom.xml")
.readText()
.substringAfter("<artifactId>pom-scijava<")
.substringAfter("<version>")
.substringBefore('<')

javaPlatform {
allowDependencies()
Expand Down

0 comments on commit 8d52f8b

Please sign in to comment.