forked from naver/ngrinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
133 lines (117 loc) · 3.59 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
133
plugins {
id "com.jfrog.bintray" version "1.8.5"
}
allprojects {
apply plugin: "idea"
group = "org.ngrinder"
version = "3.5.3"
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: "com.jfrog.bintray"
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext {
profile = project.hasProperty("profile") ? profile : "production"
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"
groovy_version = project.property("groovy.version")
junit_version = project.property("junit.version")
}
repositories {
mavenCentral()
maven { url "http://repo.springsource.org/release" }
maven { url "http://maven.scm-manager.org/nexus/content/repositories/releases" }
}
test {
testLogging.showStandardStreams = true
}
task javadocJar(type: Jar) {
from javadoc.destinationDir
classifier "javadoc"
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
publishing {
publications {
nGrinerModules(MavenPublication) {
from components.java
artifact sourceJar
artifact javadocJar
pom {
name = "org.ngrinder:${project.name}"
description = "${project.name} module"
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}"
// }
// }
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"
}
}
}
}
}
bintray {
user = project.hasProperty("bintrayUser") ? bintrayUser : ""
key = project.hasProperty("bintrayKey") ? bintrayKey : ""
publications = ["nGrinerModules"]
publish = true
override = true
pkg {
repo = "ngrinder"
name = project.name
userOrg = "navercorp"
licenses = ["Apache-2.0"]
websiteUrl = "https://github.com/naver/ngrinder"
issueTrackerUrl = "https://github.com/naver/ngrinder/issues"
vcsUrl = "https://github.com/naver/ngrinder.git"
labels = ["ngrinder"]
publicDownloadNumbers = true
version {
name = project.version
released = new Date()
gpg {
sign = true
passphrase = project.hasProperty("bintrayGpgPassphrase") ? bintrayGpgPassphrase : ""
}
}
}
}
}