Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from petebankhead/main
Browse files Browse the repository at this point in the history
For v0.3.0
  • Loading branch information
petebankhead authored Sep 2, 2021
2 parents 3ee24cd + 704904b commit 434e96e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

}

/*
Expand All @@ -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'
Expand All @@ -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 " +
Expand All @@ -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'
}
Expand All @@ -98,7 +98,7 @@ java {
withSourcesJar()
if (project.properties['javadocs'])
withJavadocJar()

}

/*
Expand All @@ -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()
Expand Down

0 comments on commit 434e96e

Please sign in to comment.