Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea/
.vscode/
*.iml
*.ipr
*.iws
Expand All @@ -11,4 +12,3 @@ build/
classes/
lombok.config
extra.properties
swear_words.csv
46 changes: 22 additions & 24 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'maven-publish'
id "io.freefair.lombok" version "6.0.0-m2"
id "fabric-loom" version "1.11-SNAPSHOT"
id "maven-publish"
id "io.freefair.lombok" version "8.10"
}

apply from: 'https://raw.githubusercontent.com/DarkKronicle/GradleScripts/main/gradle/publish.gradle'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
// apply from: 'https://raw.githubusercontent.com/DarkKronicle/GradleScripts/main/gradle/publish.gradle'

sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21

archivesBaseName = project.archives_base_name
version = "${project.minecraft_version}-${project.mod_version}"
Expand All @@ -30,8 +36,8 @@ dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
modImplementation "fi.dy.masa.malilib:malilib-fabric-1.20.2:${project.malilib_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "com.github.sakura-ryoko:malilib:${project.malilib_version}"
modCompileOnly "com.terraformersmc:modmenu:${project.modmenu_version}"

implementation "com.github.DarkKronicle.Konstruct:addons:${project.konstruct_version}"
Expand All @@ -52,9 +58,8 @@ dependencies {
implementation "io.github.maowimpl:owo:${project.owo_version}"
include "io.github.maowimpl:owo:${project.owo_version}"

implementation 'org.apache.commons:commons-csv:1.8'
include 'org.apache.commons:commons-csv:1.8'

implementation 'org.apache.commons:commons-csv:1.11.0'
include 'org.apache.commons:commons-csv:1.11.0'
}

processResources {
Expand All @@ -67,27 +72,20 @@ processResources {

tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 17
it.options.release = 21
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
tasks.register("sourcesJar", Jar) {
dependsOn classes
archiveClassifier.set("sources")
from sourceSets.main.allSource
}

jar {
from "LICENSE.txt"
}

tasks.register('downloadExtra') {
def f = new File('./src/main/resources/swear_words.csv')
if (!f.exists()) {
new URL('https://raw.githubusercontent.com/surge-ai/profanity/main/profanity_en.csv').withInputStream{ i -> f.withOutputStream{ it << i }}
}
}

assemble {
dependsOn 'downloadExtra'
// dependsOn 'downloadExtra'
}

// configure the maven publication
Expand All @@ -107,6 +105,6 @@ publishing {
// select the repositories you want to publish to
repositories {
// uncomment to publish to the local maven
// mavenLocal()
mavenLocal()
}
}
19 changes: 11 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true

minecraft_version=1.20.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.3
fabric_api_version=0.92.0+1.20.4
minecraft_version=1.21.8
yarn_mappings=1.21.8+build.1
loader_version=0.17.2
loom_version=1.11-SNAPSHOT

mod_version=1.5.10
fabric_version=0.132.0+1.21.8

mod_version=1.8.0
maven_group=io.github.darkkronicle
archives_base_name=AdvancedChatCore

malilib_version=0.17.0
malilib_version=1.21.8-0.25.5-sakura.4
konstruct_version=2.0.3-build1
mxparser_version=4.4.2
owo_version=2.0.0
modmenu_version=7.1.0
modmenu_version=12.0.0

# Uploading data
curseforge_slug=advancedchatcore
Expand All @@ -30,4 +33,4 @@ project_logo=https://raw.githubusercontent.com/DarkKronicle/AdvancedChatCore/mai
project_color=0x134bff
changelog_hide_unimportant_commits=true
changelog_max_commit_search=200
discord_webhook_changelog_line_limit=10
discord_webhook_changelog_line_limit=10
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading