Files
Tplus/build.gradle.kts

36 lines
835 B
Kotlin
Raw Normal View History

plugins {
id("java")
}
2022-06-17 20:01:15 -04:00
group = "net.nuggetmc"
version = "3.1-BETA"
2022-06-17 20:01:15 -04:00
val jarName = "TerminatorPlus-" + version;
repositories {
mavenCentral()
}
dependencies {
2022-06-17 20:01:15 -04:00
implementation(project(":TerminatorPlus-Plugin"))
implementation(project(":TerminatorPlus-API"))
}
tasks.jar {
from(configurations.compileClasspath.get().map { if (it.isDirectory()) it else zipTree(it) })
archiveFileName.set(jarName + ".jar")
}
//TODO currently, the resources are in src/main/resources, because gradle is stubborn and won't include the resources in TerminatroPlus-Plugin/src/main/resources, will need to fix
2022-06-17 20:01:15 -04:00
/*
task copyPlugin(type: Copy) {
from 'build/libs/' + jarName + '.jar'
into 'run/plugins'
}
2022-06-17 20:01:15 -04:00
*/
2022-06-17 20:01:15 -04:00
tasks.register("copyPlugin", Copy::class.java) {
from("build/libs/" + jarName + ".jar")
into("run/plugins")
}