You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HuskSync/common/build.gradle

30 lines
729 B
Groovy

dependencies {
implementation 'redis.clients:jedis:3.7.0'
3 years ago
}
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])
3 years ago
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
dependsOn updateVersion
from 'build/sources/resources'
3 years ago
}
shadowJar {
dependsOn processResources
// Exclude some unnecessary files
exclude "**/module-info.class"
exclude "module-info.class"
// Relocations
relocate 'redis.clients', 'me.William278.husksync.libraries.jedis'
3 years ago
}