forked from naver/ngrinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
132 lines (109 loc) · 3.61 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
allprojects {
apply plugin: "idea"
group = "org.ngrinder"
version = "3.5.7"
idea {
module {
outputDir file("build/classes/main")
testOutputDir file("build/classes/test")
}
}
if (project.convention.findPlugin(JavaPluginConvention)) {
// Change the output directory for the main and test source sets back to the old path
sourceSets.main.java.outputDir = new File(buildDir, "classes/main")
sourceSets.test.java.outputDir = new File(buildDir, "classes/test")
}
}
subprojects {
apply plugin: "java"
apply plugin: "maven-publish"
apply plugin: "maven"
apply plugin: "signing"
apply plugin: "java-library"
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext {
profile = project.hasProperty("profile") ? profile : "production"
esCheckModuleVersion = project.hasProperty("esCheckModuleVersion") ? esCheckModuleVersion : ""
slf4j_version = "1.7.28"
spring_security_version = "5.3.4.RELEASE"
spring_boot_version = "2.3.3.RELEASE"
svnkit_version = "1.8.3-scm1"
hibernate_version = "5.4.20.Final"
hazelcast_version = "4.0.2"
mockito_version = "2.23.4"
handlebars_version = "4.0.5"
jackson_version = "2.11.2"
lombok_version = "1.18.20"
groovy_version = project.property("groovy.version")
junit_version = project.property("junit.version")
}
repositories {
mavenCentral()
maven { url "https://repo.springsource.org/release" }
maven { url "https://packages.scm-manager.org/repository/releases" }
}
test {
testLogging.showStandardStreams = true
}
task javadocJar(type: Jar) {
from javadoc.destinationDir
classifier "javadoc"
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
artifacts {
archives javadocJar, sourceJar
}
if (hasAllProperties("signing.keyId", "signing.password", "signing.secretKeyRingFile")) {
signing {
sign configurations.archives
}
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { deployment -> signing.signPom(deployment) }
if (hasAllProperties("ossrhUsername", "ossrhPassword")) {
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
}
pom.project {
name = "org.ngrinder:${project.name}"
description = "${project.name} module"
url = "https://github.com/naver/ngrinder"
scm {
connection = "scm:git:git://github.com/naver/ngrinder.git"
developerConnection = "scm:git:ssh://github.com/naver/ngrinder.git"
url = "https://github.com/naver/ngrinder"
}
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
// Below field is required to publish to the Maven central. Please modify before publishing.
developers {
developer {
id = "{please_input_your_id}"
name = "{please_input_your_name}"
email = "{please_input_your_email}"
}
}
}
}
}
}
}
def hasAllProperties(String... keys) {
return keys.every() { key -> project.hasProperty(key) }
}