Skip to content

Commit

Permalink
Merge pull request #29 from Rylern/main
Browse files Browse the repository at this point in the history
QuPath v0.5 support
  • Loading branch information
petebankhead authored Dec 5, 2023
2 parents d188edb + 114ca28 commit e5c5dd5
Show file tree
Hide file tree
Showing 9 changed files with 275 additions and 150 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Version 0.3.0-SNAPSHOT
*In progress*
## Version 0.4.0

* Supports QuPath v0.5.0
* Renamed to `qupath-extension-omero-web`
* To make way for a new OMERO extension soon...


## Version 0.3.0

* Now separated from QuPath in its own repository!
* Log on/off OMERO servers with different credentials
Expand Down
87 changes: 58 additions & 29 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
plugins {
id 'java-library'
// To create a shadow/fat jar, including dependencies
id 'com.github.johnrengelman.shadow' version '7.0.0'
// Reduce JavaCPP dependencies
id 'org.bytedeco.gradle-javacpp-platform' version '1.5.7'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'org.openjfx.javafxplugin' version '0.1.0'
// Version in settings.gradle
id 'org.bytedeco.gradle-javacpp-platform'
}

ext.moduleName = 'qupath.extension.omero'
archivesBaseName = 'qupath-extension-omero'
description = "QuPath extension to support image reading using OMERO's web API."
version = "0.3.1-SNAPSHOT"
ext.qupathVersion = gradle.ext.qupathVersion
ext.qupathJavaVersion = 17

base {
description = "QuPath extension to support image reading using OMERO's web API."
version = "0.4.0-SNAPSHOT"
group = "io.github.qupath"
}

repositories {
// mavenLocal()

mavenCentral()

maven {
Expand All @@ -26,36 +32,59 @@ repositories {
}

dependencies {
implementation "org.apache.commons:commons-text:1.9"

shadow "io.github.qupath:qupath-gui-fx:0.3.0"
shadow "org.slf4j:slf4j-api:1.7.30"
implementation libs.commons.text
shadow "io.github.qupath:qupath-gui-fx:${qupathVersion}"
shadow libs.qupath.fxtras

shadow libs.slf4j
}

jar {
manifest {
attributes("Implementation-Title": project.name,
"Implementation-Version": archiveVersion,
"Automatic-Module-Name": moduleName)
}
}

processResources {
from ("${projectDir}/LICENSE.txt") {
into 'licenses/'
}
from ("${projectDir}/LICENSE") {
into 'licenses/'
}
}

tasks.register("copyDependencies", Copy) {
description "Copy dependencies into the output libs directory"
group "QuPath"
from configurations.default
into 'build/libs'
description "Copy dependencies into the build directory for use elsewhere"
group "QuPath"

from configurations.default
into 'build/libs'
}

java {
def version = project.findProperty('toolchain')
if (!version)
version = 11
else if (version.strip() == 'skip')
version = null
if (version != null) {
logger.quiet("Setting toolchain to {}", version)
toolchain {
languageVersion = JavaLanguageVersion.of(version)
}
toolchain {
languageVersion = JavaLanguageVersion.of(qupathJavaVersion)
}
withSourcesJar()
withJavadocJar()
}

tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
def strictJavadoc = findProperty('strictJavadoc')
if (!strictJavadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}

tasks.named('compileJava') {
options.encoding = 'UTF-8'
}

tasks.withType(org.gradle.jvm.tasks.Jar) {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

tasks.named('test') {
useJUnitPlatform()
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
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-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit e5c5dd5

Please sign in to comment.