-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
112 lines (100 loc) · 3.12 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
plugins {
id 'org.springframework.boot' version '2.7.2'
id 'io.spring.dependency-management' version '1.0.12.RELEASE'
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'io.github.gklp'
version = '1.0.0'
description = 'Craftgate Payment Gateway Spring Supported Library'
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-validation'
api 'io.craftgate:craftgate:1.0.33'
api 'commons-codec:commons-codec:1.15'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.assertj:assertj-core:3.23.1'
testImplementation 'net.sourceforge.htmlunit:htmlunit:2.67.0'
}
test {
useJUnitPlatform()
testLogging {
exceptionFormat = 'full'
}
}
java {
withSourcesJar()
}
jar {
enabled = true
baseName(project.name)
version(project.version)
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version,
'Build-Jdk-Spec': sourceCompatibility,
'Automatic-Module-Name': 'io.github.gklp.springcraftgate')
}
}
bootJar {
enabled = false
}
publishing {
publications {//noinspection GroovyAssignabilityCheck
mavenJava(MavenPublication) {
artifactId = project.name
from components.java
pom {
inceptionYear = '2022'
name = project.name
packaging = 'jar'
description = project.description
url = 'https://github.com/gklp/spring-craftgate'
scm {
connection = '[email protected]:gklp/spring-craftgate.git'
developerConnection = '[email protected]:gklp/spring-craftgate.git'
url = 'https://github.com/gklp/spring-craftgate'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'gokalp'
name = 'Gokalp Kuscu'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username project.properties['ossrhUsername']?.toString()
password project.properties['ossrhPassword']?.toString()
}
}
}
}
signing {
sign publishing.publications.mavenJava
}