A gradle plugin for publishing artifacts to CurseForge.
If you're using ForgeGradle, which you probably are, the following script is a bare-minimum. For more details about customization, check out the Wiki.
To find out which versions are available, check HERE.
plugins {
id 'net.minecraftforge.gradle.forge' version '2.0.2'
id 'com.matthewprenger.cursegradle' version '<VERSION>'
}
curseforge {
apiKey = '123-456' // This should really be in a gradle.properties file
project {
id = '12345'
changelog = 'Changes' // A file can also be set using: changelog = file('changelog.txt')
releaseType = 'beta'
}
}
If you want to test the latest and greatest version, you can use the snapshot builds, but be warned: they may be unstable! Your buildscript needs the following entries instead of the plugins { }
block.
buildscript {
repositories {
jcenter()
maven { url = 'https://oss.sonatype.org/content/groups/public' }
}
dependencies {
classpath 'com.matthewprenger:CurseGradle:<VERSION>-SNAPSHOT'
}
}
apply plugin: 'com.matthewprenger.cursegradle'