Skip to content

Commit 0e98333

Browse files
committed
Merge origin/master
2 parents c1c92ad + 31ef1aa commit 0e98333

File tree

17 files changed

+940
-660
lines changed

17 files changed

+940
-660
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
distribution: 'temurin'
2828
cache: maven
2929
- name: Build with Maven
30-
run: mvn -B package --file pom.xml
30+
run: mvn -B package --file pom.xml -DdisableXmlReport=true

build.gradle

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ plugins {
1414

1515
// download the RR tools which have no Maven Repository
1616
id "de.undercouch.download" version "latest.release"
17+
id 'org.hidetake.ssh' version "latest.release"
1718

1819
id "se.bjurr.gitchangelog.git-changelog-gradle-plugin" version "latest.release"
1920
}
@@ -85,8 +86,8 @@ dependencies {
8586
testImplementation 'org.mockito:mockito-junit-jupiter:4.+'
8687

8788
// enforce latest version of JavaCC
88-
testImplementation 'net.java.dev.javacc:javacc:7.0.12'
89-
javacc 'net.java.dev.javacc:javacc:7.0.12'
89+
testImplementation 'net.java.dev.javacc:javacc:+'
90+
javacc 'net.java.dev.javacc:javacc:+'
9091
}
9192

9293
compileJavacc {
@@ -98,6 +99,11 @@ java {
9899
withJavadocJar()
99100
}
100101

102+
javadoc {
103+
options.addBooleanOption('html5', true)
104+
options.addBooleanOption("Xdoclint:none", true)
105+
}
106+
101107
test {
102108
environment = [ 'EXPORT_TEST_TO_FILE': 'True' ]
103109
useJUnitPlatform()
@@ -231,7 +237,7 @@ spotless {
231237

232238
format 'misc', {
233239
// define the files to apply `misc` to
234-
target '*.gradle', '*.md', '.gitignore'
240+
target '*.rst', '*.md', '.gitignore'
235241

236242
// define the steps to apply to those files
237243
trimTrailingWhitespace()
@@ -426,36 +432,33 @@ tasks.withType(JavaCompile) {
426432
options.encoding = 'UTF-8'
427433
}
428434

429-
task upload(type: Exec) {
430-
dependsOn(build, gitChangelogTask)
431-
432-
def versionStable = getVersion(false)
433-
434-
if( findProperty("${project.name}.host")==null ) {
435-
println(
436-
"""
437-
Property \"${project.name}.host\' not found.
438-
Please define \"${project.name}.host\" in the Gradle configuration (e. g. \$HOME/.gradle/gradle.properties.
439-
"""
440-
)
441-
} else {
442-
443-
// define the USERNAME and HOST properties in ~/.gradle/gradle.properties
444-
args = ["sftp://${findProperty("${project.name}.username")}@${findProperty("${project.name}.host")}/download"]
445-
446-
executable "sftp"
447-
448-
standardInput = new ByteArrayInputStream("""<<EOF
449-
mkdir ${project.name}-${versionStable}
450-
cd ${project.name}-${versionStable}
451-
put build/libs/*
452-
quit
453-
EOF"""
454-
.getBytes(Charset.defaultCharset()))
435+
remotes {
436+
webServer {
437+
host = findProperty("${project.name}.host")
438+
user = findProperty("${project.name}.username")
439+
identity = new File("${System.properties['user.home']}/.ssh/id_rsa")
440+
}
441+
}
455442

456-
standardOutput = new ByteArrayOutputStream()
457-
ext.output = {
458-
return standardOutput.toString()
443+
task upload {
444+
doFirst {
445+
if( findProperty("${project.name}.host")==null ) {
446+
println(
447+
"""
448+
Property \"${project.name}.host\' not found.
449+
Please define \"${project.name}.host\" in the Gradle configuration (e. g. \$HOME/.gradle/gradle.properties.
450+
"""
451+
)
452+
}
453+
}
454+
doLast {
455+
ssh.run {
456+
session(remotes.webServer) {
457+
def versionStable = getVersion(false)
458+
execute "mkdir -p download/${project.name}-${versionStable}"
459+
put from: "${project.buildDir}/libs", into: "download/${project.name}-${versionStable}"
460+
}
459461
}
460462
}
461463
}
464+

gradle/wrapper/gradle-wrapper.jar

2.02 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)