mirror of
https://github.com/Aizistral-Studios/No-Chat-Restrictions.git
synced 2026-02-04 05:38:24 +00:00
Configure NeoForge publishing
This commit is contained in:
@@ -4,6 +4,8 @@ plugins {
|
||||
id 'idea'
|
||||
id 'maven-publish'
|
||||
id 'net.neoforged.gradle.userdev' version '7.0.116'
|
||||
id "com.modrinth.minotaur" version "2.+"
|
||||
id "com.matthewprenger.cursegradle" version "1.4.0"
|
||||
}
|
||||
|
||||
version = project.mod_version
|
||||
@@ -69,3 +71,51 @@ tasks.withType(ProcessResources).configureEach {
|
||||
expand replaceProperties + [project: project]
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes([
|
||||
"Specification-Title": "NoChatRestrictions",
|
||||
"Specification-Vendor": "Aizistral",
|
||||
"Specification-Version": project.manifestVersion,
|
||||
"Implementation-Title": project.name,
|
||||
"Implementation-Version": project.manifestVersion,
|
||||
"Implementation-Vendor" :"NoChatRestrictions",
|
||||
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
curseforge {
|
||||
|
||||
project {
|
||||
apiKey = findProperty('curseKey') ?: '0'
|
||||
|
||||
id = '1442925'
|
||||
releaseType = 'release'
|
||||
changelogType = 'markdown'
|
||||
changelog = file('../CHANGELOG.md')
|
||||
|
||||
addGameVersion '1.20.2'
|
||||
addGameVersion 'NeoForge'
|
||||
addGameVersion 'Java 17'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
modrinth {
|
||||
token = findProperty('modrinthKey') ?: '0'
|
||||
projectId = "z440MEwJ"
|
||||
versionNumber = project.version
|
||||
versionName = "No Chat Restrictions " + project.version
|
||||
versionType = "release"
|
||||
changelog = rootProject.file("../CHANGELOG.md").text
|
||||
uploadFile = jar
|
||||
gameVersions = [ '1.20.2' ]
|
||||
loaders = [ 'neoforge' ]
|
||||
}
|
||||
|
||||
task upload {
|
||||
dependsOn('modrinth')
|
||||
dependsOn('curseforge')
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.matthewprenger</groupId>
|
||||
<artifactId>CurseGradle</artifactId>
|
||||
<version>1.4.0</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>net.sf.trove4j</groupId>
|
||||
<artifactId>trove4j</artifactId>
|
||||
<version>3.0.3</version>
|
||||
<scope>compile</scope>
|
||||
<type>jar</type>
|
||||
<optional>false</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>19.0</version>
|
||||
<scope>compile</scope>
|
||||
<type>jar</type>
|
||||
<optional>false</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.6.2</version>
|
||||
<scope>compile</scope>
|
||||
<type>jar</type>
|
||||
<optional>false</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpmime</artifactId>
|
||||
<version>4.5.2</version>
|
||||
<scope>compile</scope>
|
||||
<type>jar</type>
|
||||
<optional>false</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
<version>4.5.2</version>
|
||||
<scope>compile</scope>
|
||||
<type>jar</type>
|
||||
<optional>false</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -1,5 +1,6 @@
|
||||
pluginManagement {
|
||||
repositories {
|
||||
maven { url = uri("${rootDir}/deps") }
|
||||
mavenLocal()
|
||||
gradlePluginPortal()
|
||||
maven { url = 'https://maven.neoforged.net/releases' }
|
||||
|
||||
Reference in New Issue
Block a user