mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-16 17:44:23 +01:00
Update loom and reckon
This commit is contained in:
parent
a1d15e4da2
commit
ef83ca820f
1 changed files with 8 additions and 19 deletions
27
build.gradle
27
build.gradle
|
@ -5,10 +5,10 @@ buildscript {
|
||||||
}
|
}
|
||||||
plugins {
|
plugins {
|
||||||
id 'java-library'
|
id 'java-library'
|
||||||
id 'fabric-loom' version '0.12-SNAPSHOT'
|
id 'fabric-loom' version '1.1-SNAPSHOT'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id 'com.modrinth.minotaur' version '2.+'
|
id 'com.modrinth.minotaur' version '2.+'
|
||||||
id 'org.ajoberstar.reckon' version '0.13.0'
|
id 'org.ajoberstar.reckon' version '0.16.1'
|
||||||
}
|
}
|
||||||
apply plugin: 'dex.plugins.outlet'
|
apply plugin: 'dex.plugins.outlet'
|
||||||
|
|
||||||
|
@ -32,24 +32,14 @@ loom {
|
||||||
}
|
}
|
||||||
|
|
||||||
reckon {
|
reckon {
|
||||||
scopeFromProp()
|
|
||||||
stageFromProp('beta', 'rc', 'final')
|
stageFromProp('beta', 'rc', 'final')
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
maven {
|
maven { name 'modmenu'; url 'https://maven.terraformersmc.com/releases' }
|
||||||
name = 'modmenu'
|
maven { name 'minelp'; url 'https://repo.minelittlepony-mod.com/maven/snapshot' }
|
||||||
url = 'https://maven.terraformersmc.com/releases'
|
maven { name 'minelp-release'; url 'https://repo.minelittlepony-mod.com/maven/release' }
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name = 'minelp'
|
|
||||||
url = 'https://repo.minelittlepony-mod.com/maven/snapshot'
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name = 'minelp-release'
|
|
||||||
url = 'https://repo.minelittlepony-mod.com/maven/release'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -110,8 +100,7 @@ tasks.withType(JavaCompile) {
|
||||||
|
|
||||||
tasks.modrinth {
|
tasks.modrinth {
|
||||||
onlyIf {
|
onlyIf {
|
||||||
def stage = version.version.stage.value
|
version.toString().indexOf('beta') == -1
|
||||||
stage == null || stage.name != 'beta'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,8 +159,8 @@ publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "MineLittlePony"
|
name = "MineLittlePony"
|
||||||
def stage = version.version.stage.value
|
def isBeta = version.toString().indexOf('beta') != -1;
|
||||||
url = "s3://repo.minelittlepony-mod.com/maven/${stage != null && stage.name == 'beta' ? 'snapshot' : 'release'}"
|
url = "s3://repo.minelittlepony-mod.com/maven/${isBeta ? 'snapshot' : 'release'}"
|
||||||
credentials(AwsCredentials) {
|
credentials(AwsCredentials) {
|
||||||
accessKey = System.env.ACCESS_KEY
|
accessKey = System.env.ACCESS_KEY
|
||||||
secretKey = System.env.SECRET_KEY
|
secretKey = System.env.SECRET_KEY
|
||||||
|
|
Loading…
Reference in a new issue