-
-
Notifications
You must be signed in to change notification settings - Fork 962
Documentation Updates for Apache #14758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
cd1c976
Updates to various documentation that will be included in an source o…
jdaugherty a0a41c0
Initial revisions to RELEASE.md
jdaugherty e966611
feedback - add user & dev mailing lists
jdaugherty cea4ea2
add verification steps
jdaugherty 0b9b156
clarify download locations
jdaugherty c506220
Update verification steps for shell testing
jamesfredley 74e722e
Ensure groovydoc 4.0.27-SNAPSHOT is applied for both the core & grail…
jdaugherty bd6ca8c
Merge remote-tracking branch 'upstream/documentation-updates' into do…
jdaugherty d417ed3
fix groovydoc so that it is consistent across the project - for both …
jdaugherty 62baf96
Merge branch '7.0.x' into documentation-updates
jdaugherty fb0e6e3
do not cache in reproducible builds
jdaugherty 8c916b2
revert bom publish (will disable DME instead)
jdaugherty b0d9e81
Update Open collective language on contributing.md
jamesfredley 16faa88
Update getting help
jamesfredley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,8 @@ | ||
# Code of Conduct | ||
|
||
Apache Grails (Incubating) follows the ASF [Code of | ||
Conduct](https://www.apache.org/foundation/policies/conduct). | ||
|
||
If you observe behavior that violates those rules please follow the | ||
[ASF reporting | ||
guidelines](https://www.apache.org/foundation/policies/conduct#reporting-guidelines). |
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -14,50 +14,103 @@ See the License for the specific language governing permissions and | |
limitations under the License. | ||
--> | ||
|
||
# Grails | ||
[](https://ge.grails.org/scans) | ||
[](https://github.com/apache/grails-core/actions/workflows/gradle.yml) | ||
# Apache Grails (Incubating) | ||
|
||
[](https://docs.grails.org) | ||
[](https://ge.grails.org/scans) | ||
[](https://github.com/apache/grails-core/actions/workflows/gradle.yml) | ||
[](https://github.com/apache/grails-core/actions/workflows/groovy-joint-workflow.yml) | ||
[](https://lists.apache.org/[email protected]) | ||
[](https://lists.apache.org/[email protected]) | ||
[](https://slack.grails.org/) | ||
[](https://github.com/apache/grails-core/discussions) | ||
|
||
## Introduction | ||
|
||
[Apache Grails](https://grails.org/) is a framework used to build web applications with | ||
the [Apache Groovy](https://groovy-lang.org/) programming language. Releases prior to 7.0.0 were outside of the Apache | ||
Software Foundation. The core framework is very extensible and there are numerous [plugins](https://plugins.grails.org/) | ||
available that provide easy integration of add-on features. To assist in getting started, various Application generators | ||
exist and are provided by the Apache Grails team. | ||
|
||
## Getting help | ||
|
||
Ask questions on the [Grails User Mailing List](https://lists.apache.org/[email protected]) | ||
Join the discussions on [Slack](https://slack.grails.org/) | ||
Check the [Documentation](https://docs.grails.org/) for your preferred Apache Grails version. | ||
Check for a [Grails Guide](https://github.com/grails-guides/). | ||
|
||
## Application Generation | ||
|
||
The only requirement for Apache Grails is the Java Development Kit (JDK). Once a JDK is installed there are many ways to | ||
get started. The preferred way to get started is to use [Grails Forge](https://start.grails.org). Alternatively, offline | ||
CLI applications exist to assist in Application generation. Instructions for them follow. | ||
|
||
### Wrapper | ||
|
||
The Apache Grails Wrapper is a tiny distribution (25KB) that can manage larger sized CLIs for Grails. It consists of a | ||
`grailsw` shell script, a `grailsw.bat` batch script, and the jar file `grails-wrapper.jar`. It can be downloaded from | ||
the latest [Github Release](https://github.com/apache/grails-core/releases) page starting with 7.0.0-M4 & it is included | ||
in any created project. The wrapper is used to either create an Apache Grails Application or to run commands in an | ||
existing Grails Application directory. The wrapper is generally meant to be forward compatible and downloads the Apache | ||
Grails CLIs to the directory `$HOME/.grails/wrapper`. | ||
|
||
#### Wrapper - Creating a Apache Grails Application | ||
|
||
To create an Apache Grails Application with the wrapper follow these steps: | ||
|
||
### Getting help | ||
Join the discussions on [Slack](https://slack.grails.org/) | ||
Ask questions on [Stack Overflow](https://stackoverflow.com/questions/tagged/grails) | ||
1. Extract the wrapper to your preferred location. | ||
2. Set the environment variable `PREFERRED_GRAILS_VERSION` to the preferred version. | ||
3. Run the wrapper command `grailsw -t forge create-app` to create a new Apache Grails Application. | ||
|
||
## What is Grails? | ||
[Grails](https://grails.org/) is a framework used to build web applications with the [Groovy](https://groovy-lang.org/) programming language. The core framework is very extensible and there are numerous [plugins](https://plugins.grails.org/) available that provide easy integration of add-on features. | ||
Please note, that the wrapper supports either the legacy `Apache Grails Shell` or the newer `Apache Grails Forge` CLI. | ||
For more detailed information about it, see the [documentation](https://docs.grails.org/snapshot/index.html). | ||
|
||
[Commercial support](https://grails.org/support.html) options are available. | ||
jamesfredley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#### Wrapper - Running Commands inside a Apache Grails Project | ||
|
||
## Getting Started | ||
For running commands, the Grails Wrapper will always pull the Apache Grails version from `gradle.properties` and ignore | ||
any environment variables. Type `grailsw -t shell help` to see the available commands. For more detailed information | ||
about it, see the [documentation](https://docs.grails.org/snapshot/index.html). | ||
|
||
You need a Java Development Kit (JDK) installed, but it is not necessary to install Groovy because it's bundled with the Grails distribution. | ||
### grails-shell-cli | ||
|
||
It's recommended to use the [SDKMAN!](https://sdkman.io/) tool to install & manage multiple Grails version. | ||
Alternatively, visit https://grails.org/download.html for other install options. If downloading the binary, the only | ||
requirement is it be added to your path. | ||
The legacy Apache Grails CLI is the command line interface that IntelliJ uses to interact with existing Apache Grails | ||
Applications. It can be used to generate applications or it can be used to interact with existing ones. To use it, | ||
download it to your preferred location from the [grails-forge](https://github.com/apache/grails-forge/releases) release | ||
page. You can use the command `./grails-shell-cli help` to see what's possible. | ||
|
||
To create your first Grails Application, you can use [Grails Forge](https://start.grails.org) or you can use the command | ||
line. For legacy reasons, there exists 2 ways to generate Grails applications. `Grails Forge` and `Grails Shell`. The | ||
grails binary allows you to use either to generate an app. | ||
### grails-forge-cli | ||
|
||
For example purposes, using the legacy shell: | ||
The newer Apache Grails CLI is available from the [grails-forge](https://github.com/apache/grails-forge/releases) | ||
release page. You can use the command `./grails-forge-cli --help` to see what's possible. | ||
|
||
grails create-app sampleapp | ||
cd sampleapp | ||
./gradlew bootRun | ||
### SDKMAN | ||
|
||
To build Grails, clone this GitHub repository and execute the build Gradle target: | ||
If managing multiple, local copies of the Grails CLI, it is recommended to use [SDKMAN!](https://sdkman.io/). Assuming | ||
SDKMAN is installed, this command would install the 7.0.0-M4 version: | ||
|
||
git clone https://github.com/apache/grails-core.git | ||
cd grails-core | ||
./gradlew build -PskipTests | ||
sdk install grails 7.0.0-M4 | ||
|
||
If you encounter out of memory errors when trying to run the build, try adjusting Gradle build settings. For example: | ||
Apache Grails versions installed via SDKMAN! include the following commands `grails`, `grails-shell-cli`, & | ||
`grails-forge-cli`. The grails command simply delegates to forge or the legacy shell. For further information on SDKMAN, | ||
please see their [website](https://sdkman.io/). | ||
|
||
export GRADLE_OPTS="-Xmx2G -Xms2G -XX:NewSize=512m -XX:MaxNewSize=512m" | ||
## Starting your Grails Application | ||
|
||
Please note that a valid container runtime is required to run Grails Tests. The example above omits the tests so the | ||
build will pass. | ||
Once your Apache Grails Application is created, you can start it with the command: | ||
|
||
./gradlew bootRun | ||
|
||
For further information, please consult the [documentation](https://docs.grails.org). | ||
|
||
## Building Grails | ||
|
||
For building Grails, please consult the [CONTRIBUTING.md](CONTRIBUTING.md) file. | ||
|
||
## Licensing | ||
|
||
Apache Grails is licensed under the Apache License, Version 2.0. For details, see | ||
the [LICENSE](./LICENSE). | ||
|
||
## Performing a Release | ||
|
||
|
@@ -70,16 +123,3 @@ https://opencollective.com/friends-of-grails | |
|
||
This initiative is designed to complement the Apache project and the many contributions we get from our great community and supporters. | ||
|
||
|
||
## License | ||
|
||
Grails and Groovy are licensed under the terms of the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.html). | ||
|
||
*** | ||
|
||
YourKit is kindly supporting Grails open source projects with its full-featured Java Profiler. | ||
YourKit, LLC is the creator of innovative and intelligent tools for profiling | ||
Java and .NET applications. Take a look at YourKit's leading software products: | ||
[YourKit Java Profiler](https://www.yourkit.com/java/profiler/features/) and | ||
[YourKit .NET Profiler](https://www.yourkit.com/.net/profiler/features/). | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.