forked from PWCGDeveloper/PWCGCampaign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build2.gradle.full
95 lines (76 loc) · 2.8 KB
/
build2.gradle.full
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
plugins {
id 'java-library'
id 'application'
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
mainClassName = 'pwcg.gui.maingui.PwcgMain'
applicationName = 'PWCG'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.guava:guava:20.0'
implementation group: 'com.fasterxml', name: 'jackson-xml-databind', version: '0.6.2'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.0.1'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.7'
implementation group: 'net.bytebuddy', name: 'byte-buddy', version: '1.10.9'
implementation(files("RelativeLayout/RelativeLayout-v1.0.jar"))
implementation(files("RelativeLayout/Jama-1.0.2.jar"))
testImplementation(platform('org.junit:junit-bom:5.8.1'))
testImplementation('org.junit.jupiter:junit-jupiter')
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '3.12.2'
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '3.12.2'
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.4.2')
}
jar {
archiveFileName = "PWCG.jar"
manifest {
attributes 'Main-Class': 'pwcg.gui.maingui.PwcgMain'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
if (System.properties['test.profile'] != 'integration') {
useJUnitPlatform()
maxParallelForks = Runtime.runtime.availableProcessors()
exclude '**/*integration*'
}
else {
useJUnitPlatform()
exclude '**/*pwcg/*'
}
}
task copyJar(type: Exec) {
workingDir "$projectDir"
commandLine 'cmd', '/c', ' cp build/libs/PWCG.jar D:/PWCG/Deploy/PWCG.jar'
}
task deploy(type:JavaExec) {
main = "pwcg.dev.deploy.DeployPwcg"
classpath = sourceSets.main.runtimeClasspath
}
task buildBoS(type: Exec) {
workingDir "$projectDir"
commandLine 'cmd', '/c', 'D:/Utils/launch4j/launch4jc.exe D:/PWCG/Launch4JConfigs/BosLaunchConfig.xml'
}
task zipBoS(type: Exec) {
workingDir "$projectDir"
commandLine 'cmd', '/c', ' D:/Utils/7Zip/7-zip/7z.exe a -tzip D:/PWCG/Deploy/PWCGBoS.zip D:/PWCG/Deploy/PWCGBoS'
}
task buildFC(type: Exec) {
workingDir "$projectDir"
commandLine 'cmd', '/c', 'D:/Utils/launch4j/launch4jc.exe D:/PWCG/Launch4JConfigs/FCLaunchConfig.xml'
}
task zipFC(type: Exec) {
workingDir "$projectDir"
commandLine 'cmd', '/c', ' D:/Utils/7Zip/7-zip/7z.exe a -tzip D:/PWCG/Deploy/PWCGFC.zip D:/PWCG/Deploy/PWCGFC'
}
tasks.named("build") { finalizedBy("copyJar") }
tasks.named("copyJar") { finalizedBy("deploy") }
tasks.named("deploy") { finalizedBy("buildBoS") }
tasks.named("buildBoS") { finalizedBy("zipBoS") }
tasks.named("zipBoS") { finalizedBy("buildFC") }
tasks.named("buildFC") { finalizedBy("zipFC") }