Skip to content

Commit

Permalink
Update Gradle config to reflect main branch rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden authored and skalarproduktraum committed Jul 21, 2023
1 parent 8d22016 commit 6b2aa7d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ tasks {
dokkaSourceSets.configureEach {
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(URL("https://github.com/scenerygraphics/scenery/tree/master/src/main/kotlin"))
remoteUrl.set(URL("https://github.com/scenerygraphics/scenery/tree/main/src/main/kotlin"))
remoteLineSuffix.set("#L")
}
}
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/scenery/base.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ tasks {
* otherwise: a reference to a file containing the current commit hash */
val head = file(gitFolder + "HEAD").readText().split(":") // .git/HEAD
val isCommit = head.size == 1 // e5a7c79edabbf7dd39888442df081b1c9d8e88fd
// def isRef = head.length > 1 // ref: refs/heads/master
// def isRef = head.length > 1 // ref: refs/heads/main
when {
isCommit -> head[0] // e5a7c79edabb
else -> file(gitFolder + head[1].trim()) // .git/refs/heads/master
else -> file(gitFolder + head[1].trim()) // .git/refs/heads/main
.readText()
}.trim().take(digit)
}
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/scenery/docs.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// dokkaSourceSets.configureEach {
// sourceLink {
// localDirectory.set(file("src/main/kotlin"))
// remoteUrl.set(URL("https://github.com/scenerygraphics/scenery/tree/master/src/main/kotlin"))
// remoteUrl.set(URL("https://github.com/scenerygraphics/scenery/tree/main/src/main/kotlin"))
// remoteLineSuffix.set("#L")
// }
// }
Expand All @@ -42,4 +42,4 @@
//}
//
//fun ArtifactHandler.archives(artifactNotation: Any) =
// add("archives", artifactNotation)
// add("archives", artifactNotation)
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/scenery/publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tasks {
dokkaSourceSets.configureEach {
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(URL("https://github.com/scenerygraphics/scenery/tree/master/src/main/kotlin"))
remoteUrl.set(URL("https://github.com/scenerygraphics/scenery/tree/main/src/main/kotlin"))
remoteLineSuffix.set("#L")
}
}
Expand All @@ -26,7 +26,7 @@ tasks {
dokkaSourceSets.configureEach {
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(URL("https://github.com/scenerygraphics/scenery/tree/master/src/main/kotlin"))
remoteUrl.set(URL("https://github.com/scenerygraphics/scenery/tree/main/src/main/kotlin"))
remoteLineSuffix.set("#L")
}
}
Expand Down

0 comments on commit 6b2aa7d

Please sign in to comment.