Skip to content

Commit

Permalink
Gradle 7.1 and Kotlin KTS
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocipriani01 committed Sep 5, 2021
1 parent 22ce57e commit 320cd15
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 90 deletions.
88 changes: 0 additions & 88 deletions build.gradle

This file was deleted.

81 changes: 81 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
plugins {
id("java-library")
id("maven-publish")
id("idea")
}

group = "org.indilib.i4j"
description = "INDIForJava-driver"
version = "2.0.2"

repositories {
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

dependencies {
api("com.github.INDIForJava:INDIForJava-core:2.0.2")
}

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>("mavenJava") {
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-driver")
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-driver.git")
developerConnection.set("scm:git:ssh://github.com/INDIForJava/INDIForJava-driver.git")
url.set("https://github.com/INDIForJava/INDIForJava-driver")
}
}
}
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
1 change: 0 additions & 1 deletion settings.gradle

This file was deleted.

1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "INDIForJava-driver"

0 comments on commit 320cd15

Please sign in to comment.