-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #317 from codeconsole/gradle-89-compat
Gradle 8.10 compatibility
- Loading branch information
Showing
3 changed files
with
25 additions
and
89 deletions.
There are no files selected for viewing
78 changes: 0 additions & 78 deletions
78
src/main/groovy/org/grails/gradle/plugin/web/gsp/GroovyPageCompileTask.groovy
This file was deleted.
Oops, something went wrong.
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
25 changes: 16 additions & 9 deletions
25
src/main/groovy/org/grails/gradle/plugin/web/gsp/GspCompileOptions.groovy
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 |
---|---|---|
@@ -1,22 +1,29 @@ | ||
package org.grails.gradle.plugin.web.gsp | ||
|
||
import org.gradle.api.model.ObjectFactory | ||
import org.gradle.api.tasks.Input | ||
import org.gradle.api.tasks.Nested | ||
import org.gradle.api.tasks.compile.BaseForkOptions | ||
import org.gradle.api.tasks.compile.AbstractOptions | ||
import org.gradle.api.tasks.compile.GroovyForkOptions | ||
import javax.inject.Inject; | ||
|
||
/** | ||
* Presents the Compile Options used by the {@llink GroovyPageForkCompileTask} | ||
* | ||
* @author David Estes | ||
* @since 4.0 | ||
*/ | ||
class GspCompileOptions implements Serializable { | ||
* Presents the Compile Options used by the {@llink GroovyPageForkCompileTask} | ||
* | ||
* @author David Estes | ||
* @since 4.0 | ||
*/ | ||
abstract class GspCompileOptions extends AbstractOptions { | ||
private static final long serialVersionUID = 0L; | ||
|
||
@Input | ||
String encoding = "UTF-8" | ||
String encoding = "UTF-8" | ||
|
||
@Inject | ||
protected ObjectFactory getObjectFactory() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Nested | ||
GroovyForkOptions forkOptions = new GroovyForkOptions() | ||
GroovyForkOptions forkOptions = getObjectFactory().newInstance(GroovyForkOptions.class) | ||
} |