-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b03d76e
commit 7d7daa6
Showing
3 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# jSass Gradle Plugin | ||
|
||
Available from plugins.gradle.org: https://plugins.gradle.org/search?term=io.freefair.jsass | ||
|
||
## Plugins | ||
|
||
### `io.freefair.jsass-base` | ||
|
||
Adds the `jSass` extension and some Conventions to the project. | ||
|
||
### `io.freefair.jsass-java` | ||
|
||
Compiles SASS/SCSS in java source set resources (e.g. `src/*/resources`) | ||
|
||
### `io.freefair.jsass-war` | ||
|
||
Compiles SASS/SCSS in web resources (`src/main/webapp`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Enhanced `war` tasks | ||
|
||
## Plugins | ||
|
||
### `io.freefair.war-overlay` | ||
|
||
Adds maven-like overlays to every task of type `War`: | ||
|
||
```groovy | ||
war { | ||
overlays { | ||
foo { | ||
from "com.example:foo:1.0@war" | ||
// enabled = true | ||
// provided = false | ||
// enableCompilation = true | ||
// exclude "*.html" | ||
} | ||
bar { | ||
from project(":bar") | ||
} | ||
} | ||
} | ||
``` | ||
|
||
Every `War` task is extended with a `overlays` property which is a `NamedDomainObjectContainer` of | ||
`WarOverlay` objects. This can be compared to the `<overlays>` configuration parameter of the `maven-war-plugin`: | ||
https://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#overlays | ||
|
||
The source of the war overlays can be | ||
|
||
* an [`AbstractArchiveTask`](https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/bundling/AbstractArchiveTask.html) | ||
* another project (`project(":foo")`) which has the `war` plugin applied | ||
* a dependency in any of the notations described [here](https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/dsl/DependencyHandler.html) | ||
(The dependency has to resolve to a single war, jar or zip file) | ||
|
||
### `io.freefair.war-attach-classes` | ||
|
||
This plugin ports the [`attachClasses`](https://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#attachClasses) | ||
configuration parameter of the `maven-war-plugin` to gradle: | ||
|
||
```groovy | ||
war { | ||
attachClasses = true | ||
// classesClassifier = "classes" | ||
} | ||
``` | ||
|
||
### `io.freefair.war-archive-classes` | ||
|
||
This plugin ports the [`archiveClasses`](https://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#archiveClasses) | ||
configuration parameter of the `maven-war-plugin` to gradle: | ||
|
||
```groovy | ||
war { | ||
archiveClasses = true | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters