-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
104 lines (93 loc) · 3.15 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
plugins {
`java-library`
`maven-publish`
signing
idea
groovy
id("com.github.ben-manes.versions") version "0.39.0"
id("nebula.optional-base") version "7.0.0"
}
tasks.jar {
archiveFileName.set("modelcheck")
}
defaultTasks("clean", "build")
repositories {
mavenCentral()
}
dependencies {
implementation("org.slf4j:slf4j-api:1.7.32")
testRuntimeOnly("ch.qos.logback:logback-classic:1.2.8")
testImplementation("org.codehaus.groovy:groovy-all:3.0.9")
testImplementation("org.spockframework:spock-core:2.0-groovy-3.0")
testImplementation("org.mockito:mockito-core:4.1.0")
}
java {
group = "net.bretti.modelcheck"
version = "1.0.1-SNAPSHOT"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifactId = "modelcheck"
from(components["java"])
versionMapping {
usage("java-api") {
fromResolutionOf("runtimeClasspath")
}
usage("java-runtime") {
fromResolutionResult()
}
}
pom {
name.set("modelcheck")
description.set("modelcheck is a Java library that allows you to check whether a given transition " +
"system (described as a Kripke structure) satisfies a given computation tree logic " +
"(CTL) formula.")
url.set("https://github.com/jbretsch/modelcheck")
licenses {
license {
name.set("MIT License")
url.set("https://github.com/jbretsch/modelcheck/blob/master/LICENSE")
}
}
developers {
developer {
id.set("jbretsch")
name.set("Jan Bretschneider")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/jbretsch/modelcheck.git")
developerConnection.set("scm:git:ssh://github.com/jbretsch/modelcheck.git")
url.set("https://github.com/jbretsch/modelcheck")
}
}
}
}
repositories {
maven {
name = "ossrh"
credentials(PasswordCredentials::class)
val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
}
}
}
signing {
sign(publishing.publications["mavenJava"])
}
tasks.javadoc {
if (JavaVersion.current().isJava9Compatible) {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
}
tasks.wrapper {
gradleVersion = "7.3.2"
distributionType = Wrapper.DistributionType.ALL
}