Revert "FINERACT-2181: Make 'staticWeaveJPA' gradle task cacheable"
This reverts commit dd2c29fb91.
This commit is contained in:
committed by
Arnold Gálovics
parent
4b7335b724
commit
d46ab4e73e
@@ -1,66 +0,0 @@
|
|||||||
/**
|
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
* or more contributor license agreements. See the NOTICE file
|
|
||||||
* distributed with this work for additional information
|
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
|
||||||
* to you under the Apache License, Version 2.0 (the
|
|
||||||
* "License"); you may not use this file except in compliance
|
|
||||||
* with the License. You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
package org.apache.fineract.gradle
|
|
||||||
|
|
||||||
import org.gradle.api.DefaultTask
|
|
||||||
import org.gradle.api.file.DirectoryProperty
|
|
||||||
import org.gradle.api.file.RegularFileProperty
|
|
||||||
import org.gradle.api.tasks.CacheableTask
|
|
||||||
import org.gradle.api.tasks.InputDirectory
|
|
||||||
import org.gradle.api.tasks.InputFile
|
|
||||||
import org.gradle.api.tasks.OutputDirectory
|
|
||||||
import org.gradle.api.tasks.PathSensitive
|
|
||||||
import org.gradle.api.tasks.PathSensitivity
|
|
||||||
import org.gradle.api.tasks.TaskAction
|
|
||||||
|
|
||||||
import java.nio.file.Files
|
|
||||||
import java.nio.file.StandardCopyOption
|
|
||||||
|
|
||||||
@CacheableTask
|
|
||||||
abstract class StaticWeaveJpaTask extends DefaultTask {
|
|
||||||
|
|
||||||
@InputDirectory
|
|
||||||
@PathSensitive(PathSensitivity.RELATIVE)
|
|
||||||
final DirectoryProperty inputClasses = project.objects.directoryProperty()
|
|
||||||
|
|
||||||
@InputFile
|
|
||||||
@PathSensitive(PathSensitivity.RELATIVE)
|
|
||||||
final RegularFileProperty persistenceXml = project.objects.fileProperty()
|
|
||||||
|
|
||||||
@OutputDirectory
|
|
||||||
final DirectoryProperty outputDir = project.objects.directoryProperty()
|
|
||||||
|
|
||||||
@TaskAction
|
|
||||||
void weave() {
|
|
||||||
File weavingRoot = new File(temporaryDir, "static-weaving")
|
|
||||||
File metaInf = new File(weavingRoot, "META-INF")
|
|
||||||
metaInf.mkdirs()
|
|
||||||
Files.copy(persistenceXml.get().asFile.toPath(), new File(metaInf, "persistence.xml").toPath(), StandardCopyOption.REPLACE_EXISTING)
|
|
||||||
|
|
||||||
project.javaexec {
|
|
||||||
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
|
||||||
classpath = project.sourceSets.main.runtimeClasspath
|
|
||||||
args = [
|
|
||||||
"-persistenceinfo", weavingRoot.absolutePath,
|
|
||||||
inputClasses.get().asFile.absolutePath,
|
|
||||||
outputDir.get().asFile.absolutePath
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Accounting'
|
description = 'Fineract Accounting'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/accounting/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/accounting/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("weavedJar", Jar) {
|
tasks.register("weavedJar", Jar) {
|
||||||
|
|||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Branch'
|
description = 'Fineract Branch'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/branch/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/branch/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -60,8 +72,6 @@ compileJava {
|
|||||||
|
|
||||||
// Configuration for Swagger documentation generation task
|
// Configuration for Swagger documentation generation task
|
||||||
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
||||||
|
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Charge'
|
description = 'Fineract Charge'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/charge/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/charge/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -60,8 +72,6 @@ compileJava {
|
|||||||
|
|
||||||
// Configuration for Swagger documentation generation task
|
// Configuration for Swagger documentation generation task
|
||||||
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
||||||
|
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Command'
|
description = 'Fineract Command'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
@@ -82,12 +81,25 @@ jmh {
|
|||||||
benchmarkMode = ['thrpt'] // Default benchmark mode
|
benchmarkMode = ['thrpt'] // Default benchmark mode
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/command/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/command/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("weavedJar", Jar) {
|
tasks.register("weavedJar", Jar) {
|
||||||
|
|||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Core'
|
description = 'Fineract Core'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/core/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/core/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Document'
|
description = 'Fineract Document'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/document/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/document/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Investor'
|
description = 'Fineract Investor'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/investor/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/investor/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Loan'
|
description = 'Fineract Loan'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/loan/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/loan/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -58,8 +70,6 @@ compileJava {
|
|||||||
|
|
||||||
// Configuration for Swagger documentation generation task
|
// Configuration for Swagger documentation generation task
|
||||||
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
||||||
|
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Progressive Loan'
|
description = 'Fineract Progressive Loan'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/progressive-loan/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/progressive-loan/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Provider'
|
description = 'Fineract Provider'
|
||||||
|
|
||||||
apply plugin: 'org.zeroturnaround.gradle.jrebel'
|
apply plugin: 'org.zeroturnaround.gradle.jrebel'
|
||||||
@@ -31,12 +30,25 @@ apply plugin: 'se.thinkcode.cucumber-runner'
|
|||||||
|
|
||||||
check.dependsOn('cucumber')
|
check.dependsOn('cucumber')
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/provider/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/provider/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("weavedJar", Jar) {
|
tasks.register("weavedJar", Jar) {
|
||||||
@@ -474,7 +486,6 @@ javadoc {
|
|||||||
tasks.register('devRun', org.springframework.boot.gradle.tasks.run.BootRun) {
|
tasks.register('devRun', org.springframework.boot.gradle.tasks.run.BootRun) {
|
||||||
description = 'Runs the application quickly for development by skipping quality checks'
|
description = 'Runs the application quickly for development by skipping quality checks'
|
||||||
group = 'Application'
|
group = 'Application'
|
||||||
dependsOn staticWeaveJpa
|
|
||||||
|
|
||||||
// Configure the build to skip quality checks
|
// Configure the build to skip quality checks
|
||||||
gradle.taskGraph.whenReady { graph ->
|
gradle.taskGraph.whenReady { graph ->
|
||||||
|
|||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Rates'
|
description = 'Fineract Rates'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/rates/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/rates/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -60,8 +72,6 @@ compileJava {
|
|||||||
|
|
||||||
// Configuration for Swagger documentation generation task
|
// Configuration for Swagger documentation generation task
|
||||||
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
||||||
|
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Report'
|
description = 'Fineract Report'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/report/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/report/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -60,8 +72,6 @@ compileJava {
|
|||||||
|
|
||||||
// Configuration for Swagger documentation generation task
|
// Configuration for Swagger documentation generation task
|
||||||
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
||||||
|
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Savings'
|
description = 'Fineract Savings'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
@@ -26,12 +25,25 @@ tasks.named('classes') {
|
|||||||
finalizedBy staticWeaveJpa
|
finalizedBy staticWeaveJpa
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/savings/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/savings/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("weavedJar", Jar) {
|
tasks.register("weavedJar", Jar) {
|
||||||
@@ -62,8 +74,6 @@ compileJava {
|
|||||||
|
|
||||||
// Configuration for Swagger documentation generation task
|
// Configuration for Swagger documentation generation task
|
||||||
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
||||||
|
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,18 +16,30 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
description = 'Fineract Taxes'
|
description = 'Fineract Taxes'
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
tasks.register("staticWeaveJpa", StaticWeaveJpaTask) {
|
tasks.register('staticWeaveJpa', JavaExec) {
|
||||||
dependsOn classes
|
dependsOn classes
|
||||||
|
|
||||||
inputClasses.set(layout.buildDirectory.dir("classes/java/main").get())
|
def classesDir = layout.buildDirectory.dir("classes/java/main").get().asFile
|
||||||
persistenceXml.set(file("src/main/resources/jpa/static-weaving/module/tax/persistence.xml"))
|
def outputDir = layout.buildDirectory.dir("weaved-classes").get().asFile
|
||||||
outputDir.set(layout.buildDirectory.dir("weaved-classes").get())
|
def persistenceInfo = layout.buildDirectory.dir('static-weaving').get()
|
||||||
|
copy {
|
||||||
|
from file("src/main/resources/jpa/static-weaving/module/tax/persistence.xml")
|
||||||
|
into "${persistenceInfo}/META-INF/"
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClass.set("org.eclipse.persistence.tools.weaving.jpa.StaticWeave")
|
||||||
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
|
||||||
|
args = [
|
||||||
|
'-persistenceinfo', persistenceInfo,
|
||||||
|
classesDir.absolutePath,
|
||||||
|
outputDir.absolutePath
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -60,8 +72,6 @@ compileJava {
|
|||||||
|
|
||||||
// Configuration for Swagger documentation generation task
|
// Configuration for Swagger documentation generation task
|
||||||
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
// https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin
|
||||||
|
|
||||||
import org.apache.fineract.gradle.StaticWeaveJpaTask
|
|
||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user