removed bintray and replaced it with a local mvn repos (#1785)

* removed bintray and replaced it with a local mvn repos

* checkout scm

* publish stage in Jenkinsfile
This commit is contained in:
Frank Spijkerman
2018-05-13 12:08:51 +02:00
committed by Raoul
parent f5b6357b1c
commit 4e73891f99
2 changed files with 11 additions and 19 deletions

5
Jenkinsfile vendored
View File

@@ -1,6 +1,6 @@
node { node {
stage('Preparation') { stage('Preparation') {
git url: 'https://github.com/raoulvdberge/refinedstorage.git', branch: 'mc1.12' checkout scm
} }
cache(maxCacheSize: 250, caches: [ cache(maxCacheSize: 250, caches: [
[$class: 'ArbitraryFileCache', excludes: 'modules-2/modules-2.lock,*/plugin-resolution/**', includes: '**/*', path: '${HOME}/.gradle/caches'], [$class: 'ArbitraryFileCache', excludes: 'modules-2/modules-2.lock,*/plugin-resolution/**', includes: '**/*', path: '${HOME}/.gradle/caches'],
@@ -14,4 +14,7 @@ node {
stage('Archive artifacts') { stage('Archive artifacts') {
archiveArtifacts 'build/libs/*.jar' archiveArtifacts 'build/libs/*.jar'
} }
stage('Publish artifacts') {
sh "./gradlew publish"
}
} }

View File

@@ -11,10 +11,6 @@ buildscript {
} }
} }
plugins {
id "com.jfrog.bintray" version "1.7"
}
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
@@ -122,10 +118,10 @@ artifacts {
publishing { publishing {
publications { publications {
MyPublication(MavenPublication) { mavenJava(MavenPublication) {
groupId = project.group groupId = project.group
artifactId = project.archivesBaseName artifactId = project.archivesBaseName
version = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER') version = project.version + '-' + System.getenv('BUILD_NUMBER')
artifact deobfJar artifact deobfJar
artifact sourceJar artifact sourceJar
artifact apiJar artifact apiJar
@@ -134,17 +130,10 @@ publishing {
} }
} }
bintray { publishing {
user = System.getenv('BINTRAY_USER') repositories {
key = System.getenv('BINTRAY_KEY') maven {
publications = ['MyPublication'] url "/var/www/repo"
publish = true
pkg {
repo = 'dev'
name = 'refinedstorage'
version {
name = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER')
released = new Date()
} }
} }
} }