34 lines
754 B
Groovy
34 lines
754 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'com.gradleup.shadow' version '9.0.0-beta2'
|
|
}
|
|
|
|
group = 'eu.e99.resourcepacker'
|
|
version = '0.0.1'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly 'io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT'
|
|
implementation project(':client-common')
|
|
}
|
|
|
|
tasks.shadowJar {
|
|
archiveFileName = "resourcepacker-paper-${version}.jar"
|
|
}
|
|
|
|
tasks.processResources {
|
|
filesMatching('paper-plugin.yml') { // Change the pattern to match your specific files
|
|
filter { line ->
|
|
line.replaceAll('\\$\\{version\\}', version)
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs = ['src']
|
|
main.resources.srcDirs = ['resources']
|
|
}
|