From 09d7679b5730abb407920eb63e2b441f6efcb3c7 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Wed, 31 Jul 2024 17:26:57 +0200 Subject: [PATCH] Add update warnings --- repoman/src/main/resources/templates/CHANGELOG.md.kte | 8 ++++++++ repoman/src/main/resources/templates/CONTRIBUTING.md.kte | 8 ++++++++ repoman/src/main/resources/templates/README.md.kte | 8 ++++++++ repoman/src/main/resources/templates/build.gradle.kts.kte | 6 ++++++ repoman/src/main/resources/templates/gitignore.kte | 6 ++++++ .../src/main/resources/templates/settings.gradle.kts.kte | 6 ++++++ 6 files changed, 42 insertions(+) diff --git a/repoman/src/main/resources/templates/CHANGELOG.md.kte b/repoman/src/main/resources/templates/CHANGELOG.md.kte index 27e9776..96ef1ff 100644 --- a/repoman/src/main/resources/templates/CHANGELOG.md.kte +++ b/repoman/src/main/resources/templates/CHANGELOG.md.kte @@ -1,5 +1,13 @@ @import org.metaborg.repoman.meta.RepoMetadata @param meta: RepoMetadata +@if(meta.files.changelog.update) + + +@endif # Changelog All notable changes to this project will be documented in this file. diff --git a/repoman/src/main/resources/templates/CONTRIBUTING.md.kte b/repoman/src/main/resources/templates/CONTRIBUTING.md.kte index dacca16..8a62296 100644 --- a/repoman/src/main/resources/templates/CONTRIBUTING.md.kte +++ b/repoman/src/main/resources/templates/CONTRIBUTING.md.kte @@ -1,5 +1,13 @@ @import org.metaborg.repoman.meta.RepoMetadata @param meta: RepoMetadata +@if(meta.files.contributing.update) + + +@endif # ${meta.title} ## How to Contribute diff --git a/repoman/src/main/resources/templates/README.md.kte b/repoman/src/main/resources/templates/README.md.kte index a18d063..f55730d 100644 --- a/repoman/src/main/resources/templates/README.md.kte +++ b/repoman/src/main/resources/templates/README.md.kte @@ -1,5 +1,13 @@ @import org.metaborg.repoman.meta.RepoMetadata @param meta: RepoMetadata +@if(meta.files.readme.update) + + +@endif # ${meta.title} [![Build][github-badge:build]][github:build] [![License][license-badge]][license] diff --git a/repoman/src/main/resources/templates/build.gradle.kts.kte b/repoman/src/main/resources/templates/build.gradle.kts.kte index c1de171..e1c686f 100644 --- a/repoman/src/main/resources/templates/build.gradle.kts.kte +++ b/repoman/src/main/resources/templates/build.gradle.kts.kte @@ -1,6 +1,12 @@ @import org.metaborg.repoman.meta.Defaults @import org.metaborg.repoman.meta.RepoMetadata @param meta: RepoMetadata +@if(meta.files.gradleRootProject.update) +// !! THIS FILE WAS GENERATED USING repoman !! +// Modify `repo.yaml` instead and use `repoman` to update this file +// See: https://github.com/metaborg/metaborg-gradle/ + +@endif import org.metaborg.convention.Person import org.metaborg.convention.MavenPublishConventionExtension diff --git a/repoman/src/main/resources/templates/gitignore.kte b/repoman/src/main/resources/templates/gitignore.kte index 76d70b9..1e3040d 100644 --- a/repoman/src/main/resources/templates/gitignore.kte +++ b/repoman/src/main/resources/templates/gitignore.kte @@ -1,5 +1,11 @@ @import org.metaborg.repoman.meta.RepoMetadata @param meta: RepoMetadata +@if(meta.files.gitignore.update) +# !! THIS FILE WAS GENERATED USING repoman !! +# Modify `repo.yaml` instead and use `repoman` to update this file +# See: https://github.com/metaborg/metaborg-gradle/ + +@endif # Java *.class *.log diff --git a/repoman/src/main/resources/templates/settings.gradle.kts.kte b/repoman/src/main/resources/templates/settings.gradle.kts.kte index cd4687b..7f14f90 100644 --- a/repoman/src/main/resources/templates/settings.gradle.kts.kte +++ b/repoman/src/main/resources/templates/settings.gradle.kts.kte @@ -1,5 +1,11 @@ @import org.metaborg.repoman.meta.RepoMetadata @param meta: RepoMetadata +@if(meta.files.gradleRootProject.update) +// !! THIS FILE WAS GENERATED USING repoman !! +// Modify `repo.yaml` instead and use `repoman` to update this file +// See: https://github.com/metaborg/metaborg-gradle/ + +@endif dependencyResolutionManagement { repositories { maven("https://artifacts.metaborg.org/content/groups/public/")