Skip to content

Commit 320cd15

Browse files
Gradle 7.1 and Kotlin KTS
1 parent 22ce57e commit 320cd15

File tree

5 files changed

+83
-90
lines changed

5 files changed

+83
-90
lines changed

build.gradle

Lines changed: 0 additions & 88 deletions
This file was deleted.

build.gradle.kts

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
plugins {
2+
id("java-library")
3+
id("maven-publish")
4+
id("idea")
5+
}
6+
7+
group = "org.indilib.i4j"
8+
description = "INDIForJava-driver"
9+
version = "2.0.2"
10+
11+
repositories {
12+
mavenCentral()
13+
maven {
14+
url = uri("https://jitpack.io")
15+
}
16+
}
17+
18+
java {
19+
sourceCompatibility = JavaVersion.VERSION_1_8
20+
targetCompatibility = JavaVersion.VERSION_1_8
21+
}
22+
23+
dependencies {
24+
api("com.github.INDIForJava:INDIForJava-core:2.0.2")
25+
}
26+
27+
tasks.jar {
28+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
29+
manifest {
30+
from("META-INF/MANIFEST.MF")
31+
}
32+
}
33+
34+
tasks {
35+
val sourcesJar by creating(Jar::class) {
36+
archiveClassifier.set("sources")
37+
from(sourceSets.main.get().allSource)
38+
}
39+
40+
val javadocJar by creating(Jar::class) {
41+
dependsOn.add(javadoc)
42+
archiveClassifier.set("javadoc")
43+
from(javadoc)
44+
}
45+
46+
artifacts {
47+
archives(sourcesJar)
48+
archives(javadocJar)
49+
archives(jar)
50+
}
51+
}
52+
53+
publishing {
54+
publications {
55+
create<MavenPublication>("mavenJava") {
56+
pom {
57+
name.set(project.name)
58+
description.set("INDIForJava is a set of libraries to implement clients and servers that follow the INDI protocol, designed to operate astronomical instrumentation.")
59+
url.set("https://github.com/INDIForJava/INDIForJava-driver")
60+
licenses {
61+
license {
62+
name.set("GNU Lesser General Public License")
63+
url.set("https://www.gnu.org/licenses/lgpl-3.0.txt")
64+
}
65+
}
66+
developers {
67+
developer {
68+
id.set("marcocipriani01")
69+
name.set("Marco Cipriani")
70+
email.set("marco.cipriani.01@gmail.com")
71+
}
72+
}
73+
scm {
74+
connection.set("scm:git:git://github.com/INDIForJava/INDIForJava-driver.git")
75+
developerConnection.set("scm:git:ssh://github.com/INDIForJava/INDIForJava-driver.git")
76+
url.set("https://github.com/INDIForJava/INDIForJava-driver")
77+
}
78+
}
79+
}
80+
}
81+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

settings.gradle

Lines changed: 0 additions & 1 deletion
This file was deleted.

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = "INDIForJava-driver"

0 commit comments

Comments
 (0)