@@ -142,11 +142,6 @@ tasks.register('xmldoc', Javadoc) {
142
142
destinationDir = reporting. file(" xmlDoclet" )
143
143
options. docletpath = configurations. xmlDoclet. files. asType(List )
144
144
options. doclet = " com.github.markusbernhardt.xmldoclet.XmlDoclet"
145
-
146
- // @see https://github.com/gradle/gradle/issues/11898#issue-549900869
147
- // title = null
148
- // options.noTimestamp(false)
149
-
150
145
options. addBooleanOption(" rst" , true )
151
146
options. addStringOption(" basePackage" , " net.sf.jsqlparser" )
152
147
@@ -303,14 +298,14 @@ spotless {
303
298
}
304
299
}
305
300
306
- tasks. withType(Checkstyle ) {
301
+ tasks. withType(Checkstyle ). configureEach {
307
302
reports {
308
303
xml. required = false
309
304
html. required = true
310
305
}
311
306
}
312
307
313
- task renderRR ( ) {
308
+ tasks . register( ' renderRR ' ) {
314
309
dependsOn(compileJavacc)
315
310
doLast {
316
311
// these WAR files have been provided as a courtesy by Gunther Rademacher
@@ -362,7 +357,7 @@ task renderRR() {
362
357
}
363
358
}
364
359
365
- task gitChangelogTask ( type : GitChangelogTask ) {
360
+ tasks . register( ' gitChangelogTask ' , GitChangelogTask ) {
366
361
fromRepo = file(" $projectDir " )
367
362
file = new File (" ${ projectDir} /src/site/sphinx/changelog.rst" )
368
363
fromRef = " 4.0"
@@ -401,7 +396,7 @@ Version {{name}}
401
396
// @formatter:on
402
397
}
403
398
404
- task updateKeywords ( type : JavaExec ) {
399
+ tasks . register( ' updateKeywords ' , JavaExec ) {
405
400
group = " Execution"
406
401
description = " Run the main class with JavaExecTask"
407
402
classpath = sourceSets. main. runtimeClasspath
@@ -414,7 +409,7 @@ task updateKeywords(type: JavaExec) {
414
409
dependsOn(compileJava)
415
410
}
416
411
417
- task sphinx ( type : Exec ) {
412
+ tasks . register( ' sphinx ' , Exec ) {
418
413
dependsOn(gitChangelogTask, renderRR, updateKeywords, xmldoc)
419
414
420
415
doFirst() {
@@ -547,7 +542,7 @@ signing {
547
542
sign publishing. publications. mavenJava
548
543
}
549
544
550
- tasks. withType(JavaCompile ) {
545
+ tasks. withType(JavaCompile ). configureEach {
551
546
options. encoding = ' UTF-8'
552
547
}
553
548
@@ -559,11 +554,11 @@ remotes {
559
554
}
560
555
}
561
556
562
- task upload {
557
+ tasks . register( ' upload' ) {
563
558
doFirst {
564
- if ( findProperty(" ${ project.name} .host" )== null ) {
559
+ if ( findProperty(" ${ project.name} .host" ) == null ) {
565
560
println (
566
- """
561
+ """
567
562
Property \" ${ project.name} .host\' not found.
568
563
Please define \" ${ project.name} .host\" in the Gradle configuration (e. g. \$ HOME/.gradle/gradle.properties.
569
564
"""
@@ -575,7 +570,9 @@ task upload {
575
570
session(remotes. webServer) {
576
571
def versionStable = getVersion(false )
577
572
execute " mkdir -p download/${ project.name} -${ versionStable} "
578
- put from : " ${ project.buildDir} /libs" , into : " download/${ project.name} -${ versionStable} "
573
+ for (File file : fileTree(include :[' *.jar' ], dir :" ${ project.buildDir} /libs" ). collect()) {
574
+ put from : file, into : " download/${ project.name} -${ versionStable} "
575
+ }
579
576
}
580
577
}
581
578
}
0 commit comments