Skip to content

Commit

Permalink
Updates for Gradle 7 support, tested and still works with Gradle 5
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesde committed Mar 13, 2022
1 parent 0faee12 commit d7c08a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ tasks.withType(JavaCompile) { options.compilerArgs << "-proc:none" }
tasks.withType(GroovyCompile) { options.compilerArgs << "-proc:none" }

dependencies {
compile project(':framework')
implementation project(':framework')

// SSHJ - Apache 2.0 - https://github.com/hierynomus/sshj
compile 'com.hierynomus:sshj:0.31.0'
implementation 'com.hierynomus:sshj:0.31.0'

// Apache Mina SSHD - Apache 2.0 - https://mina.apache.org/sshd-project/index.html
compile 'org.apache.sshd:sshd-sftp:2.7.0'
implementation 'org.apache.sshd:sshd-sftp:2.7.0'
}

// by default the Java plugin runs test on build, change to not do that (only run test if explicit task)
Expand All @@ -68,7 +68,7 @@ jar {
archiveBaseName = jarBaseName
}
task copyDependencies { doLast {
copy { from (configurations.runtime - project(':framework').configurations.runtime - project(':framework').jar.archivePath)
copy { from (configurations.runtimeClasspath - project(':framework').configurations.runtimeClasspath - project(':framework').jar.archivePath)
into file(projectDir.absolutePath + '/lib') }
} }
copyDependencies.dependsOn cleanLib
Expand Down

0 comments on commit d7c08a1

Please sign in to comment.