Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Weapon/Armor Leveling System (#23) #49

Merged
206 changes: 106 additions & 100 deletions build.gradle
naomieow marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,154 +1,160 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id 'fabric-loom' version "1.7-SNAPSHOT"
id 'maven-publish'
id "org.jetbrains.kotlin.jvm" version "2.0.0"
id 'org.jetbrains.kotlin.plugin.serialization' version '2.0.0'
id("com.google.devtools.ksp") version "2.0.0-1.0.21"
id 'fabric-loom' version "1.7-SNAPSHOT"
id 'maven-publish'
id "org.jetbrains.kotlin.jvm" version "2.0.0"
id 'org.jetbrains.kotlin.plugin.serialization' version '2.0.0'
id("com.google.devtools.ksp") version "2.0.0-1.0.21"
}

version = project.mod_version
group = project.maven_group

base {
archivesName = project.archives_base_name
archivesName = project.archives_base_name
}

repositories {
maven {
name = "wispForestReleases"
url = uri("https://maven.wispforest.io/releases")
}
maven {
name = "Ladysnake Mods"
url = 'https://maven.ladysnake.org/releases'
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
maven {
name = "Nucleoid"
url = "https://maven.nucleoid.xyz/"
}
maven {
url = "https://maven.kosmx.dev/"
}
maven {
name = 'ParchmentMC'
url = 'https://maven.parchmentmc.org'
}
maven {
name = 'Quilt'
url = "https://maven.quiltmc.org/repository/release/"
}
maven {
name = "wispForestReleases"
url = uri("https://maven.wispforest.io/releases")
}
maven {
name = "Ladysnake Mods"
url = 'https://maven.ladysnake.org/releases'
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
maven {
name = "Nucleoid"
url = "https://maven.nucleoid.xyz/"
}
maven {
url = "https://maven.kosmx.dev/"
}
maven {
name = 'ParchmentMC'
url = 'https://maven.parchmentmc.org'
}
maven {
name = 'Quilt'
url = "https://maven.quiltmc.org/repository/release/"
}
maven {
name = "Terraformers"
url = "https://maven.terraformersmc.com/"
}
}

loom {
splitEnvironmentSourceSets()

mods {
"playerex-directors-cut" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
mods {
"playerex-directors-cut" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
}

dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
minecraft "com.mojang:minecraft:${project.minecraft_version}"

mappings loom.layered() {
mappings("org.quiltmc:quilt-mappings:${project.minecraft_version}+build.${project.quilt_mappings_version}:intermediary-v2")
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-${project.parchment_version}@zip")
}
mappings loom.layered() {
mappings("org.quiltmc:quilt-mappings:${project.minecraft_version}+build.${project.quilt_mappings_version}:intermediary-v2")
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-${project.parchment_version}@zip")
}

modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}"

// in-house
modImplementation("maven.modrinth:data-attributes-directors-cut:${project.data_attributes_version}")
modImplementation include("maven.modrinth:opc-directors-cut:${project.opc_version}")
// in-house
modImplementation("maven.modrinth:data-attributes-directors-cut:${project.data_attributes_version}")
modImplementation include("maven.modrinth:opc-directors-cut:${project.opc_version}")

// Cardinal Components
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cardinal_components_version}")
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cardinal_components_version}")
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-chunk:${project.cardinal_components_version}")
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-level:${project.cardinal_components_version}")
// Cardinal Components
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cardinal_components_version}")
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cardinal_components_version}")
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-chunk:${project.cardinal_components_version}")
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-level:${project.cardinal_components_version}")

modImplementation include("maven.modrinth:AdditionalEntityAttributes:${project.additional_entity_attributes_version}")
modImplementation("maven.modrinth:ranged-weapon-api:${project.ranged_weapon_api_version}")
modImplementation include("maven.modrinth:AdditionalEntityAttributes:${project.additional_entity_attributes_version}")
modImplementation("maven.modrinth:ranged-weapon-api:${project.ranged_weapon_api_version}")

modImplementation include("io.wispforest:endec:${project.endec_version}")
modImplementation include("io.wispforest.endec:gson:${project.endec_gson_version}")
modImplementation include("io.wispforest.endec:netty:${project.endec_netty_version}")
modImplementation include("io.wispforest:endec:${project.endec_version}")
modImplementation include("io.wispforest.endec:gson:${project.endec_gson_version}")
modImplementation include("io.wispforest.endec:netty:${project.endec_netty_version}")

// owo
annotationProcessor modImplementation("io.wispforest:owo-lib:${project.owo_version}")
include "io.wispforest:owo-sentinel:${project.owo_version}"
// owo
annotationProcessor modImplementation("io.wispforest:owo-lib:${project.owo_version}")
include "io.wispforest:owo-sentinel:${project.owo_version}"

implementation("com.google.devtools.ksp:symbol-processing-api:${project.ksp_version}")
implementation("com.squareup:kotlinpoet-ksp:${project.kotlinpoet_version}")
ksp("dev.kosmx.kowoconfig:ksp-owo-config:${project.ksp_owo_config_version}")
implementation("com.google.devtools.ksp:symbol-processing-api:${project.ksp_version}")
implementation("com.squareup:kotlinpoet-ksp:${project.kotlinpoet_version}")
ksp("dev.kosmx.kowoconfig:ksp-owo-config:${project.ksp_owo_config_version}")

modImplementation include("eu.pb4:placeholder-api:${project.placeholder_api_version}")
modImplementation include("eu.pb4:placeholder-api:${project.placeholder_api_version}")

implementation include("net.objecthunter:exp4j:${project.exp4j_version}")
implementation include("net.objecthunter:exp4j:${project.exp4j_version}")

include(implementation(annotationProcessor("io.github.llamalad7:mixinextras-fabric:${project.mixinextras_version}")))
modRuntimeOnly "com.terraformersmc:modmenu:${project.modmenu_version}"

include(implementation(annotationProcessor("io.github.llamalad7:mixinextras-fabric:${project.mixinextras_version}")))
}

processResources {
inputs.property "version", project.version
inputs.property "version", project.version

filesMatching("fabric.mod.json") {
expand "version": project.version
}
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}

tasks.withType(JavaCompile).configureEach {
it.options.release = 17
it.options.release = 17
}

tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = 17
}
kotlinOptions {
jvmTarget = 17
}
}

java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}"}
}
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}" }
}
}

// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
publications {
mavenJava(MavenPublication) {
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ endec_gson_version=0.1.4
endec_netty_version=0.1.3

exp4j_version=0.4.8
modmenu_version=7.2.2

mixinextras_version=0.4.0
Loading