Skip to content

Commit

Permalink
Add gradle task to run TdsMonitor
Browse files Browse the repository at this point in the history
Replace the use of the gradle application plugin to run toolsUI and create gradle tasks to run both toolsUI and the TdsMonitor.
  • Loading branch information
lesserwhirls committed Jan 11, 2025
1 parent 864c5a9 commit ce526c1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tds-ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ext.title = 'ToolsUI for the TDS'
ext.url = 'https://www.unidata.ucar.edu/software/tds/'

apply from: "$rootDir/gradle/any/dependencies.gradle"
apply plugin: 'application'
apply from: "$rootDir/gradle/any/java-internal.gradle"

dependencies {
implementation enforcedPlatform(project(':tds-platform'))
Expand All @@ -16,6 +16,14 @@ dependencies {
runtimeOnly project(':tds-ugrid')
}

application {
mainClass.set("ucar.nc2.ui.ToolsUI")
tasks.register('runToolsUI', JavaExec) {
dependsOn 'classes'
mainClass = 'ucar.nc2.ui.ToolsUI'
classpath = sourceSets.main.runtimeClasspath
}

tasks.register('runTdsMonitor', JavaExec) {
dependsOn 'classes'
mainClass = 'thredds.ui.monitor.TdsMonitor'
classpath = sourceSets.main.runtimeClasspath
}

0 comments on commit ce526c1

Please sign in to comment.