Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Maintain developers + contributors in separate files #89

Merged
merged 1 commit into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 31 additions & 20 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,37 @@ allprojects {
inceptionYear.set("2021")
url.set("https://github.com/projectnessie/cel-java")
developers {
developer {
id.set("snazy")
name.set("Robert Stupp")
url.set("https://github.com/snazy")
}
developer {
id.set("nastra")
name.set("Eduard Tudenhoefner")
url.set("https://github.com/nastra")
}
developer {
id.set("rymurr")
name.set("Ryan Murray")
url.set("https://github.com/rymurr")
}
developer {
id.set("laurentgo")
name.set("Laurent Goujon")
url.set("https://github.com/laurentgo")
}
file(rootProject.file("gradle/developers.csv"))
.readLines()
.map { line -> line.trim() }
.filter { line -> !line.isEmpty() && !line.startsWith("#") }
.forEach { line ->
val args = line.split(",")
if (args.size < 3) {
throw GradleException("gradle/developers.csv contains invalid line '${line}'")
}
developer {
id.set(args[0])
name.set(args[1])
url.set(args[2])
}
}
}
contributors {
file(rootProject.file("gradle/contributors.csv"))
.readLines()
.map { line -> line.trim() }
.filter { line -> !line.isEmpty() && !line.startsWith("#") }
.forEach { line ->
val args = line.split(",")
if (args.size > 2) {
throw GradleException("gradle/contributors.csv contains invalid line '${line}'")
}
contributor {
name.set(args[1])
url.set(args[2])
}
}
}
organization {
name.set("Project Nessie")
Expand Down
Empty file added gradle/contributors.csv
Empty file.
5 changes: 5 additions & 0 deletions gradle/developers.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
snazy,Robert Stupp,https://github.com/snazy
nastra,Eduard Tudenhoefner,https://github.com/nastra
rymurr,Ryan Murray,https://github.com/rymurr
laurentgo,Laurent Goujon,https://github.com/laurentgo