2021-05-22 01:58:51 +02:00
|
|
|
|
2021-05-25 02:32:22 +02:00
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
2021-05-22 01:58:51 +02:00
|
|
|
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 {
|
|
|
|
|
2024-05-12 14:36:37 +02:00
|
|
|
// For bungee api
|
2021-05-22 01:58:51 +02:00
|
|
|
implementation "net.md-5:bungeecord-api:1.15-SNAPSHOT"
|
2024-11-13 12:02:01 +01:00
|
|
|
|
|
|
|
implementation project(":proxycore")
|
|
|
|
implementation project(":core")
|
2021-05-22 01:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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.
|
2024-05-12 14:36:37 +02:00
|
|
|
tasks.register('sourcesJar', Jar) {
|
|
|
|
dependsOn classes
|
|
|
|
getArchiveClassifier().set('sources')
|
2021-05-22 01:58:51 +02:00
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|