Skip to content

Commit

Permalink
Migrate Gradle build logic from Groovy to Kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
bytzo committed Mar 4, 2024
1 parent 839d55a commit 6b76d5c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2022–2023 Bytzo and contributors
Copyright © 2022–2024 Bytzo and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 9 additions & 9 deletions build.gradle → build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
plugins {
id('fabric-loom').version('1.4.4')
id("fabric-loom").version("1.4.4")
}

group = 'net.bytzo'
version = '0.5.1'
group = "net.bytzo"
version = "0.5.1"

repositories {
mavenCentral()
}

dependencies {
minecraft('com.mojang:minecraft:1.20.4')
minecraft("com.mojang:minecraft:1.20.4")
mappings(loom.officialMojangMappings())
modImplementation('net.fabricmc:fabric-loader:0.15.0')
modImplementation("net.fabricmc:fabric-loader:0.15.0")
}

java {
Expand All @@ -21,10 +21,10 @@ java {
}
}

jar {
from('LICENSE')
}

loom {
serverOnlyMinecraftJar()
}

tasks.named<Jar>("jar") {
from("LICENSE")
}
11 changes: 0 additions & 11 deletions settings.gradle

This file was deleted.

11 changes: 11 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pluginManagement {
repositories {
gradlePluginPortal()
maven {
name = "FabricMC Maven Repository"
url = uri("https://maven.fabricmc.net")
}
}
}

rootProject.name = "sessility"

0 comments on commit 6b76d5c

Please sign in to comment.