-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
84 lines (74 loc) · 1.78 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.9.24"
id "java-library"
id "maven-publish"
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
id "signing"
}
group "com.kotcrab.kmips"
version "1.8-SNAPSHOT"
repositories {
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.9.24"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
test {
useJUnitPlatform()
}
java {
withJavadocJar()
withSourcesJar()
}
nexusPublishing {
repositories {
sonatype()
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name.set("kmips")
description.set("MIPS assembler intended for assembling small code patches")
url.set("https://github.com/kotcrab/kmips")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("kotcrab")
name.set("Kotcrab")
url.set("https://kotcrab.com")
}
}
scm {
connection.set("scm:git:[email protected]:kotcrab/kmips.git")
developerConnection.set("scm:git:[email protected]:kotcrab/kmips.git")
url.set("[email protected]:kotcrab/kmips.git")
}
}
}
}
}
signing {
required { !project.version.endsWith("-SNAPSHOT") && !project.hasProperty("skipSigning") }
sign publishing.publications.mavenJava
}