Update build.gradle.kts
This commit is contained in:
@@ -72,8 +72,6 @@ dependencies {
|
|||||||
* BUILD
|
* BUILD
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// JVM VERSION
|
|
||||||
|
|
||||||
java.sourceCompatibility = JVM_VERSION
|
java.sourceCompatibility = JVM_VERSION
|
||||||
java.targetCompatibility = JVM_VERSION
|
java.targetCompatibility = JVM_VERSION
|
||||||
|
|
||||||
@@ -82,21 +80,11 @@ tasks {
|
|||||||
compileTestKotlin.configureJvmVersion()
|
compileTestKotlin.configureJvmVersion()
|
||||||
}
|
}
|
||||||
|
|
||||||
// SOURCE CODE
|
java {
|
||||||
|
withSourcesJar()
|
||||||
val sourcesJar by tasks.creating(Jar::class) {
|
withJavadocJar()
|
||||||
archiveClassifier.set("sources")
|
|
||||||
from(sourceSets["main"].allSource)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
|
||||||
archives(sourcesJar)
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* DOCUMENTATION
|
|
||||||
*/
|
|
||||||
|
|
||||||
tasks.dokkaHtml.configure {
|
tasks.dokkaHtml.configure {
|
||||||
outputDirectory.set(projectDir.resolve("docs"))
|
outputDirectory.set(projectDir.resolve("docs"))
|
||||||
}
|
}
|
||||||
@@ -121,8 +109,6 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
|
||||||
artifact(sourcesJar)
|
|
||||||
|
|
||||||
this.groupId = project.group.toString()
|
this.groupId = project.group.toString()
|
||||||
this.artifactId = project.name.toLowerCase()
|
this.artifactId = project.name.toLowerCase()
|
||||||
this.version = project.version.toString()
|
this.version = project.version.toString()
|
||||||
|
Reference in New Issue
Block a user