-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
83 lines (73 loc) · 2.21 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
plugins {
id("java-library")
id("maven-publish")
id("idea")
}
group = "org.indilib.i4j"
description = "INDIForJava-template"
version = "x.x.x"
repositories {
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
api("com.github.INDIForJava:INDIForJava-core:2.1.1")
}
tasks.jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
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-template")
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-template.git")
developerConnection.set("scm:git:ssh://github.com/INDIForJava/INDIForJava-template.git")
url.set("https://github.com/INDIForJava/INDIForJava-template")
}
}
}
}
}