forked from jamsesso/json-logic-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (68 loc) · 1.88 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
plugins {
id "java"
id "maven"
id "signing"
}
group "io.github.jamsesso"
version "1.0.4-SNAPSHOT"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile "com.google.code.gson:gson:2.8.5"
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
}
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: sonatypeUsername, password: sonatypePassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
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/jamsesso/json-logic-java"
scm {
connection "scm:[email protected]:jamsesso/json-logic-java.git"
developerConnection "scm:[email protected]:jamsesso/json-logic-java.git"
url "https://github.com/jamsesso/json-logic-java.git"
}
licenses {
license {
name "MIT License"
url "https://github.com/jamsesso/json-logic-java/blob/master/LICENSE"
}
}
developers {
developer {
id "jamsesso"
name "Sam Jesso"
email "[email protected]"
}
}
}
}
}
}