-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (88 loc) · 2.37 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
plugins {
id 'org.springframework.boot' version "${springboot_version}" apply false
id 'io.freefair.lombok' version "${lombok_plugin_version}" apply false
}
ext {
details = [
'spring-ws-tunnel-core': [
'name': 'Spring WS Tunnel Core Library',
'description': 'Spring WS Tunnel - Core Library'
],
'spring-ws-tunnel-demo-server': [
'name': 'Spring WS Tunnel Demo Server',
'description': 'Spring WS Tunnel - Demo Server'
]
]
}
subprojects {
apply plugin: 'java'
apply plugin: 'io.freefair.lombok'
apply plugin: 'maven-publish'
apply plugin: 'signing'
group = 'io.github.nemesismate'
version = '1.1.1'
sourceCompatibility = JavaVersion.VERSION_11
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
constraints {
implementation "org.mapstruct:mapstruct:${mapstruct_version}"
annotationProcessor "org.mapstruct:mapstruct-processor:${mapstruct_version}"
}
implementation platform("org.springframework.boot:spring-boot-dependencies:${springboot_version}")
}
publishing {
publications {
"$project.name"(MavenPublication) {
var p = project.details[project.name]
artifactId = project.name
groupId = project.group
version = project.version
from components.java
pom {
name = p.name
description = p.description
url = 'https://github.com/NemesisMate/spring-ws-tunnel'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'NemesisMate'
email = 'nemesismate.dev@gmail.com'
}
}
scm {
connection = 'scm:git:git://github.com/nemesismate/spring-ws-tunnel.git'
developerConnection = 'scm:git:ssh://github.com/nemesismate/spring-ws-tunnel.git'
url = 'https://github.com/NemesisMate/spring-ws-tunnel'
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = findProperty("mavenUsername")
password = findProperty("mavenPassword")
}
}
}
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications[project.name]
}
}