Skip to content

Commit

Permalink
Don't have IDE.properties affect the Gradle build when not running in…
Browse files Browse the repository at this point in the history
… IDE.
  • Loading branch information
sambsnyd committed Jan 27, 2024
1 parent 40a5463 commit a56f529
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion IDE.properties.tmp
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ rewrite-bom

# Tools that are used less frequently to, for example, build new language parsers.

tools
#tools
2 changes: 1 addition & 1 deletion rewrite-bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

dependencies {
constraints {
rootProject.subprojects.filter { it != project && !it.name.contains("benchmark") }.sortedBy { it.name }.forEach {
rootProject.subprojects.filter { it != project && !it.name.contains("benchmark") && it.name != "tools" }.sortedBy { it.name }.forEach {
api(it)
}
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ val allProjects = listOf(
)

val includedProjects = file("IDE.properties").let {
if (it.exists()) {
if (it.exists() && (System.getProperty("idea.active") != null || System.getProperty("idea.sync.active") != null)) {
val props = java.util.Properties()
it.reader().use { reader ->
props.load(reader)
Expand Down

0 comments on commit a56f529

Please sign in to comment.