Skip to content

DaRacci/cog-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Requirements

How to set up.

In the root of your git repo run:

git submodule add https://github.com/DaRacci/cog-scripts.git

This will add the cog-scripts repo as a submodule to your repo, Which will make keeping them up-to-date easier.

Inside cog.toml, add the following:

pre_bump_hooks = [
    "nu -c \"cog-scripts/src/pre-bump.nu {{latest}} {{version}}\"",
]
post_bump_hooks = [
    "nu -c \"cog-scripts/src/post-bump.nu {{name}} {{latest}} {{version}} {{version+patch-SNAPSHOT}}\"",
]

Replacing {{name}} with your projects name.

If you want to auto-publish to Maven and make a GitHub Release append post-bump with -r.

To Define what projects or subprojects to publish append post-bump with -p [gradle paths] (separated by ',' and no spaces), use '.' to represent the root project, All supplied subprojects must have a publish task defined.

About

Scripts that make bumping and keeping my gradle projects up to date easier.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages