aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle21
1 files changed, 20 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index b70a9d0..b03ad5d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,15 +3,18 @@ buildscript {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
+ maven { url = "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
+ classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.4.0"
}
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
+apply plugin: "com.matthewprenger.cursegradle"
version = '1.16.1-1.1.1'
group = 'com.romangraef.tagtooltip' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
@@ -20,6 +23,8 @@ archivesBaseName = 'tagtooltip'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
+
+
minecraft {
// The mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD Snapshot are built nightly.
@@ -129,10 +134,24 @@ jar {
// Example configuration to allow publishing using the maven-publish task
// This is the preferred method to reobfuscate your jar file
-jar.finalizedBy('reobfJar')
+jar.finalizedBy('reobfJar')
// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
//publish.dependsOn('reobfJar')
+curseforge {
+ apiKey = System.getenv("CURSEFORGE_API_KEY")
+ project {
+ id = '402016'
+ changelog = file('CHANGELOG.md')
+ changelogType = 'markdown'
+ releaseType = 'release'
+ addGameVersion '1.16'
+ mainArtifact(jar) {
+ displayName = "Tag Tooltips ${project.version}"
+ }
+ }
+}
+
publishing {
publications {
mavenJava(MavenPublication) {