2024-11-13 12:02:01 +01:00
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
// configuration that holds jars to copy into lib
|
|
|
|
includeLibs
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven { url "https://repo.maven.apache.org/maven2" }
|
|
|
|
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
|
|
|
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation project(":core")
|
2024-11-19 06:22:38 +01:00
|
|
|
runtimeOnly project(path: ':core', configuration: 'shadow')
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named('compileJava') {
|
|
|
|
dependsOn(':core:shadowJar')
|
2024-11-13 12:02:01 +01:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:22:38 +01:00
|
|
|
|
2024-11-13 12:02:01 +01:00
|
|
|
jar {
|
|
|
|
from configurations.includeLibs.collect {
|
|
|
|
it.isDirectory() ? it : zipTree(it)
|
|
|
|
}
|
|
|
|
}
|