-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
83 lines (72 loc) · 2.25 KB
/
build.gradle.kts
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
plugins {
`maven-publish`
signing
`java-library`
groovy
}
version = "1.1"
group = "com.bloidonia"
repositories {
jcenter()
}
dependencies {
implementation("org.spockframework:spock-core:1.2-groovy-2.5")
implementation("org.codehaus.groovy:groovy-all:2.5.6")
implementation("org.codenarc:CodeNarc:1.3")
testImplementation("org.jetbrains:annotations:13.0")
testImplementation("org.spockframework:spock-core:1.2-groovy-2.5")
testImplementation("junit:junit:4.12")
}
tasks.register<Jar>("sourcesJar") {
from(sourceSets.main.get().allJava)
archiveClassifier.set("sources")
}
tasks.register<Jar>("javadocJar") {
from(tasks.javadoc)
archiveClassifier.set("javadoc")
}
tasks.getByName("publish") {
dependsOn("check")
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
pom {
from(components["java"])
artifact(tasks["sourcesJar"])
artifact(tasks["javadocJar"])
name.set("IgnoreUntil Spock Extension")
description.set("Allows an end date within 30 days to be specified for an ignored spec or feature")
url.set("https://github.com/timyates/spock-ignoreuntil")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("timyates")
name.set("Tim Yates")
email.set("tim@bloidonia.com")
}
}
scm {
url.set("https://github.com/timyates/spock-ignoreuntil.git")
}
}
}
}
repositories {
maven {
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = findProperty("sonatypeUsername")?.toString() ?: ""
password = findProperty("sonatypePassword")?.toString() ?: ""
}
}
}
}
signing {
sign(publishing.publications["mavenJava"])
}