-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
91 lines (78 loc) · 2.47 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
plugins {
id 'java'
id 'idea'
id "groovy"
id "signing"
id "maven-publish"
}
signing {
sign configurations.archives
sign publishing.publications
}
group 'io.github.vlbaluk'
version = '2.0.0'
repositories {
mavenCentral()
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources";
from sourceSets.main.allSource;
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = "javadoc";
from javadoc.destinationDir;
}
artifacts {
archives jar, sourcesJar, javadocJar
}
dependencies {
implementation('org.apache.commons:commons-lang3:3.6')
implementation('com.google.guava:guava:23.0')
implementation('com.googlecode.json-simple:json-simple:1.1')
testImplementation('junit:junit:4.12')
testImplementation('org.spockframework:spock-core:1.1-groovy-2.4-rc-2')
testImplementation('org.skyscreamer:jsonassert:1.5.0')
}
publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'Java Validator LIVR'
description = 'LIVR.validator - Lightweight validator supporting Language Independent Validation Rules Specification (LIVR), https://livr-spec.org/'
url = 'https://github.com/vlbaluk/java-validator-livr'
licenses {
license {
name = 'ARTISTIC LICENSE 2.0'
url = 'https://www.perlfoundation.org/artistic-license-20.html'
}
}
developers {
developer {
id = 'vlbaluk'
name = 'Vlad Baluk'
email = '[email protected]'
}
}
scm {
connection = 'scm:[email protected]:vlbaluk/java-validator-livr.git'
developerConnection = 'scm:[email protected]:vlbaluk/java-validator-livr.git'
url = 'https://github.com/vlbaluk/java-validator-livr'
}
}
artifactId = 'validator-livr'
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
maven {
name = "iogithubvlbaluk-1002"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}