Skip to content

Commit

Permalink
replace the symlinked gradle.properties with manually-loaded Proper…
Browse files Browse the repository at this point in the history
…ties

The symnlinked properties file caused issues with syncing in Windows.

#763 (comment)
  • Loading branch information
RBusarow committed Nov 2, 2023
1 parent 0ee0ccb commit 1f5c15d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions gradle-plugin-build-logic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@ java {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

// The :gradle-plugin project needs the `GROUP` and `VERSION_NAME` values
// from the main build's `gradle.properties`. We can't just use a symlink because Windows exists.
// https://github.com/square/anvil/pull/763#discussion_r1379563691
Properties mainBuildProperties = new Properties().tap { props ->
file("../gradle.properties").withInputStream { stream ->
props.load(stream)
}
}
mainBuildProperties.each { key, value ->
ext[key.toString()] = value
}
1 change: 0 additions & 1 deletion gradle-plugin-build-logic/gradle.properties

This file was deleted.

0 comments on commit 1f5c15d

Please sign in to comment.