gradle: add properties and modify injected-client (#1145)
* add implementation for getItemCount * Ignore build directory in project root * save injector results as class files * package injected-client for shading into client * auto-updating properties * fix run task * shade injected-client into jar
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
description = 'Web API'
|
||||
dependencies {
|
||||
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.0.1'
|
||||
@@ -11,3 +12,14 @@ dependencies {
|
||||
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.8'
|
||||
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.8'
|
||||
}
|
||||
|
||||
processResources {
|
||||
from file("src/main/resources/runelite.properties"), {
|
||||
filter(ReplaceTokens, tokens: [
|
||||
"projectver": project.version,
|
||||
"rsver": rsversion.toString(),
|
||||
"gitcommit": gitCommitShort,
|
||||
"gitdirty": gitDirty.toString()
|
||||
])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user