- The
ampConfig
configuration block has been deprecated. It has been replaced withamp
configuration insourceSets
- The
Amp
task has receive a makeover to be more in line with the behavior of other gradle tasks.- The
web
andconfig
properties have been changed to beCopySpec
s. - The
de
CopySpec
has been changed to adeBundles
property.
- The
Old | New |
---|---|
ampConfig {
moduleProperties = project.file("src/main/amp/module.properties")
fileMappingProperties = project.file("src/main/amp/file-mapping.properties")
configDir = project.file("src/main/amp/config")
webDir = project.file("src/main/amp/web")
} |
sourceSets {
main {
amp {
module("src/main/amp/module.properties")
fileMapping("src/main/amp/file-mapping.properties")
config.srcDir = "src/main/amp/config"
web.srcDir = "src/main/amp/web"
}
}
}
|
ampConfig {
moduleProperties = project.file("src/main/amp/module.properties")
dynamicExtension = true
} |
sourceSets {
main {
amp {
// You can inline the contents of your module.properties as a groovy map
module ([
"module.id": "my-module",
"module.version": project.version
])
dynamicExtension()
}
}
} |
Old | New |
---|---|
amp {
web = project.file("src/main/amp/web")
config = project.file("src/main/amp/config")
} |
amp {
web {
from "src/main/amp/web"
}
config {
from "src/main/amp/config"
}
} |
amp {
de {
from components.java
}
} |
amp {
deBundles += tasks.jar
} |
amp {
de {
from tasks.jar
from configurations.runtimeClasspath
}
} |
amp {
deBundles += tasks.jar
deBundles += configurations.runtimeClasspath
} |