-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
101 lines (86 loc) · 2.45 KB
/
build.gradle
File metadata and controls
101 lines (86 loc) · 2.45 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
import com.vanniktech.maven.publish.JavaLibrary
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.SourcesJar
import com.vanniktech.maven.publish.DeploymentValidation
plugins {
id 'java-library'
id "com.vanniktech.maven.publish" version "0.36.0"
}
ext {
emuLibMajor = '12'
emuLibFull = '12.1.0-SNAPSHOT'
}
group 'net.emustudio'
version '1.2.1-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation "net.emustudio:emulib:${emuLibFull}"
implementation 'net.jcip:jcip-annotations:1.0'
compileOnly 'junit:junit:4.13.2'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:4.11.0'
}
mavenPublishing {
coordinates("net.emustudio", "cpu-testsuite_${emuLibMajor}", version)
configure(new JavaLibrary(
new JavadocJar.Javadoc(),
new SourcesJar.Sources()
))
signAllPublications()
publishToMavenCentral(true, DeploymentValidation.PUBLISHED)
pom {
name = 'CPU Test Suite'
description = 'Generic test suite for comfortable CPU unit testing'
url = 'https://github.com/emustudio/cpu-testsuite'
licenses {
license {
name = 'GNU General Public License, Version 3.0'
url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
}
}
developers {
developer {
id = 'vbmacher'
name = 'Peter Jakubčo'
email = 'pjakubco@gmail.com'
}
}
scm {
connection = 'scm:git:git@github.com:emustudio/cpu-testsuite.git'
developerConnection = 'scm:git:git@github.com:emustudio/cpu-testsuite.git'
url = 'https://github.com/emustudio/cpu-testsuite'
}
}
}
signing {
required {
project.gradle.taskGraph.hasTask("publish")
}
def signingKey = findProperty("GPG_KEY") ?: System.getenv("GPG_KEY")
def signingPassword = findProperty("GPG_PASSWORD") ?: System.getenv("GPG_PASSWORD")
useInMemoryPgpKeys(signingKey, signingPassword)
}
javadoc {
options.addStringOption('Xdoclint:all', '-quiet')
options.memberLevel = JavadocMemberLevel.PROTECTED
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
repositories {
maven {
name = 'Central Portal Snapshots'
url = 'https://central.sonatype.com/repository/maven-snapshots/'
content {
includeModule("net.emustudio", "emulib")
}
}
mavenCentral()
}