@@ -1819,15 +1819,15 @@ void addJCov(p, test) {
1819
1819
" exclude=\" **.*Test\" ," +
1820
1820
" file=build/reports/jcov/report.xml," +
1821
1821
" merge=merge" ;
1822
- test. jvmArgs(" -javaagent:${ p.configurations.testCompile .files.find { it.name.startsWith('jcov') }} =$jcovJVMArgument " );
1822
+ test. jvmArgs(" -javaagent:${ p.configurations.testClasspath .files.find { it.name.startsWith('jcov') }} =$jcovJVMArgument " );
1823
1823
p. mkdir p. file(" build/reports/jcov" )
1824
1824
}
1825
1825
test. doLast {
1826
1826
def reportFile = p. file(" build/reports/jcov/report.xml" )
1827
1827
if (reportFile. exists()) {
1828
1828
p. javaexec {
1829
1829
workingDir = p. file(" build/reports/jcov" )
1830
- classpath = p. files(p. configurations. testCompile . files. find { it. name. startsWith(' jcov' ) })
1830
+ classpath = p. files(p. configurations. testClasspath . files. find { it. name. startsWith(' jcov' ) })
1831
1831
main = " com.sun.tdk.jcov.Helper"
1832
1832
args = [
1833
1833
" RepGen" ,
@@ -1940,9 +1940,9 @@ allprojects {
1940
1940
// By default all of our projects require junit for testing so we can just
1941
1941
// setup this dependency here.
1942
1942
dependencies {
1943
- testCompile group : " junit" , name : " junit" , version : " 4.8.2"
1943
+ testImplementation group : " junit" , name : " junit" , version : " 4.8.2"
1944
1944
if (BUILD_CLOSED && DO_JCOV ) {
1945
- testCompile name : " jcov"
1945
+ testImplementation name : " jcov"
1946
1946
}
1947
1947
}
1948
1948
@@ -2029,9 +2029,9 @@ project(":base") {
2029
2029
}
2030
2030
2031
2031
dependencies {
2032
- testCompile group : " junit" , name : " junit" , version : " 4.8.2"
2033
- testCompile sourceSets. main. output
2034
- testCompile sourceSets. shims. output
2032
+ testImplementation group : " junit" , name : " junit" , version : " 4.8.2"
2033
+ testImplementation sourceSets. main. output
2034
+ testImplementation sourceSets. shims. output
2035
2035
}
2036
2036
2037
2037
commonModuleSetup(project, [ ' base' ])
@@ -2105,11 +2105,11 @@ project(":graphics") {
2105
2105
}
2106
2106
2107
2107
dependencies {
2108
- stubCompile group : " junit" , name : " junit" , version : " 4.8.2"
2108
+ stubImplementation group : " junit" , name : " junit" , version : " 4.8.2"
2109
2109
2110
2110
antlr group : " org.antlr" , name : " antlr4" , version : " 4.7.2" , classifier : " complete"
2111
- testCompile project(" :base" ). sourceSets. test. output
2112
- compile project(' :base' )
2111
+ testImplementation project(" :base" ). sourceSets. test. output
2112
+ implementation project(' :base' )
2113
2113
}
2114
2114
2115
2115
project. ext. moduleSourcePath = defaultModuleSourcePath_GraphicsOne
@@ -2191,7 +2191,7 @@ project(":graphics") {
2191
2191
project. task(" compileFullJava" , type : JavaCompile , dependsOn : processShaders) {
2192
2192
description = " Compile all of the graphics java classes - main and shaders"
2193
2193
2194
- classpath = configurations. compile
2194
+ classpath = configurations. compileClasspath
2195
2195
2196
2196
source = project. sourceSets. main. java. srcDirs
2197
2197
source + = " $buildDir /gensrc/java"
@@ -2360,7 +2360,7 @@ project(":graphics") {
2360
2360
executable = JAVA
2361
2361
workingDir = project. projectDir
2362
2362
main = settings. generator
2363
- classpath = configurations. compile + configurations. antlr
2363
+ classpath = configurations. compileClasspath + configurations. antlr
2364
2364
classpath + = files(project. sourceSets. jslc. java. outputDir)
2365
2365
2366
2366
classpath + = files(" ${ project.projectDir} /src/jslc/resources" )
@@ -2449,7 +2449,7 @@ project(":graphics") {
2449
2449
executable = JAVA
2450
2450
workingDir = project. projectDir
2451
2451
main = " CompileJSL"
2452
- classpath = configurations. compile + configurations. antlr
2452
+ classpath = configurations. compileClasspath + configurations. antlr
2453
2453
classpath + = files(project. sourceSets. jslc. java. outputDir)
2454
2454
classpath + = files(project. sourceSets. jslc. resources)
2455
2455
classpath + = files(" $buildDir /classes/jsl-compilers/prism" ,
@@ -2504,7 +2504,7 @@ project(":graphics") {
2504
2504
}
2505
2505
if (allLibsPresent) return ;
2506
2506
2507
- for (File f : [configurations. compile . files, configurations. antlr. files]. flatten()) {
2507
+ for (File f : [configurations. compileClasspath . files, configurations. antlr. files]. flatten()) {
2508
2508
copy {
2509
2509
into libsDir
2510
2510
from f. getParentFile()
@@ -2548,10 +2548,10 @@ project(":controls") {
2548
2548
commonModuleSetup(project, [ ' base' , ' graphics' , ' controls' ])
2549
2549
2550
2550
dependencies {
2551
- testCompile project(" :graphics" ). sourceSets. test. output
2552
- testCompile project(" :base" ). sourceSets. test. output
2553
- compile project(' :base' )
2554
- compile project(' :graphics' )
2551
+ testImplementation project(" :graphics" ). sourceSets. test. output
2552
+ testImplementation project(" :base" ). sourceSets. test. output
2553
+ implementation project(' :base' )
2554
+ implementation project(' :graphics' )
2555
2555
}
2556
2556
2557
2557
test {
@@ -2627,8 +2627,8 @@ project(":swing") {
2627
2627
commonModuleSetup(project, [ ' base' , ' graphics' , ' swing' ])
2628
2628
2629
2629
dependencies {
2630
- compile project(" :base" )
2631
- compile project(" :graphics" )
2630
+ implementation project(" :base" )
2631
+ implementation project(" :graphics" )
2632
2632
}
2633
2633
2634
2634
test {
@@ -2653,7 +2653,7 @@ project(":swt") {
2653
2653
commonModuleSetup(project, [ ' base' , ' graphics' ])
2654
2654
2655
2655
dependencies {
2656
- compile name : SWT_FILE_NAME
2656
+ implementation name : SWT_FILE_NAME
2657
2657
}
2658
2658
2659
2659
classes {
@@ -2666,7 +2666,7 @@ project(":swt") {
2666
2666
// Skip copy if file is present.
2667
2667
if (swtLib. exists()) return ;
2668
2668
2669
- for (File f : configurations. compile . files) {
2669
+ for (File f : configurations. compileClasspath . files) {
2670
2670
// Have to rename the swt jar because it is some platform specific name but
2671
2671
// for the sake of the IDEs we need to have a single stable name that works
2672
2672
// on every platform
@@ -2732,10 +2732,10 @@ project(":fxml") {
2732
2732
2733
2733
2734
2734
dependencies {
2735
- testCompile project(" :graphics" ). sourceSets. test. output
2736
- testCompile project(" :base" ). sourceSets. test. output
2737
- compile project(" :base" )
2738
- compile project(" :graphics" )
2735
+ testImplementation project(" :graphics" ). sourceSets. test. output
2736
+ testImplementation project(" :base" ). sourceSets. test. output
2737
+ implementation project(" :base" )
2738
+ implementation project(" :graphics" )
2739
2739
}
2740
2740
2741
2741
test {
@@ -2784,8 +2784,8 @@ project(":media") {
2784
2784
media name : " ffmpeg-3.3.3" , ext : " tar.gz"
2785
2785
media name : " ffmpeg-4.0.2" , ext : " tar.gz"
2786
2786
}
2787
- compile project(" :base" )
2788
- compile project(" :graphics" )
2787
+ implementation project(" :base" )
2788
+ implementation project(" :graphics" )
2789
2789
}
2790
2790
2791
2791
compileJava. dependsOn updateCacheIfNeeded
@@ -3391,10 +3391,10 @@ project(":web") {
3391
3391
if (IS_COMPILE_WEBKIT ) {
3392
3392
icu name : " icu4c-${ icuVersion} -data-bin-l" , ext : " zip"
3393
3393
}
3394
- compile project(" :base" )
3395
- compile project(" :graphics" )
3396
- compile project(" :controls" )
3397
- compile project(" :media" )
3394
+ implementation project(" :base" )
3395
+ implementation project(" :graphics" )
3396
+ implementation project(" :controls" )
3397
+ implementation project(" :media" )
3398
3398
}
3399
3399
3400
3400
compileJava. dependsOn updateCacheIfNeeded
@@ -3403,8 +3403,8 @@ project(":web") {
3403
3403
from (project. file(" $projectDir /src/test/resources/test/html" )) {
3404
3404
include " **/archive-*.*"
3405
3405
}
3406
- archiveName = " webArchiveJar.jar"
3407
- destinationDir = file(" $buildDir /testing/resources" )
3406
+ archiveFileName = " webArchiveJar.jar"
3407
+ destinationDirectory = file(" $buildDir /testing/resources" )
3408
3408
}
3409
3409
3410
3410
def gensrcDir = " ${ buildDir} /gensrc/java"
@@ -3589,7 +3589,7 @@ project(":web") {
3589
3589
def compileJavaDOMBindingTask = task(" compileJavaDOMBinding${ t.capital} " , type : JavaCompile ,
3590
3590
dependsOn : [compileJava, compileNativeTask, copyNativeTask]) {
3591
3591
destinationDir = file(" $buildDir /classes/java/main" )
3592
- classpath = configurations. compile
3592
+ classpath = configurations. compileClasspath
3593
3593
source = project. sourceSets. main. java. srcDirs
3594
3594
options. compilerArgs. addAll([
3595
3595
' -implicit:none' ,
@@ -3607,8 +3607,8 @@ project(":web") {
3607
3607
3608
3608
def drtClasses = " **/com/sun/javafx/webkit/drt/**"
3609
3609
task drtJar(type : Jar , dependsOn : compileJava) {
3610
- archiveName = " drt.jar"
3611
- destinationDir = file(" $buildDir /test" )
3610
+ archiveFileName = " drt.jar"
3611
+ destinationDirectory = file(" $buildDir /test" )
3612
3612
from " $buildDir /classes/java/main/javafx.web/"
3613
3613
include drtClasses
3614
3614
includeEmptyDirs = false
@@ -3668,10 +3668,10 @@ project(":systemTests") {
3668
3668
project. ext. moduleName = " systemTests"
3669
3669
3670
3670
dependencies {
3671
- testCompile project(" :graphics" ). sourceSets. test. output
3672
- testCompile project(" :base" ). sourceSets. test. output
3673
- testCompile project(" :controls" ). sourceSets. test. output
3674
- testCompile project(" :swing" ). sourceSets. test. output
3671
+ testImplementation project(" :graphics" ). sourceSets. test. output
3672
+ testImplementation project(" :base" ). sourceSets. test. output
3673
+ testImplementation project(" :controls" ). sourceSets. test. output
3674
+ testImplementation project(" :swing" ). sourceSets. test. output
3675
3675
}
3676
3676
3677
3677
def dependentProjects = [ ' base' , ' graphics' , ' controls' , ' media' , ' web' , ' swing' , ' fxml' ]
@@ -3726,8 +3726,8 @@ project(":systemTests") {
3726
3726
dependsOn compileTestapp1Java
3727
3727
enabled = IS_FULL_TEST
3728
3728
3729
- destinationDir = file(" $buildDir /testapp1" )
3730
- archiveName = testapp1JarName
3729
+ destinationDirectory = file(" $buildDir /testapp1" )
3730
+ archiveFileName = testapp1JarName
3731
3731
includeEmptyDirs = false
3732
3732
from project. sourceSets. testapp1. java. outputDir
3733
3733
include(" testapp/**" )
@@ -3747,8 +3747,8 @@ project(":systemTests") {
3747
3747
dependsOn compileTestapp1Java
3748
3748
enabled = IS_FULL_TEST
3749
3749
3750
- destinationDir = file(" $buildDir /testapp1" )
3751
- archiveName = " jar2.jar" ;
3750
+ destinationDirectory = file(" $buildDir /testapp1" )
3751
+ archiveFileName = " jar2.jar" ;
3752
3752
includeEmptyDirs = false
3753
3753
from project. sourceSets. testapp1. java. outputDir
3754
3754
include(" pkg2/**" )
@@ -4188,8 +4188,8 @@ compileTargets { t ->
4188
4188
enabled = COMPILE_SWT
4189
4189
group = " Basic"
4190
4190
description = " Creates the javafx-swt.jar for the $t. name target"
4191
- destinationDir = file(" ${ project(":swt").buildDir} /libs" )
4192
- archiveName = " javafx-swt.jar"
4191
+ destinationDirectory = file(" ${ project(":swt").buildDir} /libs" )
4192
+ archiveFileName = " javafx-swt.jar"
4193
4193
includeEmptyDirs = false
4194
4194
from(" ${ project(":swt").buildDir} /classes/java/main" );
4195
4195
include(" **/javafx/embed/swt/**" )
@@ -4209,7 +4209,9 @@ compileTargets { t ->
4209
4209
dependsOn(javafxSwtTask)
4210
4210
4211
4211
doLast() {
4212
- ant. jar (update : true , index : true , destfile : " ${ javafxSwtTask.destinationDir} /${ javafxSwtTask.archiveName} " )
4212
+ def destDir = javafxSwtTask. destinationDirectory. get()
4213
+ def afName = javafxSwtTask. archiveFileName. get()
4214
+ ant. jar (update : true , index : true , destfile : " ${ destDir} /${ afName} " )
4213
4215
}
4214
4216
}
4215
4217
@@ -4376,17 +4378,17 @@ compileTargets { t ->
4376
4378
zipsTask. dependsOn(zipSdkTask)
4377
4379
4378
4380
def zipDocsTask = task(" zipDocs$t. capital " , type : Zip , dependsOn : zipSdkTask) {
4379
- destinationDir = file(" ${ bundlesDir} " )
4380
- archiveName = " ${ docsBundleName} .zip"
4381
+ destinationDirectory = file(" ${ bundlesDir} " )
4382
+ archiveFileName = " ${ docsBundleName} .zip"
4381
4383
includeEmptyDirs = false
4382
4384
from docsArtifactsDir
4383
4385
into " ${ docsBundleName} "
4384
4386
}
4385
4387
zipsTask. dependsOn(zipDocsTask)
4386
4388
4387
4389
def zipJmodsTask = task(" zipJmods$t. capital " , type : Zip , dependsOn : zipDocsTask) {
4388
- destinationDir = file(" ${ bundlesDir} " )
4389
- archiveName = " ${ jmodsBundleName} .zip"
4390
+ destinationDirectory = file(" ${ bundlesDir} " )
4391
+ archiveFileName = " ${ jmodsBundleName} .zip"
4390
4392
includeEmptyDirs = false
4391
4393
from jmodsArtifactsDir
4392
4394
into " ${ jmodsBundleName} "
@@ -4684,8 +4686,8 @@ compileTargets { t ->
4684
4686
def dstModularJarDir = " ${ standaloneLibDir} "
4685
4687
def modularJarName = " ${ moduleName} .jar"
4686
4688
def modularJarTask = project. task(" modularJarStandalone$t. capital " , type : Jar , dependsOn : project. assemble) {
4687
- destinationDir = file(" ${ dstModularJarDir} " )
4688
- archiveName = modularJarName
4689
+ destinationDirectory = file(" ${ dstModularJarDir} " )
4690
+ archiveFileName = modularJarName
4689
4691
includeEmptyDirs = false
4690
4692
from srcClassesDir
4691
4693
}
@@ -4741,8 +4743,8 @@ compileTargets { t ->
4741
4743
// and the standalone sdk should be independent of one another, but seems
4742
4744
// better than the alternatives.
4743
4745
def zipSourceFilesTask = project. task(" zipSourceFilesStandalone$t. capital " , type : Zip , dependsOn : buildModulesTask) {
4744
- destinationDir = file(" ${ standaloneLibDir} " )
4745
- archiveName = standaloneSrcZipName
4746
+ destinationDirectory = file(" ${ standaloneLibDir} " )
4747
+ archiveFileName = standaloneSrcZipName
4746
4748
includeEmptyDirs = false
4747
4749
from modulesSrcDir
4748
4750
include " **/*.java"
@@ -4767,14 +4769,14 @@ compileTargets { t ->
4767
4769
4768
4770
def modularEmptyPublicationJarName = " ${ moduleName} .jar"
4769
4771
def modularEmptyPublicationJarTask = project. task(" moduleEmptyPublicationJar${ t.capital} " , type : Jar ) {
4770
- destinationDir = file(" ${ dstModularJarDir} " )
4771
- archiveName = modularEmptyPublicationJarName
4772
+ destinationDirectory = file(" ${ dstModularJarDir} " )
4773
+ archiveFileName = modularEmptyPublicationJarName
4772
4774
}
4773
4775
4774
4776
def modularPublicationJarName = " ${ moduleName} -${ t.name} .jar"
4775
4777
def modularPublicationJarTask = project. task(" modularPublicationJar${ t.capital} " , type : Jar , dependsOn : modularEmptyPublicationJarTask) {
4776
- destinationDir = file(" ${ dstModularJarDir} " )
4777
- archiveName = modularPublicationJarName
4778
+ destinationDirectory = file(" ${ dstModularJarDir} " )
4779
+ archiveFileName = modularPublicationJarName
4778
4780
from srcLibsDir
4779
4781
from srcClassesDir
4780
4782
}
@@ -5108,8 +5110,8 @@ compileTargets { t ->
5108
5110
file(" ${ rootProject.buildDir} /${ jfxBundle} " ). delete()
5109
5111
}
5110
5112
5111
- archiveName = jfxBundle
5112
- destinationDir = file(" ${ rootProject.buildDir} " )
5113
+ archiveFileName = jfxBundle
5114
+ destinationDirectory = file(" ${ rootProject.buildDir} " )
5113
5115
includeEmptyDirs = false
5114
5116
from " ${ bundledSdkDir} "
5115
5117
}
0 commit comments