Gradle
    • PDF

    Gradle

    • PDF

    Article Summary

    Available in Classic

    Gradle is a build service platform utilizing Gradle while using Linux as an OS. It is automatically configured on NAVER Cloud Platform's Compute infrastructure service and can be instantly put into service through a configuration process with only a few steps.
    The advantages of using Gradle are as follows:

    • You can reliably use Gradle utilizing the infrastructure services of NAVER Cloud Platform.
    • You can select a server image and specifications to automatically install and use the Gradle server.
    Note

    For more information on the software used in NAVER Cloud Platform's Gradle, see the following websites:

    Creating and accessing server

    The method for creating and accessing the server is the same as creating a regular server on NAVER Cloud Platform. The following are detailed procedures and reference guides:

    ProcedureDescription
    1. Set ACG
    • Reference guide: ACG
    • Must set the following ports:
      • TCP 22 port for a terminal connection
      • Random number port for the use of web services
    2. Create server
    • Reference guide: Create server
    • Image type Application, Application image type Gradle
    3. Set public IP
    4. Set port forwarding
    5. Get admin password
    6. Access server
    Note
    • After you access and log in to the server, change the password of the root account to one you can remember. Enter the passwd root command to set a new password.
    • If you can't connect to the Gradle Web service even if there is no problem in the public IP address and ACG, your web server process might be stopped. Run the restart command (systemctl start httpd) on the terminal program to restart the process.

    Using server

    When the server is created, Gradle Package is installed for easy use.
    Access the server and run the following tasks:

    Check information

    While connected to the server, you can run the following commands to view relative information.

    • Check installation information: gradle
    • Check version: gradle -v
    • Check installed JDK version: java -version

    Create project

    The following describes how to create a project using Gradle.

    1. Enter the gradle init command.
      • The project creation task is started.
    2. Follow the instructions on the screen and set the project's properties as desired.
    3. After the creation is complete, check the configuration of the project.
      • Check the current folder location: pwd
      • Check details of all files in the current folder: ls -al

    Build project

    Enter the following commands to build the created project.

    # ./gradlew build
    

    Run project

    Enter the following commands to run the built project.

    # ./gradlew run
    

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.