forked from zalando-incubator/flatjson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
103 lines (84 loc) · 2.31 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
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'me.champeau.gradle.jmh'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'io.codearte.nexus-staging'
version = '1.1.0'
group = 'org.zalando'
mainClassName = 'org.zalando.flatjson.Main'
// gradle uploadArchives
// gradle closeAndPromoteRepository
// (or close and promote manually on oss.sonatype.org)
repositories {
mavenCentral()
}
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
dependencies {
classpath 'me.champeau.gradle:jmh-gradle-plugin:0.3.1'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
}
}
dependencies {
testCompile 'junit:junit:4.11'
jmh 'org.openjdk.jmh:jmh-core:1.17.4'
jmh 'com.eclipsesource.minimal-json:minimal-json:0.9.4'
jmh 'com.fasterxml.jackson.core:jackson-databind:2.2.3'
jmh 'com.google.code.gson:gson:2.8.0'
jmh 'io.fastjson:boon:0.34'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: project.findProperty('ossrhUsername'), password: project.findProperty('ossrhPassword'))
}
pom.project {
name 'flatjson'
packaging 'jar'
artifactId 'flatjson'
description 'A fast JSON parser.'
url 'https://github.com/zalando-incubator/flatjson'
scm {
connection 'scm:git:https://github.com/zalando-incubator/flatjson.git'
developerConnection 'scm:git:https://github.com/zalando-incubator/flatjson.git'
url 'https://github.com/zalando-incubator/flatjson'
}
licenses {
license {
name 'MIT License'
url 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id 'tlossen'
name 'Tim Lossen'
email 'tim@lossen.de'
}
}
}
}
}
}