Skip to content

Commit 2159644

Browse files
committed
simpler target path
1 parent 7bc3f0e commit 2159644

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ repositories {
5858
sourceSets {
5959
main {
6060
java {
61-
srcDirs += "${buildDir}/version/java/main"
61+
srcDirs "${buildDir}/version"
6262
}
6363
}
6464
}

buildSrc/src/main/groovy/VersionTask.groovy

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ class VersionTask extends DefaultTask {
2828
*/
2929
@TaskAction
3030
void generateVersion () {
31-
def path = Path.of (
32-
targetDir, "version", "main", "java", "io", "openapiprocessor", "spring")
33-
31+
def path = Path.of (targetDir, "version", "io", "openapiprocessor", "spring")
3432
Files.createDirectories(path)
3533

3634
def target = path.resolve ("Version.java")

0 commit comments

Comments
 (0)