Skip to content

Commit

Permalink
Merge pull request #64 from petebankhead/gradle-plugin
Browse files Browse the repository at this point in the history
Use QuPath Gradle plugin
  • Loading branch information
petebankhead authored Dec 6, 2024
2 parents fae1947 + fb32d92 commit 27befed
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 185 deletions.
150 changes: 0 additions & 150 deletions build.gradle

This file was deleted.

55 changes: 55 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
plugins {
id("qupath-conventions")
`maven-publish`
}

qupathExtension {
name = "qupath-extension-wsinfer"
version = "0.4.0-SNAPSHOT"
group = "io.github.qupath"
description = "QuPath extension to run WSInfer models in QuPath"
automaticModule = "qupath.extension.py4j"
}

dependencies {

implementation(libs.bundles.qupath)
implementation(libs.bundles.logging)
implementation(libs.qupath.fxtras)
implementation(libs.bundles.markdown)
implementation(libs.deepJavaLibrary)

// For testing
testImplementation(libs.junit)

}

publishing {
repositories {
maven {
name = "SciJava"
val releasesRepoUrl = uri("https://maven.scijava.org/content/repositories/releases")
val snapshotsRepoUrl = uri("https://maven.scijava.org/content/repositories/snapshots")
// Use gradle -Prelease publish
url = if (project.hasProperty("release")) releasesRepoUrl else snapshotsRepoUrl
credentials {
username = System.getenv("MAVEN_USER")
password = System.getenv("MAVEN_PASS")
}
}
}

publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
licenses {
license {
name = "Apache License v2.0"
url = "https://www.apache.org/licenses/LICENSE-2.0"
}
}
}
}
}
}
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,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
34 changes: 0 additions & 34 deletions settings.gradle

This file was deleted.

16 changes: 16 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url = uri("https://maven.scijava.org/content/repositories/releases")
}
}
}

qupath {
version = "0.5.0"
}

plugins {
id("io.github.qupath.qupath-extension-settings") version "0.2.1"
}

0 comments on commit 27befed

Please sign in to comment.