summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jenkinsfile15
-rw-r--r--build.gradle59
2 files changed, 16 insertions, 58 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 00000000..655deb3f
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,15 @@
1node {
2 stage 'Checkout'
3
4 checkout scm
5
6 stage 'Build'
7
8 sh "rm -rf build/libs/"
9 sh "chmod +x gradlew"
10 sh "./gradlew build"
11
12 stage "Archive artifacts"
13
14 sh "./gradlew upload"
15}
diff --git a/build.gradle b/build.gradle
index 8dc5d416..d42cd61a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -166,61 +166,4 @@ artifacts {
166// And finally, make the build generate / install the jars. 166// And finally, make the build generate / install the jars.
167build.dependsOn install 167build.dependsOn install
168 168
169uploadArchives { 169apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/maven.gradle'
170 repositories {
171 mavenDeployer {
172 if (project.hasProperty('mavenPass')){
173 repository(url: "http://mavenupload.modmuss50.me/") {
174 authentication(userName: "buildslave", password: project.getProperty('mavenPass'))
175 }
176 }
177 else{
178 repository(url: "file:///var/www/maven/")
179 }
180 pom {
181 groupId = "net.fabricmc"
182 version = project.version
183 artifactId = project.archivesBaseName
184 project {
185 name project.archivesBaseName
186 packaging 'jar'
187 description 'Enigma'
188 url 'https://github.com/FabricMC/Enigma'
189 scm {
190 url 'https://github.com/FabricMC/Enigma'
191 connection 'scm:git:git@github.com:FabricMC/Enigma.git'
192 developerConnection 'scm:git:git@github.com:FabricMC/Enigma.git'
193 }
194 issueManagement {
195 system 'github'
196 url 'https://github.com/FabricMC/Enigma/issues'
197 }
198 licenses {
199 license {
200 name 'License'
201 url 'https://github.com/FabricMC/Enigma/blob/master/readme.txt'
202 distribution 'repo'
203 }
204 }
205 developers {
206 developer {
207 id 'modmuss50'
208 name 'modmuss50'
209 roles { role 'developer' }
210 }
211 developer {
212 id 'Thog'
213 name 'Thog'
214 roles { role 'developer' }
215 }
216 developer {
217 id 'Cuchaz'
218 name 'Cuchaz'
219 roles { role 'developer' }
220 }
221 }
222 }
223 }
224 }
225 }
226} \ No newline at end of file