This repository has been archived by the owner on Oct 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
96 lines (86 loc) · 2.4 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
plugins {
id "com.jfrog.bintray" version "1.8.4"
id 'java'
id 'maven-publish'
}
version = "0.5.0"
repositories {
jcenter()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
implementation group: 'org.jetbrains', name: 'annotations', version: '16.0.2'
implementation group: 'org.json', name: 'json', version: '20190722'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.6.0'
testImplementation group: 'org.leadpony.justify', name: 'justify', version: '2.0.0'
testImplementation group: 'org.leadpony.joy', name: 'joy', version: '1.3.0'
}
test {
useJUnitPlatform()
}
def pomConfig = {
licenses {
license {
name 'The MIT License'
url 'https://opensource.org/licenses/MIT'
distribution 'repo'
}
}
developers {
developer {
id 'fornwall'
name 'Fredrik Fornwall'
email '[email protected]'
}
}
scm {
url "https://github.com/meeshkan/java-http-types"
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId 'com.meeshkan'
artifactId 'http-types'
version this.version
pom.withXml {
def root = asNode()
root.appendNode('description', 'Java types for HTTP request and response objects.')
root.appendNode('name', 'java-http-types')
root.appendNode('url', 'https://github.com/meeshkan/java-http-types')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
pkg {
repo = 'maven'
name = 'http-types'
labels = ['java', 'http', 'types', 'http-types', 'json']
userOrg = 'meeshkan'
licenses = ['MIT']
vcsUrl = 'https://github.com/Meeshkan/java-http-types.git'
version {
gpg {
sign = true
}
}
}
}