-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
93 lines (85 loc) · 2.92 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 'idea'
id 'org.shipkit.shipkit-auto-version' version '2.0.5'
}
allprojects { project ->
group 'io.github.joke'
description 'deep mocking for the spock framework'
version rootProject.version
repositories {
mavenCentral()
}
plugins.withType(JavaBasePlugin).configureEach {
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
}
plugins.withType(MavenPublishPlugin) {
project.plugins.apply 'signing'
plugins.withType(JavaPlugin).configureEach {
java {
withJavadocJar()
withSourcesJar()
}
}
plugins.withType(SigningPlugin).configureEach {
afterEvaluate {
signing {
required {
gradle.taskGraph.hasTask('publish')
}
useGpgCmd()
sign publishing.publications
}
}
}
publishing {
repositories {
maven {
name = 'OSSRH'
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials(PasswordCredentials)
}
maven {
name = 'GitHubPackages'
url = uri("https://maven.pkg.github.com/joke/${project.name}")
credentials(PasswordCredentials)
}
}
afterEvaluate {
tasks.withType(AbstractPublishToMaven)*.dependsOn(check)
publications.each { publication ->
publication.pom {
name = project.name
description = project.description
url = "https://github.com/joke/${project.name}"
licenses {
license {
name = 'Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0'
}
}
developers {
developer {
id = 'joke'
name = 'Joke de Buhr'
email = 'joke@xckk.de'
}
}
scm {
connection = "scm:git:git://github.com/joke/${project.name}.git"
developerConnection = "scm:git:git://github.com/joke/${project.name}.git"
url = "http://github.com/joke/${project.name}/tree/main"
}
}
}
}
}
}
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = '8.6'
}