diff --git a/build.gradle b/build.gradle index 7ceb9b7..c589ae8 100644 --- a/build.gradle +++ b/build.gradle @@ -11,15 +11,15 @@ repositories { // mavenLocal() mavenCentral() - + maven { url "https://maven.scijava.org/content/repositories/releases" } - + maven { url "https://maven.scijava.org/content/repositories/snapshots" } - + } /* @@ -34,31 +34,31 @@ ext.moduleName = 'qupath.extension.tensorflow' description = 'QuPath extension to use TensorFlow' -version = "0.3.0-rc2" +version = "0.3.0" dependencies { def tensorflowVersion = "0.3.3" def cudaVersion = "11.0-8.0-1.5.4" // Warning! This doesn't match version with QuPath v0.3.0 + opencv-platform-gpu - def qupathVersion = "0.3.0-rc2" // For now - + def qupathVersion = "0.3.0" + def platform = project.findProperty("platform") - + if (platform) { implementation "org.tensorflow:tensorflow-core-platform-${platform}:${tensorflowVersion}" } else { implementation "org.tensorflow:tensorflow-core-platform:${tensorflowVersion}" } - + if (useCuda) { implementation "org.bytedeco:cuda-platform:${cudaVersion}" if (useCudaRedist) { implementation "org.bytedeco:cuda-platform-redist:${cudaVersion}" } } - + shadow "io.github.qupath:qupath-gui-fx:${qupathVersion}" shadow "org.slf4j:slf4j-api:1.7.30" - + testImplementation "io.github.qupath:qupath-gui-fx:${qupathVersion}" testImplementation "org.junit.jupiter:junit-jupiter-api:5.7.2" testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' @@ -69,7 +69,7 @@ processResources { from ("${projectDir}/LICENSE.txt") { into 'licenses/' } - + doLast { if (useCuda) { logger.quiet("Requesting CUDA support - by downloading these archives you agree to the terms of the license " + @@ -82,7 +82,7 @@ processResources { tasks.register("copyDependencies", Copy) { description "Copy dependencies into the build directory for use elsewhere" group "QuPath" - + from configurations.default into 'build/libs' } @@ -98,7 +98,7 @@ java { withSourcesJar() if (project.properties['javadocs']) withJavadocJar() - + } /* @@ -111,7 +111,7 @@ if (!strictJavadoc) { options.addStringOption('Xdoclint:none', '-quiet') } } - + /* * Avoid 'Entry .gitkeep is a duplicate but no duplicate handling strategy has been set.' * when using withSourcesJar()