mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-08 08:21:39 +01:00
31 lines
689 B
Groovy
31 lines
689 B
Groovy
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")
|
|
runtimeOnly project(path: ':core', configuration: 'shadow')
|
|
}
|
|
|
|
tasks.named('compileJava') {
|
|
dependsOn(':core:shadowJar')
|
|
}
|
|
|
|
|
|
jar {
|
|
from configurations.includeLibs.collect {
|
|
it.isDirectory() ? it : zipTree(it)
|
|
}
|
|
}
|