Advanced-Portals/bungee/build.gradle
TreemanKing 7fbfe57506 chore: build upgrades (#417)
Use updated methods.
Update dependencies
2024-11-18 05:32:21 +00:00

46 lines
1.4 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 {
//includeLibs group: 'com.google.code.gson', name: 'gson', version:'2.8.2'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
//includeLibs group: 'com.google.inject', name: 'guice', version:'4.0'
implementation group: 'com.google.inject', name: 'guice', version:'4.0'
implementation group: 'com.google.guava', name: 'guava', version: '33.2.0-jre'
// For spigot api
implementation "org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT"
// For bungee api
implementation "net.md-5:bungeecord-api:1.15-SNAPSHOT"
}
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
}