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 1bc5f51 commit 4dcaaa1
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 90 deletions.
2 changes: 2 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 0 additions & 89 deletions build.gradle

This file was deleted.

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

group = "org.indilib.i4j"
description = "INDIForJava-core"
version = "2.0.1"

repositories {
mavenCentral()
}

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

dependencies {
api("org.slf4j:slf4j-api:1.7.32")
api("org.glassfish.tyrus:tyrus-client:2.0.1")
implementation("com.thoughtworks.xstream:xstream:1.4.18")
}

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-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")
}
}
}
}
}
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-core"

0 comments on commit 4dcaaa1

Please sign in to comment.