mirror of
https://github.com/Aizistral-Studios/No-Chat-Restrictions.git
synced 2026-05-11 17:09:56 +08:00
Configure publishing
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
maven { url "file:///${project.projectDir}/deps/" }
|
||||
maven { url = 'https://files.minecraftforge.net/maven' }
|
||||
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
|
||||
maven { url 'https://plugins.gradle.org/m2/' }
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
}
|
||||
@@ -11,6 +13,11 @@ buildscript {
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "com.modrinth.minotaur" version "2.+"
|
||||
id "com.matthewprenger.cursegradle" version "1.4.0"
|
||||
}
|
||||
|
||||
apply plugin: 'net.minecraftforge.gradle'
|
||||
apply plugin: 'eclipse'
|
||||
apply plugin: 'idea'
|
||||
@@ -96,4 +103,45 @@ jar {
|
||||
}
|
||||
}
|
||||
|
||||
jar.finalizedBy('reobfJar')
|
||||
jar.finalizedBy('reobfJar')
|
||||
|
||||
curseforge {
|
||||
|
||||
project {
|
||||
apiKey = findProperty('curseKey') ?: '0'
|
||||
|
||||
id = '1442925'
|
||||
releaseType = 'release'
|
||||
changelogType = 'markdown'
|
||||
changelog = file('../CHANGELOG.md')
|
||||
|
||||
addGameVersion '1.16.4'
|
||||
addGameVersion '1.16.5'
|
||||
addGameVersion 'Forge'
|
||||
addGameVersion 'Java 8'
|
||||
|
||||
relations {
|
||||
//requiredDependency 'fabric-api'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
modrinth {
|
||||
token = findProperty('modrinthKey') ?: '0'
|
||||
projectId = "z440MEwJ"
|
||||
versionNumber = project.version
|
||||
versionName = "No Chat Restrictions v" + project.version
|
||||
versionType = "release"
|
||||
changelog = rootProject.file("../CHANGELOG.md").text
|
||||
uploadFile = jar
|
||||
gameVersions = [ '1.16.4', '1.16.5' ]
|
||||
loaders = [ 'forge' ]
|
||||
dependencies {
|
||||
//required.project "P7dR8mSH"
|
||||
}
|
||||
}
|
||||
|
||||
task upload {
|
||||
dependsOn('modrinth')
|
||||
dependsOn('curseforge')
|
||||
}
|
||||
Reference in New Issue
Block a user