-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
93 lines (83 loc) · 1.73 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
plugins {
id 'eclipse'
id 'jacoco'
id 'java-library'
id 'maven-publish'
id 'signing'
}
eclipse {
project {
name = 'ZipSet'
comment = 'A small library for building incremental zip files'
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
// https://github.com/zeroturnaround/zt-zip
testImplementation 'org.zeroturnaround:zt-zip:1.14'
// https://github.com/qos-ch/slf4j
implementation 'org.slf4j:slf4j-api:1.7.30'
}
test {
useJUnitPlatform()
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.github.cilki'
artifactId = 'zipset'
version = '1.2.0'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'ZipSet'
description = 'A Java library for building zip files lazily'
url = 'https://github.com/cilki/ZipSet'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'cilki'
name = 'Tyler Cook'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/cilki/ZipSet.git'
developerConnection = 'scm:git:ssh://[email protected]/cilki/ZipSet.git'
url = 'https://github.com/cilki/ZipSet'
}
}
}
}
repositories {
maven {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username PUBLISH_USER
password PUBLISH_PASS
}
}
}
}
signing {
sign publishing.publications.mavenJava
}