Advanced-Portals/bungee/build.gradle
2024-11-18 05:32:21 +00:00

41 lines
1.0 KiB
Groovy

apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
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/" }
}
// includeLibs just says to include the library in the final jar
dependencies {
// For bungee api
implementation "net.md-5:bungeecord-api:1.15-SNAPSHOT"
implementation project(":proxycore")
implementation project(":core")
}
jar {
from configurations.includeLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
tasks.register('sourcesJar', Jar) {
dependsOn classes
getArchiveClassifier().set('sources')
from sourceSets.main.allSource
}