This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
forked from jamsesso/json-logic-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (80 loc) · 2.25 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
plugins {
id "java"
id "maven"
id "signing"
}
group "com.brunocesar"
version "1.0.0-SNAPSHOT"
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile "com.google.guava:guava:20.0"
compile "com.google.code.gson:gson:2.7"
testCompile "junit:junit:4.12"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = "javadoc"
from javadoc.destinationDir
}
task sourcesJar(type: Jar) {
classifier = "sources"
from sourceSets.main.allSource
}
artifacts {
archives jar, javadocJar, sourcesJar
}
if (project.hasProperty('release')) {
signing {
useInMemoryPgpKeys(signingKey, signingKeyPassword)
sign configurations.archives
}
}
uploadArchives {
repositories {
mavenDeployer {
if (project.hasProperty('release')) {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
}
pom.project {
name "json-logic-java"
artifactId "json-logic-java"
packaging "jar"
description "A native Java implementation of the json-logic project"
url "https://github.com/brunocesarsilva/json-logic-java"
scm {
connection "scm:git@github.com:brunocesarsilva/json-logic-java.git"
developerConnection "scm:git@github.com:brunocesarsilva/json-logic-java.git"
url "https://github.com/brunocesarsilva/json-logic-java.git"
}
licenses {
license {
name "MIT License"
url "https://github.com/brunocesarsilva/json-logic-java/blob/master/LICENSE"
}
}
developers {
developer {
id "jamsesso"
name "Sam Jesso"
email "samuel.jesso@gmail.com"
}
developer {
id "brunocesarsilva"
name "Bruno Ribeiro"
email "bruno@brunocesar.com"
}
}
}
}
}
}