forked from bisq-network/bisq2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
104 lines (96 loc) · 3.19 KB
/
build.gradle.kts
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
95
96
97
98
99
100
101
102
103
104
plugins {
java
id("bisq.gradle.maven_publisher.LocalMavenPublishPlugin")
}
tasks.register("buildAll") {
group = "build"
description = "Build the entire project leaving it ready to work with."
doLast {
listOf(
"build",
":wallets:build",
":apps:seed-node-app:build",
":apps:seed-node-app:installDist",
":apps:desktop:desktop-app:build",
":apps:desktop:desktop-app:installDist",
":apps:desktop:desktop-app-launcher:generateInstallers",
// ":REPLACEME:build",
).forEach {
exec {
println("Executing Build: $it")
commandLine("./gradlew", it)
}
}
}
}
tasks.register("cleanAll") {
group = "build"
description = "Cleans the entire project."
doLast {
listOf(
":apps:seed-node-app:clean",
":apps:oracle-node-app:clean",
":apps:rest-api-app:clean",
":apps:desktop:desktop-app:clean",
":apps:desktop:desktop:clean",
":apps:desktop:desktop-app-launcher:clean",
":apps:desktop:webcam-app:clean",
":bisq-easy:clean",
":persistence:clean",
":build-logic:clean", // not really necessary
":network:clean",
":application:clean",
":wallets:clean",
"clean",
// ":REPLACEME:clean",
).forEach {
exec {
println("Executing Clean: $it")
commandLine("./gradlew", it)
}
}
}
}
tasks.register("publishAll") {
group = "publishing"
description = "Publish all the jars in the following modules to local maven repository"
doLast {
listOf(
":account:publishToMavenLocal",
":application:publishToMavenLocal",
// ":bisq-easy:publishToMavenLocal",
":bonded-roles:publishToMavenLocal",
":chat:publishToMavenLocal",
":common:publishToMavenLocal",
":contract:publishToMavenLocal",
":i18n:publishToMavenLocal",
":identity:publishToMavenLocal",
":network:publishToMavenLocal",
":network:tor:publishToMavenLocal",
":offer:publishToMavenLocal",
":persistence:publishToMavenLocal",
":platform:publishToMavenLocal",
":presentation:publishToMavenLocal",
":security:publishToMavenLocal",
":settings:publishToMavenLocal",
":support:publishToMavenLocal",
":trade:publishToMavenLocal",
":user:publishToMavenLocal",
// ":wallets:publishToMavenLocal",
// ":wallets:bitcoind:publishToMavenLocal",
).forEach {
exec {
println("Executing Publish To Maven Local: $it")
commandLine("./gradlew", it)
}
}
}
}
// for jitpack publishing
tasks.named("publishToMavenLocal").configure {
dependsOn("publishAll")
}
extensions.findByName("buildScan")?.withGroovyBuilder {
setProperty("termsOfServiceUrl", "https://gradle.com/terms-of-service")
setProperty("termsOfServiceAgree", "yes")
}