forked from zafarkhaja/jsemver
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
104 lines (91 loc) · 2.83 KB
/
Copy pathbuild.gradle
File metadata and controls
104 lines (91 loc) · 2.83 KB
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
101
102
103
104
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'signing'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.4.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}
group = 'com.github.zafarkhaja'
version = '0.10.0'
description = 'Java implementation of the SemVer Specification, maintained by the AntiLaby Team'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
javadoc {
options.addStringOption('-Xdoclint:none')
failOnError = false
}
jar {
from classes, processResources, file("LICENSE")
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
archiveClassifier.set('sources')
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier.set('javadoc')
}
publishing {
repositories {
maven {
url = mavenRepo
credentials {
username = mavenUsername
password = mavenPassword
}
authentication {
digest(DigestAuthentication)
}
}
}
publications {
mavenJava(MavenPublication) {
pom {
description = project.description
url = 'https://github.com/AntiLaby/jsemver'
licenses {
license {
name = 'The MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
distribution = 'repo'
}
}
developers {
developer {
id = 'zafarkhaja'
name = 'Zafar Khaja'
email = 'zafarkhaja@gmail.com'
roles = ['developer']
}
developer {
id = 'heisluft'
name = 'heisluft'
email = 'heisluftlp@gmail.com'
roles = ['developer, maintainer']
}
}
scm {
connection = 'scm:git:git://github.com/AntiLaby/jsemver.git'
developerConnection = 'scm:git:ssh://git@github.com/AntiLaby/jsemver.git'
url = 'https://github.com/AntiLaby/jsemver'
}
}
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
signing {
sign publishing.publications.mavenJava
}
test {
useJUnitPlatform()
}
publishMavenJavaPublicationToMavenLocal.dependsOn test
publishMavenJavaPublicationToMavenRepository.dependsOn test