-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
100 lines (89 loc) · 2.83 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
plugins {
id 'groovy'
id 'idea'
id 'java'
id 'maven-publish'
id 'signing'
id 'com.widen.versioning' version '0.4.1'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
group = 'com.widen'
description = 'Utility class for constructing syntactically correct HTTP URLs using a fluent method-chaining API'
ext.repo = 'https://github.com/Widen/' + project.name
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.2'
annotationProcessor 'org.projectlombok:lombok:1.18.2'
compile 'org.bouncycastle:bcprov-jdk15on:1.54'
compile 'org.bouncycastle:bcpkix-jdk15on:1.54'
testCompile 'cglib:cglib-nodep:3.2.5'
testCompile 'commons-io:commons-io:2.4'
testCompile 'junit:junit:4.8.2'
testCompile 'org.codehaus.groovy:groovy-all:2.4.9'
testCompile 'org.objenesis:objenesis:2.6'
testCompile 'org.slf4j:slf4j-simple:1.7.25'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier 'javadoc'
}
nexusPublishing {
repositories {
sonatype()
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = project.name
description = project.description
url = project.ext.repo
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
organization {
name = 'Widen Enterprises, Inc'
url = 'https://www.widen.com'
}
developers {
developer {
id = 'uriahcarpenter'
name = 'Uriah Carpenter'
email = '[email protected]'
}
developer {
id = 'scoakley'
name = 'Stephen Coakley'
email = '[email protected]'
}
}
scm {
url = project.ext.repo + '.git'
connection = project.ext.repo.replace('https://github.com/', 'scm:[email protected]:') + '.git'
developerConnection = connection
}
}
}
}
}
signing {
useInMemoryPgpKeys(findProperty('signingKey'), findProperty('signingPassword'))
sign publishing.publications.maven
}