Add Java dependency for SSH module to Gradle
Build 208 of ganymed-ssh2 is closest available version (Aug 2005)
⚠️ Modules were not tested after upgrade
This commit is contained in:
parent
ac02b90699
commit
2f8160526c
5 changed files with 26 additions and 18 deletions
11
build.gradle
11
build.gradle
|
@ -21,6 +21,11 @@ allprojects {
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_11
|
||||||
}
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
jcenter()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
version = new Date().format("yyyyMMdd")
|
version = new Date().format("yyyyMMdd")
|
||||||
|
@ -37,11 +42,6 @@ sourceSets {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
// Wrapping implementation because it does not allow access to its files
|
// Wrapping implementation because it does not allow access to its files
|
||||||
// (i.e. cannot be resolved)
|
// (i.e. cannot be resolved)
|
||||||
|
@ -68,7 +68,6 @@ def rhinoJar = configurations.library.files.find { jar ->
|
||||||
jar.name.startsWith('rhino')
|
jar.name.startsWith('rhino')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
startScripts {
|
startScripts {
|
||||||
applicationName = 'helma'
|
applicationName = 'helma'
|
||||||
classpath = files('../launcher.jar')
|
classpath = files('../launcher.jar')
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
// take care of any dependencies
|
// take care of any dependencies
|
||||||
app.addRepository('modules/helma/File.js');
|
app.addRepository('modules/helma/File.js');
|
||||||
app.addRepository('modules/helma/ganymed-ssh2.jar');
|
app.addRepository('modules/helma/ganymed-ssh2-build208.jar');
|
||||||
|
|
||||||
// define the helma namespace, if not existing
|
// define the helma namespace, if not existing
|
||||||
if (!global.helma) {
|
if (!global.helma) {
|
||||||
|
|
8
modules/helma/build.gradle
Normal file
8
modules/helma/build.gradle
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
dependencies {
|
||||||
|
runtime 'ch.ethz.ganymed:ganymed-ssh2:build208'
|
||||||
|
}
|
||||||
|
|
||||||
|
task deps(type: Copy) {
|
||||||
|
from sourceSets.main.runtimeClasspath
|
||||||
|
into '.'
|
||||||
|
}
|
|
@ -7,3 +7,4 @@ org.apache.tools.ant.DirectoryScanner.removeDefaultExclude('**/.git/**')
|
||||||
org.apache.tools.ant.DirectoryScanner.removeDefaultExclude('**/.gitignore')
|
org.apache.tools.ant.DirectoryScanner.removeDefaultExclude('**/.gitignore')
|
||||||
|
|
||||||
include 'launcher'
|
include 'launcher'
|
||||||
|
include 'modules:helma'
|
||||||
|
|
Loading…
Add table
Reference in a new issue