-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from petebankhead/building
Update building, use gradle plugin
- Loading branch information
Showing
8 changed files
with
94 additions
and
212 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
plugins { | ||
id("qupath-conventions") | ||
id("com.gradleup.shadow") version "8.3.5" | ||
`maven-publish` | ||
} | ||
|
||
qupathExtension { | ||
name = "qupath-extension-py4j" | ||
version = "0.1.0-SNAPSHOT" | ||
group = "io.github.qupath" | ||
description = "Connect QuPath to Python using Py4J" | ||
automaticModule = "qupath.extension.py4j" | ||
} | ||
|
||
dependencies { | ||
|
||
shadow(libs.bundles.qupath) | ||
shadow(libs.bundles.logging) | ||
shadow(libs.qupath.fxtras) | ||
shadow(libs.ikonli.javafx) | ||
shadow(libs.guava) | ||
|
||
implementation("net.sf.py4j:py4j:0.10.9.7") | ||
|
||
// For testing | ||
testImplementation(libs.bundles.qupath) | ||
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
maven { | ||
url = uri("https://maven.scijava.org/content/repositories/releases") | ||
} | ||
} | ||
} | ||
|
||
qupath { | ||
version = "0.6.0-SNAPSHOT" | ||
} | ||
|
||
// Apply QuPath Gradle settings plugin to handle configuration | ||
plugins { | ||
id("io.github.qupath.qupath-extension-settings") version "0.2.1" | ||
} |