Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Setup for Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
Daomephsta committed Sep 2, 2019
1 parent 08c0288 commit bc6fb8e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
12 changes: 12 additions & 0 deletions JenkinsW
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'chmod +x gradlew'
sh './gradlew clean --stacktrace'
sh './gradlew build publish --refresh-dependencies --stacktrace'
}
}
}
}
16 changes: 15 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ plugins {

archivesBaseName='unpick'
group = 'io.github.weavemc'
version = '2.0.0'
version = 'unknown'
if (ENV.BUILD_NUMBER) {
version = ENV.BUILD_NUMBER
}

targetCompatibility = 1.8

Expand Down Expand Up @@ -38,6 +41,17 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
}

publishing {
repositories {
if (project.hasProperty('weavemc_pass')) {
maven {
url = 'http://deploy.modmuss50.me/'
credentials {
username = 'weavemc'
password = project.getProperty('weavemc_pass')
}
}
}
}
publications {
binary(MavenPublication) {
from components.java
Expand Down

0 comments on commit bc6fb8e

Please sign in to comment.