Please also publish

This commit is contained in:
Sollace 2020-05-24 00:08:44 +02:00
parent 3b7f3dde8a
commit 5f13295a46
2 changed files with 67 additions and 9 deletions

View file

@ -1,11 +1,16 @@
language: java
install: true
jdk:
- openjdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- openjdk8
jobs:
include:
- stage: check
script: ./gradlew check
- stage: publish
script: ./gradlew build publish
stages:
- name: check
if: type IN (pull_request)
- name: publish
if: NOT type IN (pull_request)

View file

@ -171,3 +171,56 @@ reobf {
shadowJar{}
}
publishing {
publications {
maven(MavenPublication) {
afterEvaluate {
artifact(remapJar)
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
pom {
name = "MineLittlePony"
description = "HD Skins support for Minecraft"
url = "https://minelittlepony-mod.com"
licenses {
license {
name = "MIT Public License"
url = "https://tlo.mit.edu/learn-about-intellectual-property/software-and-open-source-licensing"
}
}
developers {
developer {
id = "killjoy1221"
name = "Matthew Messinger"
email = "mattmess1221@gmail.com"
}
developer {
id = "sollace"
}
}
scm {
connection = 'scm:git:git://github.com/MineLittlePony/MineLittlePony.git'
developerConnection = 'scm:git:ssh://github.com/MineLittlePony/MineLittlePony.git'
url = 'https://github.com/MineLittlePony/MineLittlePony'
}
}
}
}
repositories {
maven {
name = "MineLittlePony"
def mvn = 's3://repo.minelittlepony-mod.com/maven'
url = release == 'SNAPSHOT' ? "$mvn/snapshot" : "$mvn/release"
credentials(AwsCredentials) {
accessKey = System.env.ACCESS_KEY
secretKey = System.env.SECRET_KEY
}
}
}
}