Giter VIP home page Giter VIP logo

insaniam's Introduction

Insaniam

Because modding Minecraft makes you go insane.

What is this?

This is a simple gradle plugin that provides some nice to have features, some specific to Minecraft modding other specific to Java development in general.

Features

  • Changelog generation based on a createachangelog.com schema
  • Creates standard mod versions based on the current Minecraft version (NeoForge style)

That's it for now ๐Ÿ˜˜ but more is coming!

Please see the maven for the latest version of the plugin.

plugins {
    id 'dev.nanite.plugins.insaniam' version '0.2.0-SNAPSHOT'
}

Changelog generation

  insaniam {
    changelog {
      file = file('path/to/changelog.md')
      versionPattern = ~/## \\[[^]]+]/ // This is the default pattern and can be omitted
      fallbackValue = "No changelog provided" // This is the default value and can be omitted
      version = "1.0.0" // This will pull from 'version' in the gradle project if omitted
    }
  }
  
  def changelog = insaniamUtils.createChangelog() // This will create a changelog string that can be used in a task
}

Version generation

  version = "1-beta"

  insaniam {
    minecraftVersion = "1.21" // This can be omitted if you have a `minecraft_version` in your gradle project
  }
  
  // This will produce a version string like "21.0.1-beta" based on the Minecraft version in the style of NeoForge versioning
  def modVersion = insaniamUtils.createModVersion() // This will create a mod version string that can be used in a task

  // Sometimes you might just want to instantly change the version to the new one
  // version = modVersion
}

Usage

build.gradle

plugins {
    id 'dev.nanite.plugins.insaniam' version '0.2.0-SNAPSHOT'
}

settings.gradle

pluginManagement {
    repositories {
        maven {
            url 'https://maven.nanite.dev/snapshots'
        }
        gradlePluginPortal()
    }
}

insaniam's People

Contributors

michaelhillcox avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.