TabooLib/build.gradle

79 lines
2.5 KiB
Groovy
Raw Normal View History

2019-03-02 07:48:21 +00:00
plugins {
id 'java'
id 'scala'
id 'idea'
id 'com.github.johnrengelman.shadow' version '4.0.4'
}
2019-09-18 15:57:04 +00:00
2019-03-02 07:48:21 +00:00
group = 'me.skymc'
2020-04-15 16:00:22 +00:00
version = '5.26'
2019-03-02 07:48:21 +00:00
sourceCompatibility = 1.8
targetCompatibility = 1.8
defaultTasks 'build', 'shadowJar'
tasks.withType(ScalaCompile) {
options.encoding = 'UTF-8'
scalaCompileOptions.encoding = 'UTF-8'
}
repositories {
2020-03-13 06:19:38 +00:00
maven { url "http://repo.ptms.ink/repository/codemc-nms/" }
maven { url "http://repo.ptms.ink/repository/maven-releases/" }
2019-03-02 07:48:21 +00:00
maven { url "http://repo.extendedclip.com/content/repositories/placeholderapi/" }
2020-03-08 08:31:34 +00:00
mavenCentral()
2019-03-02 07:48:21 +00:00
}
dependencies {
2020-03-08 08:31:34 +00:00
shadow('org.apache.cassandra:cassandra-all:0.8.1') {
2019-03-02 07:48:21 +00:00
exclude(module: 'slf4j-log4j12')
exclude(module: 'log4j')
}
2020-03-08 08:31:34 +00:00
compile 'ink.ptms.core:v11200:11200:all'
compile 'ink.ptms.core:v11500:11500:all'
compile 'ink.ptms.core:v11400:11400:all'
compile 'ink.ptms.core:v11300:11300:all'
2020-03-13 06:19:38 +00:00
compile 'ink.ptms.core:v10900:10900:all'
2020-03-08 08:31:34 +00:00
compile 'ink.ptms.core:v10800:10800:all'
compile 'net.md_5.bungee:BungeeCord:1:all'
compile 'org.apache.commons:commons-lang3:3.8'
compile 'com.google.code.gson:gson:2.8.6'
compile 'org.ow2.asm:asm:7.0-beta'
shadow 'com.zaxxer:HikariCP:3.1.0'
shadow 'com.google.inject:guice:4.2.2'
shadow 'org.scala-lang:scala-library:2.12.8'
shadow 'pw.yumc.Yum:Yum:1:all'
shadow 'me.clip:placeholderapi:2.10.4'
shadow 'net.milkbowl.vault:Vault:1:all'
shadow 'me.skymc.taboolib:TabooLib:4.9:all'
shadow 'us.myles.ViaVersion:ViaVersion:1:all'
shadow 'protocolsupport:ProtocolSupport:1:all'
shadow 'com.sk89q.worldedit:WorldEdit:7:all'
shadow 'com.sk89q.worldguard:WorldGuard:7:all'
shadow 'org.inventivetalent.bossbar:BossBar:1:all'
2019-03-02 07:48:21 +00:00
shadow fileTree(dir: 'libs', includes: ['*.jar'])
}
shadowJar {
2019-07-10 14:36:16 +00:00
// 免得 MANIFEST.MF 里面刷一堆 lib 难看
taskActions.removeIf { it.actionClassName.contains 'configureShadowTask' }
2020-01-24 05:47:15 +00:00
2019-07-10 13:45:12 +00:00
dependencies {
it.include it.dependency('org.apache.commons:.*')
it.include it.dependency('org.ow2.asm:.*')
it.include it.dependency('com.google.code.gson:.*')
}
2020-01-24 05:47:15 +00:00
2019-07-08 06:37:31 +00:00
relocate 'org.apache.commons', 'io.izzel.taboolib.internal.apache'
relocate 'org.objectweb.asm', 'io.izzel.taboolib.internal.asm'
relocate 'com.google.gson', 'io.izzel.taboolib.internal.gson'
2019-04-01 13:45:49 +00:00
}
processResources {
from(sourceSets.main.resources.srcDirs) {
2019-07-14 11:22:48 +00:00
include '__resources__/version'
2019-08-02 02:36:01 +00:00
include 'plugin.yml'
2019-04-01 13:45:49 +00:00
expand 'version': project.version
}
2019-03-02 07:48:21 +00:00
}