-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
81 lines (71 loc) · 2.17 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
plugins {
id("java-library")
id("maven-publish")
id("idea")
}
group = "org.indilib.i4j"
description = "INDIForJava-core"
version = "2.1.1"
repositories {
mavenCentral()
}
dependencies {
api("org.slf4j:slf4j-api:1.7.32")
api("org.glassfish.tyrus:tyrus-client:2.0.1")
api("com.thoughtworks.xstream:xstream:1.4.18")
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.jar {
manifest {
from("META-INF/MANIFEST.MF")
}
}
tasks {
val sourcesJar by creating(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}
val javadocJar by creating(Jar::class) {
dependsOn.add(javadoc)
archiveClassifier.set("javadoc")
from(javadoc)
}
artifacts {
archives(sourcesJar)
archives(javadocJar)
archives(jar)
}
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
name.set(project.name)
description.set("INDIForJava is a set of libraries to implement clients and servers that follow the INDI protocol, designed to operate astronomical instrumentation.")
url.set("https://github.com/INDIForJava/INDIForJava-core")
licenses {
license {
name.set("GNU Lesser General Public License")
url.set("https://www.gnu.org/licenses/lgpl-3.0.txt")
}
}
developers {
developer {
id.set("marcocipriani01")
name.set("Marco Cipriani")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/INDIForJava/INDIForJava-core.git")
developerConnection.set("scm:git:ssh://github.com/INDIForJava/INDIForJava-core.git")
url.set("https://github.com/INDIForJava/INDIForJava-core")
}
}
}
}
}