-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
83 lines (71 loc) · 2.31 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
id 'java-library'
id 'checkstyle'
id 'jacoco' //code coverage
id 'eclipse'
id 'idea'
id 'signing'
id 'maven-publish'
}
apply from: 'config/global.gradle'
if(project.hasProperty('projVersion')) {
task release {
dependsOn build
dependsOn('publishMavenJavaPublicationToSonatypeRepository')
dependsOn gradle.includedBuild('gradle-plugin-htmlcompiler').task(':publishPlugins')
dependsOn gradle.includedBuild('webserver-templates').task(':githubRelease')
}
} else {
task release {
dependsOn build
dependsOn('publishMavenJavaPublicationToWebpiecesLocal2Repository')
dependsOn('publishMavenJavaPublicationToMavenLocal')
}
}
//if(project.hasProperty('projVersion')) {
// //task release(dependsOn: ':webserver:githubRelease')
// tasks.register('release') {
// dependsOn gradle.includedBuild('webserverDirectory').task(':githubRelease')
// }
//} else {
//gradle.includedBuilds.each( { build ->
// System.out.println("build22="+build.name)
//// tasks.create(taskName) { task ->
//// dependsOn gradle.includedBuild(build.name).task(":$taskName")
//// }
//})
dependencies {
api libs.webpieces.server.webserver
api libs.webpieces.server.templates
api libs.webpieces.http.client
api libs.webpieces.plugin.backend
api libs.webpieces.plugin.documentation
api libs.webpieces.plugin.dto
//failed build right now
//api libs.webpieces.plugin.grpc
api libs.webpieces.plugin.h2db
api libs.webpieces.plugin.hibernate
api libs.webpieces.plugin.sslcert
api libs.webpieces.plugin.jackson
api libs.webpieces.plugin.properties
api libs.webpieces.microservice.clientgenerator
api libs.webpieces.microservice.scaffold
api libs.webpieces.library.elasticsearch
api libs.webpieces.projectcreator
api libs.webpieces.googlecloud.storage
api libs.webpieces.googlecloud.tasks
api libs.webpieces.googlecloud.logging
}
publishing {
publications {
//mavenJava(MavenPublication) {
// pom {
// description = 'Templating library using groovy as the scripting language'
// }
//}
}
}
publish.onlyIf { false }
if(project.hasProperty('projVersion')) {
publishMavenJavaPublicationToSonatypeRepository.onlyIf {false}
}