-
-
Notifications
You must be signed in to change notification settings - Fork 92
/
build.gradle
30 lines (26 loc) · 847 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'application'
sourceSets.main.java.srcDirs = ['src']
sourceSets.main.resources.srcDirs = ['resources']
archivesBaseName = project.name
version = project.cracker_version
group = 'net.earthcomputer'
mainClassName = 'enchcracker.EnchCrackerWindow'
applicationDefaultJvmArgs = ['-Xms1G', '-Xmx1G']
distributions {
main {
contents {
from 'README.md'
}
}
}
startScripts.windowsStartScriptGenerator.template = project.resources.text.fromFile 'windowsStartScript.txt'
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
inputs.property('cracker_version', project.cracker_version)
filesNotMatching(['**/*.png', '**/*.ttf']) {
it.filter(ReplaceTokens, tokens: [VERSION: project.cracker_version])
}
}