mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
74 lines
2.2 KiB
Groovy
74 lines
2.2 KiB
Groovy
plugins {
|
|
id 'com.palantir.git-version' version '0.12.3'
|
|
}
|
|
|
|
ext.projectVersion = '1.0'
|
|
def gitHash = versionDetails().gitHash
|
|
|
|
allprojects {
|
|
group = 'net.draycia'
|
|
version = project.property('projectVersion') + '-' + gitHash
|
|
}
|
|
|
|
apply plugin: 'base'
|
|
|
|
subprojects {
|
|
apply plugin: 'java-library'
|
|
apply plugin: 'java'
|
|
apply plugin: 'maven-publish'
|
|
apply plugin: 'maven'
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
|
|
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/groups/public/'}
|
|
maven {url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'}
|
|
maven {url = 'https://jitpack.io'}
|
|
maven {url = 'https://dl.bintray.com/ichbinjoe/public/'}
|
|
maven {url = 'https://repo.codemc.org/repository/maven-public/'}
|
|
maven {url = 'https://repo.minebench.de/'}
|
|
maven {url = "https://repo.aikar.co/content/groups/aikar/"}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
|
|
compileOnly 'com.github.MilkBowl:VaultAPI:1.7'
|
|
|
|
compileOnly 'co.aikar:acf-bukkit:0.5.0-SNAPSHOT'
|
|
compileOnly 'net.kyori:adventure-api:4.0.0-SNAPSHOT'
|
|
compileOnly 'net.kyori:adventure-nbt:4.0.0-SNAPSHOT'
|
|
compileOnly 'net.kyori:adventure-platform-bukkit:4.0.0-SNAPSHOT'
|
|
compileOnly 'net.kyori:adventure-text-minimessage:3.0.0-SNAPSHOT'
|
|
compileOnly 'de.themoep:minedown-adventure:1.6.1-SNAPSHOT'
|
|
compileOnly 'co.aikar:idb-bukkit:1.0.0-SNAPSHOT'
|
|
compileOnly 'com.zaxxer:HikariCP:2.4.1'
|
|
compileOnly 'io.github.leonardosnt:bungeechannelapi:1.0.0-SNAPSHOT'
|
|
compileOnly 'io.lettuce:lettuce-core:6.0.0.M1'
|
|
}
|
|
|
|
sourceCompatibility = '1.8'
|
|
|
|
publishing {
|
|
publications {
|
|
maven(MavenPublication) {
|
|
from(components.java)
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
tasks.withType(Jar) {
|
|
getDestinationDirectory().set(file("$rootDir/build/bundled"))
|
|
}
|
|
}
|
|
|
|
clean.doFirst {
|
|
delete "$rootDir/build/bundled"
|
|
}
|