diff --git a/README.md b/README.md index 4ab2f27..dae0128 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/repo.yaml b/repo.yaml index 38cc36f..a835fb3 100644 --- a/repo.yaml +++ b/repo.yaml @@ -44,3 +44,5 @@ files: - path: "depman/" - path: "example/" - path: "repoman/" + githubIssueTemplates: + generate: false diff --git a/repoman/src/main/kotlin/org/metaborg/repoman/meta/RepoMetadata.kt b/repoman/src/main/kotlin/org/metaborg/repoman/meta/RepoMetadata.kt index 512fdb8..4c2667e 100644 --- a/repoman/src/main/kotlin/org/metaborg/repoman/meta/RepoMetadata.kt +++ b/repoman/src/main/kotlin/org/metaborg/repoman/meta/RepoMetadata.kt @@ -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", @@ -49,13 +49,6 @@ data class RepoMetadata( /** A list of Gradle plugins published by the repo as part of Spoofax 3. */ val spoofax3Plugins: List = emptyList(), - /** A list of Maven libraries published by the repo. */ - val libraries: List = emptyList(), - /** A list of Spoofax languages published by the repo. */ - val languages: List = emptyList(), - /** A list of Gradle plugins published by the repo. */ - val plugins: List = emptyList(), - /** An ordered list of developers that may be contacted about the repo. */ val developers: List = emptyList(), /** An ordered list of (main) contributors that also worked on the repo. */ @@ -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, ) @@ -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, ) @@ -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. */ @@ -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. */ @@ -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, ) @@ -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"`. */ @@ -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. */ @@ -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. */ diff --git a/repoman/src/main/resources/templates/README.md.kte b/repoman/src/main/resources/templates/README.md.kte index 47e400c..85459cc 100644 --- a/repoman/src/main/resources/templates/README.md.kte +++ b/repoman/src/main/resources/templates/README.md.kte @@ -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