make it compile
This commit is contained in:
@@ -2,17 +2,34 @@ plugins {
|
|||||||
id("java")
|
id("java")
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "net.tplus"
|
group = "net.nuggetmc"
|
||||||
version = "3.1-BETA"
|
version = "3.1-BETA"
|
||||||
|
|
||||||
|
val jarName = "TerminatorPlus-" + version;
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation(project(":TerminatorPlus-Plugin"))
|
||||||
|
implementation(project(":TerminatorPlus-API"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.getByName<Test>("test") {
|
tasks.jar {
|
||||||
useJUnitPlatform()
|
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
|
||||||
|
|
||||||
|
/*
|
||||||
|
task copyPlugin(type: Copy) {
|
||||||
|
from 'build/libs/' + jarName + '.jar'
|
||||||
|
into 'run/plugins'
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
tasks.register("copyPlugin", Copy::class.java) {
|
||||||
|
from("build/libs/" + jarName + ".jar")
|
||||||
|
into("run/plugins")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: TerminatorPlus
|
name: TerminatorPlus
|
||||||
main: net.nuggetmc.tplus.TerminatorPlus
|
main: net.nuggetmc.tplus.TerminatorPlus
|
||||||
version: ${project.version}
|
version: ${version}
|
||||||
api-version: 1.16
|
api-version: 1.16
|
||||||
author: HorseNuggets
|
author: HorseNuggets
|
||||||
|
|
||||||
@@ -12,4 +12,4 @@ permissions:
|
|||||||
terminatorplus.manage: true
|
terminatorplus.manage: true
|
||||||
terminatorplus.manage:
|
terminatorplus.manage:
|
||||||
description: Allows for TerminatorPlus bot management.
|
description: Allows for TerminatorPlus bot management.
|
||||||
default: op
|
default: op
|
||||||
|
|||||||
Reference in New Issue
Block a user