This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (54 loc) · 1.75 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
group 'store.vxdesign.apps'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.9.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.9.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jar {
def buildDate = new Date()
manifest {
attributes(
"Manifest-Version": "1.0",
"Class-Path": configurations.compile.collect { 'lib/' + it.getName() }.join(' ') + ' resources/',
"Main-Class": "store.vxdesign.cryptography.Main",
"Implementation-Title": rootProject.name,
"Implementation-Version": version,
"Build-Jdk": System.getProperty('java.version'),
"Source-Compatibility": sourceCompatibility,
"Target-Compatibility": targetCompatibility,
"Built-By": "Roman Mashenkin",
"Built-Date": buildDate
)
}
exclude('decrypt/', 'encrypt/')
}
task copyRes {
file("$buildDir/libs/resources/encrypt").mkdirs()
copy {
from './src/main/resources/encrypt'
into "$buildDir/libs/resources/encrypt"
}
file("$buildDir/libs/resources/decrypt").mkdirs()
copy {
from './src/main/resources/decrypt'
into "$buildDir/libs/resources/decrypt"
}
}
task copyDeps(type: Copy) {
def dirName = "$buildDir/libs/lib"
file(dirName).mkdirs()
from configurations.runtime
into "$buildDir/libs/lib"
}
task copylib(type: Copy) {
dependsOn copyDeps
}
build.dependsOn copylib