-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
152 lines (133 loc) · 4.67 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
buildscript {
dependencies {
classpath 'com.github.dexman545:Outlet:1.6.1'
}
}
plugins {
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish'
id 'com.modrinth.minotaur' version '2.+'
id 'org.ajoberstar.reckon' version '0.13.1'
}
apply plugin: 'io.github.dexman545.outlet'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
withSourcesJar()
}
outlet.allowSnapshotsForProject = false
outlet.mcVersionRange = ">=${project.minecraft_version}"
group = project.group
description = project.displayname
archivesBaseName = project.name
loom {
mixin.defaultRefmapName = 'bigpony.mixin.refmap.json'
}
reckon {
scopeFromProp()
stageFromProp('beta', 'rc', 'final')
}
repositories {
mavenLocal()
maven { name 'modmenu'; url 'https://maven.terraformersmc.com/releases' }
maven { name 'minelp'; url 'https://repo.minelittlepony-mod.com/maven/snapshot' }
maven { name 'minelp-release'; url 'https://repo.minelittlepony-mod.com/maven/release' }
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modApi "net.fabricmc:fabric-loader:${project.loader_version}"
modApi "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modApi "com.minelittlepony:minelittlepony:${project.minelp_version}"
modApi "com.minelittlepony:kirin:${project.kirin_version}"
include "com.minelittlepony:kirin:${project.kirin_version}"
modApi "com.sollace:fabwork:${project.fabwork_version}"
include "com.sollace:fabwork:${project.fabwork_version}"
modCompileOnly "com.minelittlepony:hdskins:${project.hd_skins_version}"
modCompileOnly "com.terraformersmc:modmenu:${project.modmenu_version}"
}
processResources {
inputs.property "version", project.version.toString()
filesMatching("fabric.mod.json") {
expand "version": project.version.toString(),
"minecraftVersion": ">=${project.minecraft_version}",
"loaderVersion": ">=${project.loader_version}",
"fabricVersion": ">=${project.fabric_version}",
"hdSkinsVersion": ">=${project.hd_skins_version}",
"kirinVersion": ">=${project.kirin_version}"
}
from 'LICENSE'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.modrinth {
onlyIf {
def stage = version.version.stage.value
stage == null || stage.name != 'beta'
}
}
modrinth {
token = System.env.MODRINTH_KEY
projectId = project.modrinth_project_id
//featured = true
versionNumber = version.toString()
versionName = archivesBaseName + '-' + version
changelog = "[Changelog](https://github.com/MineLittlePony/BigPony/releases/tag/${version.toString()})"
loaders = ['fabric', 'quilt']
uploadFile = remapJar
outlet.mcVersions().each{ver ->
gameVersions.add ver
}
dependencies {
required.project 'P7dR8mSH' //fabric-api
optional.project 'JBjInUXM' //minelp
optional.project 'FzE9gshV' //hdskins
embedded.project '9aNz8Zqn' //kirin
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = "BigPony"
description = "Ahm a big pony now!"
url = "http://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/BigPony.git'
developerConnection = 'scm:git:ssh://github.com/MineLittlePony/BigPony.git'
url = 'https://github.com/MineLittlePony/BigPony'
}
}
}
}
repositories {
maven {
name = "MineLittlePony"
def stage = version.version.stage.value
url = "s3://repo.minelittlepony-mod.com/maven/${stage != null && stage.name == 'beta' ? 'snapshot' : 'release'}"
credentials(AwsCredentials) {
accessKey = System.env.ACCESS_KEY
secretKey = System.env.SECRET_KEY
}
}
}
}