forked from public-mirrors/HuskSync
Edit: relocations & excludes;
Refactoring modules configuration;feat/data-edit-commands
parent
6ea8cdb75c
commit
3c50245540
@ -1,28 +1,7 @@
|
||||
dependencies {
|
||||
implementation 'redis.clients:jedis:4.0.1'
|
||||
implementation 'com.zaxxer:HikariCP:5.0.1'
|
||||
}
|
||||
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
task updateVersion(type: Copy) {
|
||||
from('src/main/resources') {
|
||||
include 'plugin.yml'
|
||||
include 'bungee.yml'
|
||||
}
|
||||
into 'build/sources/resources/'
|
||||
filter(ReplaceTokens, tokens: [version: '' + project.version])
|
||||
}
|
||||
|
||||
processResources {
|
||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||
dependsOn updateVersion
|
||||
from 'build/sources/resources'
|
||||
compileOnly 'com.zaxxer:HikariCP:5.0.1'
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
dependsOn processResources
|
||||
|
||||
// Exclude some unnecessary files
|
||||
exclude "**/module-info.class"
|
||||
exclude "module-info.class"
|
||||
relocate 'com.zaxxer', 'me.william278.husksync.libraries'
|
||||
}
|
@ -1,21 +1,26 @@
|
||||
dependencies {
|
||||
compileOnly project(':common')
|
||||
implementation project(path: ':common', configuration: 'shadow')
|
||||
|
||||
compileOnly 'redis.clients:jedis:4.0.1'
|
||||
implementation 'com.zaxxer:HikariCP:5.0.1'
|
||||
implementation 'org.bstats:bstats-velocity:2.2.1'
|
||||
implementation 'de.themoep:minedown-adventure:1.7.1-SNAPSHOT'
|
||||
implementation 'net.byteflux:libby-velocity:1.1.5'
|
||||
|
||||
compileOnly 'com.velocitypowered:velocity-api:3.1.0'
|
||||
annotationProcessor 'com.velocitypowered:velocity-api:3.1.0'
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'com.zaxxer', 'me.William278.husksync.libraries.hikari'
|
||||
relocate 'org.bstats', 'me.William278.husksync.libraries.bstats.velocity'
|
||||
relocate 'de.themoep', 'me.William278.husksync.libraries.minedown.adventure'
|
||||
relocate 'net.byteflux', 'me.William278.husksync.libraries.libby.velocity'
|
||||
}
|
||||
relocate 'de.themoep', 'me.william278.husksync.libraries'
|
||||
relocate 'net.byteflux', 'me.william278.husksync.libraries'
|
||||
relocate 'org.bstats', 'me.william278.husksync.libraries.bstats'
|
||||
|
||||
relocate 'redis.clients', 'me.william278.husksync.libraries'
|
||||
relocate 'org.apache', 'me.william278.husksync.libraries'
|
||||
|
||||
relocate 'com.zaxxer', 'me.william278.husksync.libraries'
|
||||
|
||||
tasks.register('prepareKotlinBuildScriptModel'){}
|
||||
dependencies {
|
||||
//noinspection GroovyAssignabilityCheck
|
||||
exclude dependency(':slf4j-api')
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue