Skip to content

Commit

Permalink
Update build file for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Jul 14, 2017
1 parent c533782 commit 50f1218
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
46 changes: 45 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ buildscript {
}
}

plugins {
id "com.jfrog.bintray" version "1.7"
}

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'net.minecraftforge.gradle.forge'

Expand Down Expand Up @@ -102,11 +109,48 @@ processResources
}
}

jar {
include "com/jaquadro/minecraft/gardenstuff/**"
include "assets/**"
include "mcmod.info"
include "pack.mcmeta"
}

task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
classifier = 'deobf'
}

artifacts {
archives deobfJar
archives sourceJar
archives jar
}

publishing.publications {
StorageDrawers(MavenPublication) {
groupId = project.group
artifactId = project.archivesBaseName
version = project.version
artifact deobfJar
artifact sourceJar
artifact jar
}
}

bintrayUpload.dependsOn build

bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['GardenStuff']
publish = true
pkg {
repo = 'dev'
name = 'gardenstuff'
version {
name = project.version
released = new Date()
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx3G
minecraft_base_version=1.12
minecraft_version=1.12
mod_version=2.0.0
chameleon_version=4.1.0
chameleon_version=4.1.2
chameleon_max_version=5.0.0

jei_version=4.7.0.67

0 comments on commit 50f1218

Please sign in to comment.