Skip to content

Commit

Permalink
kts
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Feb 23, 2024
1 parent 1578c13 commit 5840153
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 75 deletions.
58 changes: 0 additions & 58 deletions build.gradle

This file was deleted.

63 changes: 63 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
plugins {
base
java
idea
`maven-publish`
alias(libs.plugins.fabric.loom)
}

group = libs.versions.maven.group.get()
version = "${libs.versions.minecraft.get()}-${libs.versions.mod.get()}"

base {
archivesName.set(libs.versions.archives.name)
}

repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}

dependencies {
minecraft(libs.minecraft)
mappings(libs.yarn)
modImplementation(libs.bundles.fabric)

modImplementation(libs.bundles.equator)?.let {
include(it)
}
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

withSourcesJar()
}

tasks {
processResources {
inputs.property("version", libs.versions.mod.get())

filesMatching("fabric.mod.json") {
expand(mapOf("version" to libs.versions.mod.get()))
}
}

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

publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}

repositories {
}
}
15 changes: 0 additions & 15 deletions gradle.properties

This file was deleted.

28 changes: 28 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[versions]
maven-group = "net.krlite"
archives-name = "flash"
mod = "2.0.2"

minecraft = "1.20"
yarn = "1.20+build.1"
fabric-loader = "0.15.7"
fabric-api = "0.83.0+1.20"
fabric-loom = "1.5-SNAPSHOT"

equator = "2.6.2-mc1.20"

[libraries]
minecraft = { group = "com.mojang", name = "minecraft", version.ref = "minecraft" }
yarn = { group = "net.fabricmc", name = "yarn", version.ref = "yarn" }
fabric-loader = { group = "net.fabricmc", name = "fabric-loader", version.ref = "fabric-loader" }
fabric-api = { group = "net.fabricmc.fabric-api", name = "fabric-api", version.ref = "fabric-api" }

equator_animation = { group = "com.github.KrLite.Equator-v2", name = "Animation", version.ref = "equator" }
equator_visual = { group = "com.github.KrLite.Equator-v2", name = "Visual", version.ref = "equator" }

[plugins]
fabric-loom = { id = "fabric-loom", version.ref = "fabric-loom" }

[bundles]
fabric = ["fabric-loader", "fabric-api"]
equator = ["equator_animation", "equator_visual"]
4 changes: 2 additions & 2 deletions settings.gradle → settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pluginManagement {
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
}
mavenCentral()
gradlePluginPortal()
Expand Down

0 comments on commit 5840153

Please sign in to comment.