feat: Initial commit
This commit is contained in:
64
build.gradle
Normal file
64
build.gradle
Normal file
@@ -0,0 +1,64 @@
|
||||
plugins {
|
||||
id "org.jetbrains.kotlin.jvm" version "2.2.0"
|
||||
id 'com.gradleup.shadow' version "8.3.+"
|
||||
id "architectury-plugin" version "3.4-SNAPSHOT"
|
||||
id "dev.architectury.loom" version "1.10-SNAPSHOT"
|
||||
}
|
||||
|
||||
version = project.mod_version
|
||||
group = project.maven_group
|
||||
|
||||
base {
|
||||
archivesName = project.archives_base_name
|
||||
}
|
||||
|
||||
architectury {
|
||||
minecraft = '1.21.1'
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "AiYo Studio Repository"
|
||||
url = uri("https://repo.mc9y.com/snapshots")
|
||||
}
|
||||
maven {
|
||||
url = uri("https://maven.impactdev.net/repository/development/")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||
mappings(loom.officialMojangMappings())
|
||||
modApi(fileTree("libs/mods") { include("*.jar") })
|
||||
modApi("com.cobblemon:fabric:1.7.1+1.21.1-SNAPSHOT")
|
||||
|
||||
compileOnly("org.spigotmc:spigot-api:1.21.1-R0.1-SNAPSHOT")
|
||||
compileOnly("com.aystudio.core:AyCore:1.4.2-BETA")
|
||||
compileOnly("me.clip:placeholderapi:2.10.4")
|
||||
compileOnly(fileTree("libs/plugins") { include("*.jar") })
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
|
||||
filesMatching("plugin.yml") {
|
||||
expand "version": project.version
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
it.options.release = 21
|
||||
}
|
||||
|
||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
||||
kotlinOptions {
|
||||
jvmTarget = 21
|
||||
}
|
||||
}
|
||||
|
||||
java {
|
||||
withSourcesJar()
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
Reference in New Issue
Block a user