mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01:00
Add modrinth dependencies. Closes #206
This commit is contained in:
parent
4596389007
commit
eff231c85d
1 changed files with 7 additions and 5 deletions
12
build.gradle
12
build.gradle
|
@ -16,6 +16,7 @@ java {
|
|||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(17)
|
||||
}
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
outlet.allowSnapshotsForProject = false
|
||||
|
@ -107,11 +108,6 @@ tasks.withType(JavaCompile) {
|
|||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
classifier = "sources"
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
tasks.modrinth {
|
||||
onlyIf {
|
||||
def stage = version.version.stage.value
|
||||
|
@ -122,6 +118,7 @@ tasks.modrinth {
|
|||
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/MineLittlePony/releases/tag/${version.toString()})"
|
||||
|
@ -129,6 +126,11 @@ modrinth {
|
|||
outlet.mcVersions().each{ver ->
|
||||
gameVersions.add ver
|
||||
}
|
||||
dependencies {
|
||||
required.project 'P7dR8mSH'
|
||||
optional.project 'FzE9gshV'
|
||||
optional.project 'h9pJxJR9'
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
|
Loading…
Reference in a new issue