Skip to content

Commit

Permalink
Add some minor changes to Gradle files
Browse files Browse the repository at this point in the history
  • Loading branch information
pemistahl committed May 2, 2021
1 parent 362e4e9 commit 91c22a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ val linguaSupportedDetectors: String by project
val linguaSupportedLanguages: String by project
val linguaMainClass: String by project
val linguaCsvHeader: String by project
val githubPackagesUrl: String by project

val compileTestKotlin: KotlinCompile by tasks

Expand Down Expand Up @@ -256,9 +257,9 @@ tasks.withType<DokkaTask>().configureEach {
}

tasks.register<Jar>("dokkaJavadocJar") {
dependsOn("dokkaJavadoc")
group = "Build"
description = "Assembles a jar archive containing Javadoc documentation."
dependsOn("dokkaJavadoc")
classifier = "javadoc"
from("$buildDir/dokka/javadoc")
}
Expand All @@ -277,13 +278,13 @@ tasks.register<ConfigureShadowRelocation>("relocateDependencies") {
}

tasks.register<ShadowJar>("jarWithDependencies") {
dependsOn("relocateDependencies")
group = "Build"
description = "Assembles a jar archive containing the main classes and all external dependencies."
classifier = "with-dependencies"
from(sourceSets.main.get().output)
configurations = listOf(project.configurations.runtimeClasspath.get())
manifest { attributes("Main-Class" to linguaMainClass) }
dependsOn("relocateDependencies")
}

tasks.register<JavaExec>("runLinguaOnConsole") {
Expand Down Expand Up @@ -361,9 +362,9 @@ publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/pemistahl/lingua")
url = uri(githubPackagesUrl)
credentials {
username = "pemistahl"
username = linguaDeveloperId
password = project.findProperty("ghPackagesToken") as String?
}
}
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ linguaSupportedLanguages=Afrikaans,Albanian,Arabic,Armenian,Azerbaijani,Basque,B
linguaMainClass=com.github.pemistahl.lingua.app.AppKt

linguaCsvHeader=language,average-optimaize,single-words-optimaize,word-pairs-optimaize,sentences-optimaize,average-opennlp,single-words-opennlp,word-pairs-opennlp,sentences-opennlp,average-tika,single-words-tika,word-pairs-tika,sentences-tika,average-lingua,single-words-lingua,word-pairs-lingua,sentences-lingua

githubPackagesUrl=https://maven.pkg.github.com/pemistahl/lingua

0 comments on commit 91c22a3

Please sign in to comment.