Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Rylern committed Nov 15, 2024
1 parent b3b26e9 commit 69d27d3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
32 changes: 16 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ plugins {
id("org.bytedeco.gradle-javacpp-platform")
}

val moduleName = "qupath.extension.omero"
extra["moduleName"] = "qupath.extension.omero"
version = "0.1.1-rc1"
description = "QuPath extension to support image reading using OMERO APIs."
group = "io.github.qupath"
val qupathVersion = "0.6.0-rc1"
extra["qupathVersion"] = gradle.extra["qupathVersion"]
extra["qupathJavaVersion"] = libs.versions.jdk.get()

dependencies {
shadow("io.github.qupath:qupath-gui-fx:${qupathVersion}")
shadow("io.github.qupath:qupath-extension-bioformats:${qupathVersion}")
shadow("io.github.qupath:qupath-gui-fx:${project.extra["qupathVersion"]}")
shadow("io.github.qupath:qupath-extension-bioformats:${project.extra["qupathVersion"]}")
shadow(libs.qupath.fxtras)
shadow(libs.guava)

Expand All @@ -28,8 +28,8 @@ dependencies {
// Auto-discover if OMERO-Gateway is available
shadow("org.openmicroscopy:omero-gateway:5.8.2")

testImplementation("io.github.qupath:qupath-gui-fx:${qupathVersion}")
testImplementation("io.github.qupath:qupath-extension-bioformats:${qupathVersion}")
testImplementation("io.github.qupath:qupath-gui-fx:${project.extra["qupathVersion"]}")
testImplementation("io.github.qupath:qupath-extension-bioformats:${project.extra["qupathVersion"]}")
testImplementation("org.openmicroscopy:omero-gateway:5.8.2")
testImplementation(libs.junit)
testImplementation("org.testcontainers:testcontainers:1.19.1")
Expand All @@ -41,11 +41,19 @@ tasks.withType<Jar> {
attributes(mapOf(
"Implementation-Title" to project.name,
"Implementation-Version" to archiveVersion,
"Automatic-Module-Name" to moduleName
"Automatic-Module-Name" to project.extra["moduleName"]
))
}
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(project.extra["qupathJavaVersion"] as String))
}
withSourcesJar()
withJavadocJar()
}

/**
* Copy necessary attributes, see
* - https://github.com/qupath/qupath-extension-template/issues/9
Expand All @@ -54,7 +62,7 @@ tasks.withType<Jar> {
configurations.shadow {
val runtimeAttributes = configurations.runtimeClasspath.get().attributes
runtimeAttributes.keySet().forEach { key ->
attributes.attribute(key as Attribute<Any>, runtimeAttributes.getAttribute(key))
attributes.attribute(key as Attribute<Any>, runtimeAttributes.getAttribute(key) as Any)
}
}

Expand All @@ -72,14 +80,6 @@ tasks.register<Copy>("copyDependencies") {
into("build/libs")
}

java {
toolchain {
//languageVersion.set(JavaLanguageVersion.of(extra["qupathJavaVersion"] as String))
}
withSourcesJar()
withJavadocJar()
}

tasks.withType<Javadoc> {
options.encoding = "UTF-8"
if (findProperty("strictJavadoc") == null) {
Expand Down
5 changes: 1 addition & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ pluginManagement {

rootProject.name = "qupath-extension-omero"

gradle.extra["qupathVersion"] = "0.6.0-SNAPSHOT"
extra["qupathVersion"] = "0.6.0-SNAPSHOT"

dependencyResolutionManagement {
versionCatalogs {
create("libs") {

}
libs {
from("io.github.qupath:qupath-catalog:${extra["qupathVersion"]}")
}
}
Expand Down

0 comments on commit 69d27d3

Please sign in to comment.