3930 //the following is a workaround for the lack of indexing in gradle 1.4 through 1.7
3931 dependsOn(javafxSwtTask)
3932
3933 doLast() {
3934 ant.jar (update: true, index: true, destfile: javafxSwtTask.archiveName)
3935 }
3936 }
3937
3938 def sdkTask = task("sdk$t.capital") {
3939 group = "Basic"
3940 dependsOn(javafxSwtIndexTask)
3941 }
3942
3943 sdk.dependsOn(sdkTask)
3944 }
3945
3946 project(":apps") {
3947 // The apps build is Ant based, we will exec ant from gradle.
3948
3949 // Download the Lucene libraries needed for the Ensemble8 app
3950 getConfigurations().create("lucene");
3951 dependencies {
3952 lucene group: "org.apache.lucene", name: "lucene-core", version: "7.1.0"
3953 lucene group: "org.apache.lucene", name: "lucene-grouping", version: "7.1.0"
3954 lucene group: "org.apache.lucene", name: "lucene-queryparser", version: "7.1.0"
3955 }
3956
3957 // Copy Lucene libraries into the Ensemble8/lib directory
3958 File ensembleLibDir = rootProject.file("apps/samples/Ensemble8/lib");
3959 def libNames = [ "lucene-core-7.1.0.jar",
3960 "lucene-grouping-7.1.0.jar",
3961 "lucene-queryparser-7.1.0.jar" ]
3962
3963
3964 task getLucene(type: Copy) {
3965 doFirst {
3966 ensembleLibDir.mkdirs();
3967 }
3968 into ensembleLibDir
3969 includeEmptyDirs = false
3970 configurations.lucene.files.each { f ->
3971 libNames.each { name ->
3972 if (name == f.getName()) {
3973 from f.getPath()
3974 }
3975 }
3976 }
3977 }
3978
3979 compileTargets { t ->
3980 List<String> params = []
3981
|
3930 //the following is a workaround for the lack of indexing in gradle 1.4 through 1.7
3931 dependsOn(javafxSwtTask)
3932
3933 doLast() {
3934 ant.jar (update: true, index: true, destfile: javafxSwtTask.archiveName)
3935 }
3936 }
3937
3938 def sdkTask = task("sdk$t.capital") {
3939 group = "Basic"
3940 dependsOn(javafxSwtIndexTask)
3941 }
3942
3943 sdk.dependsOn(sdkTask)
3944 }
3945
3946 project(":apps") {
3947 // The apps build is Ant based, we will exec ant from gradle.
3948
3949 // Download the Lucene libraries needed for the Ensemble8 app
3950 def luceneVersion = "7.4.0"
3951 getConfigurations().create("lucene");
3952 dependencies {
3953 lucene group: "org.apache.lucene", name: "lucene-core", version: luceneVersion
3954 lucene group: "org.apache.lucene", name: "lucene-grouping", version: luceneVersion
3955 lucene group: "org.apache.lucene", name: "lucene-queryparser", version: luceneVersion
3956 }
3957
3958 // Copy Lucene libraries into the Ensemble8/lib directory
3959 File ensembleLibDir = rootProject.file("apps/samples/Ensemble8/lib");
3960 def libNames = [ "lucene-core-${luceneVersion}.jar",
3961 "lucene-grouping-${luceneVersion}.jar",
3962 "lucene-queryparser-${luceneVersion}.jar" ]
3963
3964
3965 task getLucene(type: Copy) {
3966 doFirst {
3967 ensembleLibDir.mkdirs();
3968 }
3969 into ensembleLibDir
3970 includeEmptyDirs = false
3971 configurations.lucene.files.each { f ->
3972 libNames.each { name ->
3973 if (name == f.getName()) {
3974 from f.getPath()
3975 }
3976 }
3977 }
3978 }
3979
3980 compileTargets { t ->
3981 List<String> params = []
3982
|