Bintray stuff

This commit is contained in:
Raoul Van den Berge
2016-09-03 14:11:31 +02:00
parent feedcc388f
commit 2195bbc62b
3 changed files with 36 additions and 27 deletions

View File

@@ -10,6 +10,14 @@ buildscript {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
}
}
plugins {
id "com.jfrog.bintray" version "1.7"
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'net.minecraftforge.gradle.forge'
version = "1.0"
@@ -63,3 +71,29 @@ processResources {
exclude 'mcmod.info'
}
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId = project.group
artifactId = project.archivesBaseName
version = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER')
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['MyPublication']
publish = true
pkg {
repo = 'dev'
name = 'refinedstorage'
version {
name = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER')
released = new Date()
}
}
}