Skip to content

Commit

Permalink
readded important scala gradle imports
Browse files Browse the repository at this point in the history
  • Loading branch information
UselessBullets committed Jan 7, 2024
1 parent 43d1ea3 commit 9ce902e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
16 changes: 14 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'babric-loom' version '1.1.+'
id 'java'
id 'scala'
}

group = project.mod_group
Expand Down Expand Up @@ -72,6 +72,11 @@ repositories {
}
metadataSources { artifact() }
}
maven {
name = "Azure Kotori316"
// See https://dev.azure.com/Kotori316/minecraft/_artifacts/feed/mods for versions
url = "https://pkgs.dev.azure.com/Kotori316/minecraft/_packaging/mods/maven/v1"
}
}

dependencies {
Expand All @@ -96,6 +101,13 @@ dependencies {
implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}")
implementation("org.apache.logging.log4j:log4j-api:${log4jVersion}")
implementation("org.apache.logging.log4j:log4j-1.2-api:${log4jVersion}")
include(implementation("org.apache.commons:commons-lang3:3.12.0"))

modImplementation("com.kotori316:scalable-cats-force-fabric:${project.scf_version}")

implementation(group: 'org.scala-lang', name: 'scala3-library_3', version: project.scala_version)
implementation(group: "org.typelevel", name: "cats-core_3", version: project.cats_version)
implementation(group: "org.typelevel", name: "cats-kernel_3", version: project.cats_version)
}

java {
Expand All @@ -104,7 +116,7 @@ java {
withSourcesJar()
}

tasks.withType(JavaCompile) {
tasks.withType(JavaCompile).configureEach {
options.release.set 8
}

Expand Down
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ loader_version=0.14.19-babric.3-bta
# HalpLibe
halplibe_version=3.1.0

# Scalable Cat's Force Fabric
scf_version=2.1.0
scala_version=3.3.0
cats_version=2.9.2-kotori

# Mod
mod_version=1.0.0
mod_group=turniplabs
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/turniplabs/examplemod/ExampleMod.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package turniplabs.examplemod
import net.fabricmc.api.ModInitializer
import net.fabricmc.loader.api.FabricLoader
import org.slf4j.{Logger, LoggerFactory}
import turniplabs.halplibe.util.{GameStartEntrypoint, RecipeEntrypoint}

object ExampleMod extends ModInitializer, GameStartEntrypoint, RecipeEntrypoint {
final val MODID: String = "examplemod"
final val LOGGER: Logger = LoggerFactory.getLogger(MODID)

override def onInitialize(): Unit = {
// This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized.
Expand Down

0 comments on commit 9ce902e

Please sign in to comment.