-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
199 lines (180 loc) · 6.51 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
buildscript {
dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.0"
}
}
plugins {
id 'org.springframework.boot' version '2.4.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java-library'
id 'maven-publish' /* maven publish */
id 'signing'
}
group = 'dev.yafatek'
version = '1.0.108'
sourceCompatibility = '11'
archivesBaseName = "yafatek-restcore"
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter:2.5.3'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.5.3'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.4'
implementation 'org.springframework.boot:spring-boot-starter-amqp:2.5.3'
// https://mvnrepository.com/artifact/org.springframework/spring-web
implementation group: 'org.springframework', name: 'spring-web', version: '5.3.6'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
implementation group: 'org.robolectric', name: 'android-all', version: '5.1.1_r9-robolectric-0'
// implementation 'org.springframework.boot:spring-boot-starter-webflux'
// runtimeOnly 'mysql:mysql-connector-java'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
bootJar {
enabled = false
}
jar {
enabled = true
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign publishing.publications
}
publishing {
publications {
libertyGradle(MavenPublication) {
artifactId = archivesBaseName
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'YafaTek RestFul-Core Lib'
description = 'light weight library to build modern RestFul Apis'
// If your project has a dedicated site, use its URL here
url = 'https://github.com/yafatek/restfu-core'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'YafaTek Solutions'
name = 'YafaTek'
email = '[email protected]'
}
}
// Version control info, if you're using GitHub, follow the format as seen here
scm {
connection = 'scm:git:github.com/yafatek/restfu-core'
developerConnection = 'scm:git:ssh://github.com/yafatek/restfu-core'
url = 'https://github.com/yafatek/restfu-core'
}
}
repositories {
// The repository to publish to, Sonatype/MavenCentral
maven {
// This is an arbitrary name, you may also use "mavencentral" or
// any other name that's descriptive for you
name = "sonatype"
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
// You only need this if you want to publish snapshots, otherwise just set the URL
// to the release repo directly
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
// The username and password we've fetched earlier
credentials {
username 'yafatek-solutions'
password 'Yafa!@123Yafa!@123'
}
}
}
}
}
}
//publishing {
// publications {
// libertyGradle(MavenPublication) {
// // The coordinates of the library, being set from variables that
// // we'll set up in a moment
// groupId 'dev.yafatek'
// artifactId 'dev.yafatek.restcore'
// version '1.0.101'
//
// // Two artifacts, the `aar` and the sources
// from components.java
// artifact sourcesJar
//
// // Self-explanatory metadata for the most part
// pom {
// name = 'YafaTek RestFul-Core Lib'
// description = 'light weight library to build modern RestFul Apis'
// // If your project has a dedicated site, use its URL here
// url = 'https://github.com/yafatek/restfu-core'
// licenses {
// license {
// name = 'The Apache License, Version 2.0'
// url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
// }
// }
// developers {
// developer {
// id = 'YafaTek Solutions'
// name = 'YafaTek'
// email = '[email protected]'
// }
// }
// // Version control info, if you're using GitHub, follow the format as seen here
// scm {
// connection = 'scm:git:github.com/yafatek/restfu-core'
// developerConnection = 'scm:git:ssh://github.com/yafatek/restfu-core'
// url = 'https://github.com/yafatek/restfu-core'
// }
// // A slightly hacky fix so that your POM will include any transitive dependencies
// // that your library builds upon
// withXml {
// def dependenciesNode = asNode().appendNode('dependencies')
//
// project.configurations.implementation.allDependencies.each {
// def dependencyNode = dependenciesNode.appendNode('dependency')
// dependencyNode.appendNode('groupId', it.group)
// dependencyNode.appendNode('artifactId', it.name)
// dependencyNode.appendNode('version', it.version)
// }
// }
//
// }
// }
// }
// repositories {
// // The repository to publish to, Sonatype/MavenCentral
// maven {
// // This is an arbitrary name, you may also use "mavencentral" or
// // any other name that's descriptive for you
// name = "sonatype"
//
// def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
// def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
// // You only need this if you want to publish snapshots, otherwise just set the URL
// // to the release repo directly
// url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
//
// // The username and password we've fetched earlier
// credentials {
// username 'yafatek-solutions'
// password 'Yafa!@123Yafa!@123'
// }
// }
// }
//}