Skip to content

Commit

Permalink
Fix metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Aug 1, 2024
1 parent 54e09d0 commit 854982f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ Unless required by applicable law or agreed to in writing, software distributed
[mvn-rel-badge:org.metaborg.convention.java:org.metaborg.convention.java.gradle.plugin]: https://img.shields.io/nexus/r/org.metaborg.convention.java/org.metaborg.convention.java.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-rel-badge:org.metaborg.convention.maven-publish:org.metaborg.convention.maven-publish.gradle.plugin]: https://img.shields.io/nexus/r/org.metaborg.convention.maven-publish/org.metaborg.convention.maven-publish.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-rel-badge:org.metaborg.convention.root-project:org.metaborg.convention.root-project.gradle.plugin]: https://img.shields.io/nexus/r/org.metaborg.convention.root-project/org.metaborg.convention.root-project.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-rel-badge:org.metaborg:catalog]: https://img.shields.io/nexus/s/org.metaborg/catalog?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-rel-badge:org.metaborg:platform]: https://img.shields.io/nexus/s/org.metaborg/platform?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:org.metaborg:catalog]: https://img.shields.io/nexus/s/org.metaborg/catalog?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:org.metaborg:platform]: https://img.shields.io/nexus/s/org.metaborg/platform?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:org.metaborg.convention.settings:org.metaborg.convention.settings.gradle.plugin]: https://img.shields.io/nexus/s/org.metaborg.convention.settings/org.metaborg.convention.settings.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:org.metaborg.convention.java:org.metaborg.convention.java.gradle.plugin]: https://img.shields.io/nexus/s/org.metaborg.convention.java/org.metaborg.convention.java.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:org.metaborg.convention.maven-publish:org.metaborg.convention.maven-publish.gradle.plugin]: https://img.shields.io/nexus/s/org.metaborg.convention.maven-publish/org.metaborg.convention.maven-publish.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
Expand Down
2 changes: 2 additions & 0 deletions repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ files:
- path: "depman/"
- path: "example/"
- path: "repoman/"
githubIssueTemplates:
generate: false
25 changes: 9 additions & 16 deletions repoman/src/main/kotlin/org/metaborg/repoman/meta/RepoMetadata.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data class RepoMetadata(
/** The name of the main branch. For example: `"master"` */
val mainBranch: String = Defaults.MAIN_BRANCH,
/** The release tag prefix to use. For example: `"devenv-release/"` */
val releaseTagPrefix: String = Defaults.RELEASE_TAG_PREFIX,
val releaseTagPrefix: String = Defaults.RELEASE_TAG_PREFIX, // Spoofax 3
/** The default Maven group of the artifacts in the build. For example: `"org.metaborg.devenv"` */
val mavenGroup: String = "org.metaborg",

Expand All @@ -49,13 +49,6 @@ data class RepoMetadata(
/** A list of Gradle plugins published by the repo as part of Spoofax 3. */
val spoofax3Plugins: List<GradlePlugin> = emptyList(),

/** A list of Maven libraries published by the repo. */
val libraries: List<MavenArtifact> = emptyList(),
/** A list of Spoofax languages published by the repo. */
val languages: List<MavenArtifact> = emptyList(),
/** A list of Gradle plugins published by the repo. */
val plugins: List<GradlePlugin> = emptyList(),

/** An ordered list of developers that may be contacted about the repo. */
val developers: List<Person> = emptyList(),
/** An ordered list of (main) contributors that also worked on the repo. */
Expand Down Expand Up @@ -100,7 +93,7 @@ data class Readme(
/** Whether to generate the file. */
val generate: Boolean = true,
/** Whether to update the file. */
val update: Boolean = true,
val update: Boolean = generate,
/** Content to include in the main body of the readme; or `null`. */
val body: Markdown? = null,
)
Expand All @@ -111,7 +104,7 @@ data class License(
/** Whether to generate the file. */
val generate: Boolean = true,
/** Whether to update the file. */
val update: Boolean = true,
val update: Boolean = generate,
/** Whether to use a Markdown license file. */
val markdown: Boolean = true,
)
Expand All @@ -122,7 +115,7 @@ data class Contributing(
/** Whether to generate the file. */
val generate: Boolean = true,
/** Whether to update the file. */
val update: Boolean = true,
val update: Boolean = generate,
)

/** Metadata for the CODE_OF_CONDUCT.md file. */
Expand All @@ -131,7 +124,7 @@ data class CodeOfConduct(
/** Whether to generate the file. */
val generate: Boolean = true,
/** Whether to update the file. */
val update: Boolean = true,
val update: Boolean = generate,
)

/** Metadata for the CHANGELOG.md file. */
Expand All @@ -149,7 +142,7 @@ data class Gitignore(
/** Whether to generate the file. */
val generate: Boolean = true,
/** Whether to update the file. */
val update: Boolean = true,
val update: Boolean = generate,
/** Extra entries to include at the bottom of the .gitignore file; or `null`. */
val extra: String? = null,
)
Expand All @@ -160,7 +153,7 @@ data class GradleWrapper(
/** Whether to generate the files. */
val generate: Boolean = true,
/** Whether to update the file. */
val update: Boolean = true,
val update: Boolean = generate,
/** The version of the Gradle wrapper to generate. */
val gradleVersion: String = "7.6.4",
/** The kind of Gradle distribution type to use, either `"bin"` or `"all"`. */
Expand Down Expand Up @@ -192,7 +185,7 @@ data class GithubWorkflows(
/** Whether to generate the files. */
val generate: Boolean = true,
/** Whether to update the file. */
val update: Boolean = true,
val update: Boolean = generate,
/** Whether to publish releases using GitHub CI (instead of Jenkins or something else). */
val publishRelease: Boolean = false,
/** Whether to publish snapshots using GitHub CI. */
Expand All @@ -213,7 +206,7 @@ data class GithubIssueTemplates(
/** Whether to generate the files. */
val generate: Boolean = true,
/** Whether to update the file. */
val update: Boolean = true,
val update: Boolean = generate,
/** Whether to automatically assign developers to issues. */
val assignDevelopers: Boolean = true,
/** Whether to use the GitHub Discussions tab. */
Expand Down
2 changes: 1 addition & 1 deletion repoman/src/main/resources/templates/README.md.kte
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Unless required by applicable law or agreed to in writing, software distributed
[mvn-rel-badge:${plugin.id}:${plugin.id}.gradle.plugin]: https://img.shields.io/nexus/r/${plugin.id}/${plugin.id}.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
@endfor
@for(artifact in meta.allArtifacts)
[mvn-rel-badge:${artifact.group}:${artifact.name}]: https://img.shields.io/nexus/s/${artifact.group}/${artifact.name}?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:${artifact.group}:${artifact.name}]: https://img.shields.io/nexus/s/${artifact.group}/${artifact.name}?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
@endfor
@for(plugin in meta.spoofax3Plugins)
[mvn-snap-badge:${plugin.id}:${plugin.id}.gradle.plugin]: https://img.shields.io/nexus/s/${plugin.id}/${plugin.id}.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
Expand Down

0 comments on commit 854982f

Please sign in to comment.